aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/utils
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-04-24 00:22:39 +1000
committerGitHub <noreply@github.com>2020-04-24 00:22:39 +1000
commit68137aa789b195b26d4306eaebc7fee2f8eb3374 (patch)
tree8c38683d043fdfbe8b1dcb385a446de4df7396a1 /src/sass/utils
parentdbe618c644a525b196466b7254274cc9bde76275 (diff)
parent2458eaa11b5c2805bcf1e5349ab900485bac325f (diff)
downloadplyr-68137aa789b195b26d4306eaebc7fee2f8eb3374.tar.lz
plyr-68137aa789b195b26d4306eaebc7fee2f8eb3374.tar.xz
plyr-68137aa789b195b26d4306eaebc7fee2f8eb3374.zip
Merge pull request #1770 from sampotts/css-variables
Allow customization via CSS Custom Properties
Diffstat (limited to 'src/sass/utils')
-rw-r--r--src/sass/utils/animation.scss2
-rw-r--r--src/sass/utils/hidden.scss34
2 files changed, 18 insertions, 18 deletions
diff --git a/src/sass/utils/animation.scss b/src/sass/utils/animation.scss
index 4a5b6b90..e7b09e1c 100644
--- a/src/sass/utils/animation.scss
+++ b/src/sass/utils/animation.scss
@@ -3,5 +3,5 @@
// --------------------------------------------------------------
.plyr--no-transition {
- transition: none !important;
+ transition: none !important;
}
diff --git a/src/sass/utils/hidden.scss b/src/sass/utils/hidden.scss
index a42c3be8..bdd96173 100644
--- a/src/sass/utils/hidden.scss
+++ b/src/sass/utils/hidden.scss
@@ -4,25 +4,25 @@
// Screen reader only elements
.plyr__sr-only {
- clip: rect(1px, 1px, 1px, 1px);
- overflow: hidden;
+ clip: rect(1px, 1px, 1px, 1px);
+ overflow: hidden;
- // !important is not always needed
- @if $plyr-sr-only-important {
- border: 0 !important;
- height: 1px !important;
- padding: 0 !important;
- position: absolute !important;
- width: 1px !important;
- } @else {
- border: 0;
- height: 1px;
- padding: 0;
- position: absolute;
- width: 1px;
- }
+ // !important is not always needed
+ @if $plyr-sr-only-important {
+ border: 0 !important;
+ height: 1px !important;
+ padding: 0 !important;
+ position: absolute !important;
+ width: 1px !important;
+ } @else {
+ border: 0;
+ height: 1px;
+ padding: 0;
+ position: absolute;
+ width: 1px;
+ }
}
.plyr [hidden] {
- display: none !important;
+ display: none !important;
}