diff options
Diffstat (limited to 'src/sass/components/captions.scss')
-rw-r--r-- | src/sass/components/captions.scss | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/sass/components/captions.scss b/src/sass/components/captions.scss index eb3c9389..2acab086 100644 --- a/src/sass/components/captions.scss +++ b/src/sass/components/captions.scss @@ -19,21 +19,6 @@ transition: transform 0.4s ease-in-out; width: 100%; - .plyr__caption { - background: $plyr-captions-background; - border-radius: 2px; - box-decoration-break: clone; - color: $plyr-captions-text-color; - line-height: 185%; - padding: 0.2em 0.5em; - white-space: pre-wrap; - - // Firefox adds a <div> when using getCueAsHTML() - div { - display: inline; - } - } - span:empty { display: none; } @@ -56,3 +41,18 @@ .plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty) ~ .plyr__captions { transform: translateY(calc(#{$plyr-control-spacing} * -4)); } + +.plyr__caption { + background: $plyr-captions-background; + border-radius: 2px; + box-decoration-break: clone; + color: $plyr-captions-text-color; + line-height: 185%; + padding: 0.2em 0.5em; + white-space: pre-wrap; + + // Firefox adds a <div> when using getCueAsHTML() + div { + display: inline; + } +} |