Commit ca69dc63 by Kyle Fiedler

Added styles for the captions and video bar

parent 77bd47f7
...@@ -117,7 +117,7 @@ input, select { ...@@ -117,7 +117,7 @@ input, select {
font-weight: 800; font-weight: 800;
font-style: italic; } font-style: italic; }
.clearfix:after, .topbar:after, nav.sequence-nav:after, div.book-wrapper section.book nav:after, div.wiki-wrapper section.wiki-body header:after, html body section.main-content:after, html body section.outside-app:after, div.header-wrapper header:after, div.header-wrapper header hgroup:after, div.header-wrapper header nav ul:after, footer:after, li.calc-main div#calculator_wrapper form:after, li.calc-main div#calculator_wrapper form div.input-wrapper:after, div.leanModal_box#enroll ol:after, div.course-wrapper section.course-content .problem-set:after, div.course-wrapper section.course-content section.problems-wrapper:after, div.course-wrapper section.course-content div#seq_content:after, div.course-wrapper section.course-content ol.vert-mod > li:after, section.course-content div.video-subtitles:after, section.course-content div.video-subtitles div.video-wrapper section.video-controls:after, section.course-content div.video-subtitles div.video-wrapper section.video-controls div#slider:after, section.course-content nav.sequence-bottom ul:after, div#graph-container:after, div#schematic-container:after, div.book-wrapper section.book nav ul:after, div.info-wrapper section.updates > ol > li:after, div.info-wrapper section.handouts ol li:after, div.profile-wrapper section.course-info header:after, div.profile-wrapper section.course-info > ol > li:after, div#wiki_panel div#wiki_create_form:after, div.wiki-wrapper section.wiki-body:after, ul.badge-list li.badge:after { .clearfix:after, .topbar:after, nav.sequence-nav:after, div.book-wrapper section.book nav:after, div.wiki-wrapper section.wiki-body header:after, html body section.main-content:after, html body section.outside-app:after, div.header-wrapper header:after, div.header-wrapper header hgroup:after, div.header-wrapper header nav ul:after, footer:after, li.calc-main div#calculator_wrapper form:after, li.calc-main div#calculator_wrapper form div.input-wrapper:after, div.leanModal_box#enroll ol:after, div.course-wrapper section.course-content .problem-set:after, div.course-wrapper section.course-content section.problems-wrapper:after, div.course-wrapper section.course-content div#seq_content:after, div.course-wrapper section.course-content ol.vert-mod > li:after, section.course-content div.video-subtitles div.video-wrapper section.video-controls:after, section.course-content div.video-subtitles div.video-wrapper section.video-controls div#slider:after, section.course-content nav.sequence-bottom ul:after, div#graph-container:after, div#schematic-container:after, div.book-wrapper section.book nav ul:after, div.info-wrapper section.updates > ol > li:after, div.info-wrapper section.handouts ol li:after, div.profile-wrapper section.course-info header:after, div.profile-wrapper section.course-info > ol > li:after, div#wiki_panel div#wiki_create_form:after, div.wiki-wrapper section.wiki-body:after, ul.badge-list li.badge:after {
content: "."; content: ".";
display: block; display: block;
height: 0; height: 0;
...@@ -2679,12 +2679,18 @@ div.course-wrapper section.course-content section.tutorials ul { ...@@ -2679,12 +2679,18 @@ div.course-wrapper section.course-content section.tutorials ul {
list-style: disc outside none; list-style: disc outside none;
margin-left: 22.652px; } margin-left: 22.652px; }
div.course-wrapper section.course-content div.staff_info { div.course-wrapper section.course-content div.staff_info {
zoom: 1;
white-space: pre-wrap; white-space: pre-wrap;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
padding-top: 22.652px; padding-top: 22.652px;
margin-top: 22.652px; margin-top: 22.652px;
line-height: 22.652px; line-height: 22.652px;
font-family: Consolas, "Lucida Console", Monaco, "Courier New", Courier, monospace; } font-family: Consolas, "Lucida Console", Monaco, "Courier New", Courier, monospace; }
div.course-wrapper section.course-content div.staff_info:before, div.course-wrapper section.course-content div.staff_info:after {
content: "";
display: table; }
div.course-wrapper section.course-content div.staff_info:after {
clear: both; }
div.course-wrapper section.course-content div.ui-slider { div.course-wrapper section.course-content div.ui-slider {
border: 1px solid #aaa; border: 1px solid #aaa;
background: #ddd; background: #ddd;
...@@ -2776,7 +2782,13 @@ section.course-content div.video-subtitles { ...@@ -2776,7 +2782,13 @@ section.course-content div.video-subtitles {
border-top: 1px solid #e1e1e1; border-top: 1px solid #e1e1e1;
border-bottom: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1;
background: #f3f3f3; background: #f3f3f3;
position: relative; } position: relative;
zoom: 1; }
section.course-content div.video-subtitles:before, section.course-content div.video-subtitles:after {
content: "";
display: table; }
section.course-content div.video-subtitles:after {
clear: both; }
section.course-content div.video-subtitles div.video-wrapper { section.course-content div.video-subtitles div.video-wrapper {
float: left; float: left;
width: 65.761%; width: 65.761%;
...@@ -2853,7 +2865,7 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -2853,7 +2865,7 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
display: block; display: block;
cursor: pointer; cursor: pointer;
height: 14px; height: 14px;
padding: 16.989px 22.652px; padding: 16.989px;
text-indent: -9999px; text-indent: -9999px;
width: 14px; } width: 14px; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li a.play { section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li a.play {
...@@ -2865,7 +2877,7 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -2865,7 +2877,7 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li a.pause:hover { section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li a.pause:hover {
background-color: #444; } background-color: #444; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li div#vidtime { section.course-content div.video-subtitles div.video-wrapper section.video-controls ul.vcr li div#vidtime {
padding-left: 22.652px; padding-left: 16.989px;
font-weight: bold; font-weight: bold;
line-height: 46px; line-height: 46px;
-webkit-font-smoothing: antialiased; } -webkit-font-smoothing: antialiased; }
...@@ -2941,13 +2953,14 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -2941,13 +2953,14 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles {
float: left; float: left;
display: block; display: block;
padding-right: 11.326px; padding: 0 11.326px;
margin-left: 0; margin-left: 0;
color: #797979; color: #797979;
padding-left: 50px;
line-height: 46px; line-height: 46px;
width: 30px;
text-indent: -9999px;
font-weight: 800; font-weight: 800;
background: url("/static/images/cc.png") 16px center no-repeat; background: url("/static/images/cc.png") center no-repeat;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-transition-property: all; -webkit-transition-property: all;
-moz-transition-property: all; -moz-transition-property: all;
...@@ -2968,16 +2981,58 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -2968,16 +2981,58 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-moz-transition-delay: 0; -moz-transition-delay: 0;
-ms-transition-delay: 0; -ms-transition-delay: 0;
-o-transition-delay: 0; -o-transition-delay: 0;
transition-delay: 0;
opacity: 1;
position: relative; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles:after {
text-indent: 0;
position: absolute;
top: 0;
right: -40px;
content: "turn off";
display: block;
width: 70px;
opacity: 0;
visibility: hidden;
-webkit-transition-property: all;
-moz-transition-property: all;
-ms-transition-property: all;
-o-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.15s;
-moz-transition-duration: 0.15s;
-ms-transition-duration: 0.15s;
-o-transition-duration: 0.15s;
transition-duration: 0.15s;
-webkit-transition-timing-function: ease-out;
-moz-transition-timing-function: ease-out;
-ms-transition-timing-function: ease-out;
-o-transition-timing-function: ease-out;
transition-timing-function: ease-out;
-webkit-transition-delay: 0;
-moz-transition-delay: 0;
-ms-transition-delay: 0;
-o-transition-delay: 0;
transition-delay: 0; } transition-delay: 0; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles:hover { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles:hover {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
background-color: #444; } background-color: #444;
padding-right: 80px;
background-position: 11px center; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles:hover:after {
right: 0;
opacity: 1;
visibility: visible; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles.off {
opacity: .7; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.hide-subtitles.off:after {
content: "turn on"; }
section.course-content div.video-subtitles ol.subtitles { section.course-content div.video-subtitles ol.subtitles {
float: left; float: left;
width: 31.522%; width: 31.522%;
padding-top: 10px; padding-top: 10px;
height: 530px; max-height: 460px;
overflow: hidden; } overflow: hidden; }
section.course-content div.video-subtitles ol.subtitles li { section.course-content div.video-subtitles ol.subtitles li {
border: 0; border: 0;
...@@ -3020,6 +3075,9 @@ section.course-content div.video-subtitles.closed ol.subtitles { ...@@ -3020,6 +3075,9 @@ section.course-content div.video-subtitles.closed ol.subtitles {
width: 0px; width: 0px;
height: 0; } height: 0; }
div.course-wrapper.closed section.course-content div.video-subtitles ol.subtitles {
max-height: 577px; }
nav.sequence-nav { nav.sequence-nav {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
......
...@@ -175,6 +175,7 @@ div.course-wrapper { ...@@ -175,6 +175,7 @@ div.course-wrapper {
} }
div.staff_info { div.staff_info {
@include clearfix();
white-space: pre-wrap; white-space: pre-wrap;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
padding-top: lh(); padding-top: lh();
......
...@@ -6,7 +6,7 @@ section.course-content { ...@@ -6,7 +6,7 @@ section.course-content {
border-bottom: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1;
background: #f3f3f3; background: #f3f3f3;
position: relative; position: relative;
@extend .clearfix; @include clearfix();
div.video-wrapper { div.video-wrapper {
float: left; float: left;
...@@ -106,7 +106,7 @@ section.course-content { ...@@ -106,7 +106,7 @@ section.course-content {
display: block; display: block;
cursor: pointer; cursor: pointer;
height: 14px; height: 14px;
padding: lh(.75) lh(); padding: lh(.75);
text-indent: -9999px; text-indent: -9999px;
width: 14px; width: 14px;
...@@ -129,7 +129,7 @@ section.course-content { ...@@ -129,7 +129,7 @@ section.course-content {
} }
div#vidtime { div#vidtime {
padding-left: lh(); padding-left: lh(.75);
font-weight: bold; font-weight: bold;
line-height: 46px; //height of play pause buttons line-height: 46px; //height of play pause buttons
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
...@@ -186,20 +186,52 @@ section.course-content { ...@@ -186,20 +186,52 @@ section.course-content {
a.hide-subtitles { a.hide-subtitles {
float: left; float: left;
display: block; display: block;
padding-right: lh(.5); padding: 0 lh(.5);
margin-left: 0; margin-left: 0;
color: #797979; color: #797979;
padding-left: 50px;
line-height: 46px; //height of play pause buttons line-height: 46px; //height of play pause buttons
width: 30px;
text-indent: -9999px;
font-weight: 800; font-weight: 800;
background: url('/static/images/cc.png') 16px center no-repeat; background: url('/static/images/cc.png') center no-repeat;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@include transition(); @include transition();
opacity: 1;
position: relative;
&:after {
text-indent: 0;
position: absolute;
top: 0;
right: -40px;
content: "turn off";
display: block;
width: 70px;
opacity: 0;
visibility: hidden;
@include transition();
}
&:hover { &:hover {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
background-color: #444; background-color: #444;
padding-right: 80px;
background-position: 11px center;
&:after {
right: 0;
opacity: 1;
visibility: visible;
}
}
&.off {
opacity: .7;
&:after {
content: "turn on";
}
} }
} }
} }
...@@ -210,7 +242,7 @@ section.course-content { ...@@ -210,7 +242,7 @@ section.course-content {
float: left; float: left;
width: flex-grid(3, 9); width: flex-grid(3, 9);
padding-top: 10px; padding-top: 10px;
height: 530px; max-height: 460px;
overflow: hidden; overflow: hidden;
li { li {
...@@ -254,3 +286,9 @@ section.course-content { ...@@ -254,3 +286,9 @@ section.course-content {
} }
} }
} }
div.course-wrapper.closed section.course-content div.video-subtitles {
ol.subtitles {
max-height: 577px;
}
}
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<ol id="video_speeds"></ol> <ol id="video_speeds"></ol>
</div> </div>
<a href="#" class="hide-subtitles">turn off</a> <a href="#" class="hide-subtitles">Captions</a>
</div> </div>
</section> </section>
</section> </section>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<li id="stt_p5"><div id="std_p5" onclick="title_seek( 5);"></div></li> <li id="stt_p5"><div id="std_p5" onclick="title_seek( 5);"></div></li>
<li id="stt_p6"><div id="std_p7" onclick="title_seek( 6);"></div></li> <li id="stt_p6"><div id="std_p7" onclick="title_seek( 6);"></div></li>
<li id="stt_p6"><div id="std_p7" onclick="title_seek( 7);"></div></li> <li id="stt_p6"><div id="std_p7" onclick="title_seek( 7);"></div></li>
<!-- <li id="stt_p6"><div id="std_p7" onclick="title_seek( 8);"></div></li> --> <li id="stt_p6"><div id="std_p7" onclick="title_seek( 8);"></div></li>
</ol> </ol>
</div> </div>
...@@ -65,10 +65,15 @@ ...@@ -65,10 +65,15 @@
$('.hide-subtitles').click(function() { $('.hide-subtitles').click(function() {
$('div.video-subtitles').toggleClass('closed'); $('div.video-subtitles').toggleClass('closed');
var link_text = $('.hide-subtitles').text(); $(this).toggleClass("off");
$(this).text((link_text == 'turn off') ? 'turn on' : 'turn off'); // var link_text = $('.hide-subtitles').text();
// $(this).text((link_text == 'turn off') ? 'turn on' : 'turn off');
return false; return false;
}); });
$("div.speeds").click(function(){
$("div.speeds ol#video_speeds").slideToggle();
});
}); });
</script> </script>
</%block> </%block>
...@@ -37,7 +37,7 @@ function add_speed(key, stream) { ...@@ -37,7 +37,7 @@ function add_speed(key, stream) {
var id = 'speed_' + stream; var id = 'speed_' + stream;
if (key == video_speed) { if (key == video_speed) {
$("#video_speeds").append(' <li class=active id="'+id+'">'+key+'x</li>'); $("#video_speeds").append(' <li class="active" id="'+id+'">'+key+'x</li>');
} else { } else {
$("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>'); $("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>');
} }
......
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