mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 05:32:09 +00:00
slider styles updated to not depend on width and height
This commit is contained in:
parent
848a756b05
commit
0264d2feab
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue