Commit b209d363 by Calen Pennington

Merge pull request #433 from MITx/feature/kfiedler/courseware-style

Made video go to the center of the screen in full screen
parents 432f7bcc bfed4918
...@@ -14,7 +14,7 @@ div.video { ...@@ -14,7 +14,7 @@ div.video {
section.video-player { section.video-player {
height: 0; height: 0;
// overflow: hidden; overflow: hidden;
padding-bottom: 56.25%; padding-bottom: 56.25%;
position: relative; position: relative;
...@@ -444,13 +444,13 @@ div.video { ...@@ -444,13 +444,13 @@ div.video {
height: 100%; height: 100%;
left: 0; left: 0;
margin: 0; margin: 0;
max-height: 100%;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
position: fixed; position: fixed;
top: 0; top: 0;
width: 100%; width: 100%;
z-index: 999; z-index: 999;
vertical-align: middle;
&.closed { &.closed {
ol.subtitles { ol.subtitles {
...@@ -459,30 +459,17 @@ div.video { ...@@ -459,30 +459,17 @@ div.video {
} }
} }
a.exit {
color: #aaa;
display: none;
font-style: 12px;
left: 20px;
letter-spacing: 1px;
position: absolute;
text-transform: uppercase;
top: 20px;
&::after {
content: "✖";
@include inline-block();
padding-left: 6px;
}
&:hover {
color: $mit-red;
}
}
div.tc-wrapper { div.tc-wrapper {
@include clearfix;
display: table;
width: 100%;
height: 100%;
article.video-wrapper { article.video-wrapper {
width: 100%; width: 100%;
display: table-cell;
vertical-align: middle;
float: none;
} }
object, iframe { object, iframe {
......
...@@ -130,13 +130,11 @@ class @VideoPlayer extends Subview ...@@ -130,13 +130,11 @@ class @VideoPlayer extends Subview
toggleFullScreen: (event) => toggleFullScreen: (event) =>
event.preventDefault() event.preventDefault()
if @el.hasClass('fullscreen') if @el.hasClass('fullscreen')
@$('.exit').remove()
@$('.add-fullscreen').attr('title', 'Fill browser') @$('.add-fullscreen').attr('title', 'Fill browser')
@el.removeClass('fullscreen') @el.removeClass('fullscreen')
else else
@el.append('<a href="#" class="exit">Exit</a>').addClass('fullscreen') @el.addClass('fullscreen')
@$('.add-fullscreen').attr('title', 'Exit fill browser') @$('.add-fullscreen').attr('title', 'Exit fill browser')
@$('.exit').click @toggleFullScreen
@caption.resize() @caption.resize()
# Delegates # Delegates
......
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