Commit 4b733b56 by Joshua Spayd

Fix video caption centering

Fixes super off-center captions for full screen video with captions on
and transcripts off. Perfects caption centering in general, which was
before a bit off.

Leveraging pre-existing .closed class.
parent 3dbe0481
...@@ -215,7 +215,8 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark ...@@ -215,7 +215,8 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark
.closed-captions { .closed-captions {
@include left(5%); @include left(5%);
position: absolute; position: absolute;
width: 85%; width: 90%;
box-sizing: border-box;
top: 70%; top: 70%;
text-align: center; text-align: center;
} }
...@@ -715,7 +716,11 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark ...@@ -715,7 +716,11 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark
&.video-fullscreen { &.video-fullscreen {
.closed-captions { .closed-captions {
width: 60%; width: 65%;
}
&.closed .closed-captions {
width: 90%;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment