aboutsummaryrefslogtreecommitdiffstats
path: root/src/less/utilities.less
diff options
context:
space:
mode:
authorSam <me@sampotts.me>2016-05-11 22:47:27 +1000
committerSam <me@sampotts.me>2016-05-11 22:47:27 +1000
commit4a69ef38746383ab5f47115e2651b70d04f7c0bb (patch)
tree4a5ca9ae4b68dc96beee7a257dbbbaa4ca330231 /src/less/utilities.less
parentd351f9f172492707ac3148c39b2a242f9b9c8f53 (diff)
parent31c933af3838669a6bb043cafe7778a810303f47 (diff)
downloadplyr-4a69ef38746383ab5f47115e2651b70d04f7c0bb.tar.lz
plyr-4a69ef38746383ab5f47115e2651b70d04f7c0bb.tar.xz
plyr-4a69ef38746383ab5f47115e2651b70d04f7c0bb.zip
Merge branch 'master' into develop
# Conflicts: # dist/plyr.css # src/less/plyr.less
Diffstat (limited to 'src/less/utilities.less')
-rw-r--r--src/less/utilities.less21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/less/utilities.less b/src/less/utilities.less
index 518f2a8d..70c7f270 100644
--- a/src/less/utilities.less
+++ b/src/less/utilities.less
@@ -4,11 +4,22 @@
// Screen reader only elements
.plyr__sr-only {
- position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
- padding: 0 !important;
- border: 0 !important;
- height: 1px !important;
- width: 1px !important;
overflow: hidden;
+
+ // !important is not always needed
+ & when (@plyr-sr-only-important = true) {
+ position: absolute !important;
+ padding: 0 !important;
+ border: 0 !important;
+ height: 1px !important;
+ width: 1px !important;
+ }
+ & when (@plyr-sr-only-important = false) {
+ position: absolute;
+ padding: 0;
+ border: 0;
+ height: 1px;
+ width: 1px;
+ }
} \ No newline at end of file