aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/components/controls.scss
diff options
context:
space:
mode:
authormjfwebb <michael@w3bb.net>2018-07-29 22:02:16 +0200
committermjfwebb <michael@w3bb.net>2018-07-29 22:02:16 +0200
commit5eda4985160b168464ac62ba174a847cbc099f7c (patch)
treeab28744f2e9fa07671d80c91dfbfb025a38cb86c /src/sass/components/controls.scss
parent44b5d9f6b9d18e15d10930c72212774c57d1a034 (diff)
downloadplyr-5eda4985160b168464ac62ba174a847cbc099f7c.tar.lz
plyr-5eda4985160b168464ac62ba174a847cbc099f7c.tar.xz
plyr-5eda4985160b168464ac62ba174a847cbc099f7c.zip
If the plyr__controls is empty it is still showing the transition causing captions to be pushed up when hovering over where the controls would be. This change hides the plyr__controls div when it is empty.
Diffstat (limited to 'src/sass/components/controls.scss')
-rw-r--r--src/sass/components/controls.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sass/components/controls.scss b/src/sass/components/controls.scss
index 9b203f43..4ed5b28a 100644
--- a/src/sass/components/controls.scss
+++ b/src/sass/components/controls.scss
@@ -109,3 +109,7 @@
.plyr--fullscreen-enabled [data-plyr='fullscreen'] {
display: inline-block;
}
+
+.plyr__controls:empty {
+ display: none;
+} \ No newline at end of file