slider styles updated to not depend on width and height

This commit is contained in:
NikolaBorislavovHristov 2018-12-19 17:48:21 +02:00
parent 848a756b05
commit 0264d2feab

View file

@ -25,25 +25,27 @@
.track {
left: 0;
right: 0;
top: 40%;
bottom: 40%;
top: calc(50% - var(--thumb-size) * 0.1);
bottom: calc(50% - var(--thumb-size) * 0.1);
}
.thumb {
transform: translateX(-50%);
top: calc(50% - var(--thumb-size) * 0.5);
}
}
&.vertical {
.track {
left: 40%;
right: 40%;
left: calc(50% - var(--thumb-size) * 0.1);
right: calc(50% - var(--thumb-size) * 0.1);
top: 0;
bottom: 0;
}
.thumb {
transform: translateY(50%);
left: calc(50% - var(--thumb-size) * 0.5);
}
}
}