aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/sass/components')
-rw-r--r--src/sass/components/control.scss2
-rw-r--r--src/sass/components/controls.scss1
-rw-r--r--src/sass/components/menus.scss7
-rw-r--r--src/sass/components/sliders.scss39
-rw-r--r--src/sass/components/tooltips.scss1
5 files changed, 28 insertions, 22 deletions
diff --git a/src/sass/components/control.scss b/src/sass/components/control.scss
index 8671fa2a..55d02143 100644
--- a/src/sass/components/control.scss
+++ b/src/sass/components/control.scss
@@ -29,7 +29,7 @@
// Tab focus
&.plyr__tab-focus {
- @include plyr-tab-focus();
+ @include plyr-tab-focus;
}
}
diff --git a/src/sass/components/controls.scss b/src/sass/components/controls.scss
index 60ee774d..330c450c 100644
--- a/src/sass/components/controls.scss
+++ b/src/sass/components/controls.scss
@@ -56,6 +56,7 @@
.plyr [data-plyr='fullscreen'] {
display: none;
}
+
.plyr--captions-enabled [data-plyr='captions'],
.plyr--pip-supported [data-plyr='pip'],
.plyr--airplay-supported [data-plyr='airplay'],
diff --git a/src/sass/components/menus.scss b/src/sass/components/menus.scss
index ce6d7e6e..c6ce6ce8 100644
--- a/src/sass/components/menus.scss
+++ b/src/sass/components/menus.scss
@@ -10,6 +10,7 @@
.plyr__control svg {
transition: transform 0.3s ease;
}
+
.plyr__control[aria-expanded='true'] {
svg {
transform: rotate(90deg);
@@ -77,10 +78,7 @@
color: $plyr-menu-color;
display: flex;
font-size: $plyr-font-size-menu;
- padding-bottom: calc(#{$plyr-control-padding} / 1.5);
- padding-left: calc(#{$plyr-control-padding} * 1.5);
- padding-right: calc(#{$plyr-control-padding} * 1.5);
- padding-top: calc(#{$plyr-control-padding} / 1.5);
+ padding: calc(#{$plyr-control-padding} / 1.5) calc(#{$plyr-control-padding} * 1.5);
user-select: none;
width: 100%;
@@ -180,6 +178,7 @@
&::before {
background: $plyr-control-toggle-checked-background;
}
+
&::after {
opacity: 1;
transform: translateY(-50%) scale(1);
diff --git a/src/sass/components/sliders.scss b/src/sass/components/sliders.scss
index 69947003..db75bd56 100644
--- a/src/sass/components/sliders.scss
+++ b/src/sass/components/sliders.scss
@@ -3,10 +3,11 @@
// --------------------------------------------------------------
.plyr--full-ui input[type='range'] {
- -webkit-appearance: none; /* stylelint-disable-line */
+ appearance: none;
background: transparent;
border: 0;
border-radius: calc(#{$plyr-range-thumb-height} * 2);
+
// `color` property is used in JS to populate lower fill for WebKit
color: $plyr-range-fill-background;
display: block;
@@ -18,23 +19,25 @@
width: 100%;
&::-webkit-slider-runnable-track {
- @include plyr-range-track();
+ @include plyr-range-track;
+
background-image: linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%));
}
&::-webkit-slider-thumb {
- @include plyr-range-thumb();
- -webkit-appearance: none; /* stylelint-disable-line */
+ @include plyr-range-thumb;
+
+ appearance: none;
margin-top: calc(((#{$plyr-range-thumb-height} - #{$plyr-range-track-height}) / 2) * -1);
}
// Mozilla
&::-moz-range-track {
- @include plyr-range-track();
+ @include plyr-range-track;
}
&::-moz-range-thumb {
- @include plyr-range-thumb();
+ @include plyr-range-thumb;
}
&::-moz-range-progress {
@@ -45,22 +48,24 @@
// Microsoft
&::-ms-track {
- @include plyr-range-track();
+ @include plyr-range-track;
+
color: transparent;
}
&::-ms-fill-upper {
- @include plyr-range-track();
+ @include plyr-range-track;
}
&::-ms-fill-lower {
- @include plyr-range-track();
+ @include plyr-range-track;
background: currentColor;
}
&::-ms-thumb {
- @include plyr-range-thumb();
+ @include plyr-range-thumb;
+
// For some reason, Edge uses the -webkit margin above
margin-top: 0;
}
@@ -70,25 +75,25 @@
}
// Focus styles
- &:focus {
- outline: 0;
- }
-
&::-moz-focus-outer {
border: 0;
}
+ &:focus {
+ outline: 0;
+ }
+
&.plyr__tab-focus {
&::-webkit-slider-runnable-track {
- @include plyr-tab-focus();
+ @include plyr-tab-focus;
}
&::-moz-range-track {
- @include plyr-tab-focus();
+ @include plyr-tab-focus;
}
&::-ms-track {
- @include plyr-tab-focus();
+ @include plyr-tab-focus;
}
}
}
diff --git a/src/sass/components/tooltips.scss b/src/sass/components/tooltips.scss
index 2d5eceaf..b7afd366 100644
--- a/src/sass/components/tooltips.scss
+++ b/src/sass/components/tooltips.scss
@@ -1,3 +1,4 @@
+/* stylelint-disable selector-max-compound-selectors */
// --------------------------------------------------------------
// Tooltips
// --------------------------------------------------------------