Commit 327598b7 by Kyle Fiedler

Added some fixeds to the dropdown and made it on hover

parent 67db5c12
...@@ -3124,17 +3124,20 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3124,17 +3124,20 @@ 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 { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls {
float: right; } float: right; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds {
float: left; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a {
background: url("/static/images/closed-arrow.png") 10px center no-repeat;
border-left: 1px solid #000; border-left: 1px solid #000;
border-right: 1px solid #000; border-right: 1px solid #000;
display: block;
-webkit-box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555; -webkit-box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555;
-moz-box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555; -moz-box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555;
box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555; box-shadow: 1px 0 0 #555555, inset 1px 0 0 #555555;
zoom: 1;
cursor: pointer; cursor: pointer;
float: left;
line-height: 46px; line-height: 46px;
margin-right: 0; margin-right: 0;
padding-left: 15px; padding-left: 15px;
background: url("/static/images/closed-arrow.png") 10px center no-repeat;
position: relative; position: relative;
-webkit-transition-property: all; -webkit-transition-property: all;
-moz-transition-property: all; -moz-transition-property: all;
...@@ -3157,35 +3160,29 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3157,35 +3160,29 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-o-transition-delay: 0; -o-transition-delay: 0;
transition-delay: 0; transition-delay: 0;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
width: 110px; } width: 110px;
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds.open { color: #fff; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a:before, section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a:after {
content: "";
display: table; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a:after {
clear: both; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a.open {
background: url("/static/images/open-arrow.png") 10px center no-repeat; } background: url("/static/images/open-arrow.png") 10px center no-repeat; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds h3, section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds div#wiki_panel input[type="button"], div#wiki_panel section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds input[type="button"] { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a h3, section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a div#wiki_panel input[type="button"], div#wiki_panel section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a input[type="button"] {
color: #999; color: #999;
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
display: -moz-inline-box; float: left;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: baseline;
zoom: 1;
*display: inline;
*vertical-align: auto;
letter-spacing: 1px; letter-spacing: 1px;
padding: 0 5.663px 0 11.326px; padding: 0 5.663px 0 11.326px;
text-transform: uppercase; } text-transform: uppercase; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds p.active { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a p.active {
font-weight: bold; font-weight: bold;
display: -moz-inline-box; float: left;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: baseline;
zoom: 1;
*display: inline;
*vertical-align: auto;
margin-bottom: 0; margin-bottom: 0;
padding: 0 11.326px 0 0; } padding: 0 11.326px 0 0; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds ol#video_speeds { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a ol#video_speeds {
background-color: #444; background-color: #444;
border: 1px solid #000; border: 1px solid #000;
border-top: 0; border-top: 0;
...@@ -3201,10 +3198,10 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3201,10 +3198,10 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
*vertical-align: auto; *vertical-align: auto;
left: -1px; left: -1px;
position: absolute; position: absolute;
top: 48px; top: 46px;
width: 100%; width: 100%;
z-index: 10; } z-index: 10; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds ol#video_speeds li { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a ol#video_speeds li {
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
-webkit-box-shadow: 0 1px 0 #555555; -webkit-box-shadow: 0 1px 0 #555555;
-moz-box-shadow: 0 1px 0 #555555; -moz-box-shadow: 0 1px 0 #555555;
...@@ -3212,18 +3209,18 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3212,18 +3209,18 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
padding: 0 11.326px; } padding: 0 11.326px; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds ol#video_speeds li.active { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a ol#video_speeds li.active {
font-weight: bold; } font-weight: bold; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds ol#video_speeds li:last-child { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a ol#video_speeds li:last-child {
border-bottom: 0; border-bottom: 0;
margin-top: 0; margin-top: 0;
-webkit-box-shadow: none; -webkit-box-shadow: none;
-moz-box-shadow: none; -moz-box-shadow: none;
box-shadow: none; } box-shadow: none; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds ol#video_speeds li:hover { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a ol#video_speeds li:hover {
color: #aaa; color: #aaa;
background-color: #666; } background-color: #666; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds:hover { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds a:hover {
opacity: 1; opacity: 1;
background-color: #444; } background-color: #444; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.add-fullscreen { section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls a.add-fullscreen {
......
...@@ -191,19 +191,24 @@ section.course-content { ...@@ -191,19 +191,24 @@ section.course-content {
@extend .dullify; @extend .dullify;
div.speeds { div.speeds {
float: left;
a {
background: url('/static/images/closed-arrow.png') 10px center no-repeat;
border-left: 1px solid #000; border-left: 1px solid #000;
border-right: 1px solid #000; border-right: 1px solid #000;
display: block;
@include box-shadow(1px 0 0 #555, inset 1px 0 0 #555); @include box-shadow(1px 0 0 #555, inset 1px 0 0 #555);
@include clearfix();
cursor: pointer; cursor: pointer;
float: left;
line-height: 46px; //height of play pause buttons line-height: 46px; //height of play pause buttons
margin-right: 0; margin-right: 0;
padding-left: 15px; padding-left: 15px;
background: url('/static/images/closed-arrow.png') 10px center no-repeat;
position: relative; position: relative;
@include transition(); @include transition();
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
width: 110px; width: 110px;
color: #fff;
&.open { &.open {
background: url('/static/images/open-arrow.png') 10px center no-repeat; background: url('/static/images/open-arrow.png') 10px center no-repeat;
...@@ -213,7 +218,7 @@ section.course-content { ...@@ -213,7 +218,7 @@ section.course-content {
color: #999; color: #999;
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
@include inline-block(); float: left;
letter-spacing: 1px; letter-spacing: 1px;
padding: 0 lh(.25) 0 lh(.5); padding: 0 lh(.25) 0 lh(.5);
text-transform: uppercase; text-transform: uppercase;
...@@ -221,7 +226,7 @@ section.course-content { ...@@ -221,7 +226,7 @@ section.course-content {
p.active { p.active {
font-weight: bold; font-weight: bold;
@include inline-block(); float: left;
margin-bottom: 0; margin-bottom: 0;
padding: 0 lh(.5) 0 0; padding: 0 lh(.5) 0 0;
} }
...@@ -235,7 +240,7 @@ section.course-content { ...@@ -235,7 +240,7 @@ section.course-content {
@include inline-block(); @include inline-block();
left: -1px; left: -1px;
position: absolute; position: absolute;
top: 48px; top: 46px;
width: 100%; width: 100%;
z-index: 10; z-index: 10;
...@@ -268,6 +273,7 @@ section.course-content { ...@@ -268,6 +273,7 @@ section.course-content {
background-color: #444; background-color: #444;
} }
} }
}
a.add-fullscreen { a.add-fullscreen {
background: url(/static/images/fullscreen.png) center no-repeat; background: url(/static/images/fullscreen.png) center no-repeat;
......
...@@ -30,9 +30,11 @@ ...@@ -30,9 +30,11 @@
<div class="secondary-controls"> <div class="secondary-controls">
<div class="speeds"> <div class="speeds">
<a href="#">
<h3>Speed</h3> <h3>Speed</h3>
<p class="active"></p> <p class="active"></p>
<ol id="video_speeds"></ol> <ol id="video_speeds"></ol>
</a>
</div> </div>
<a href="#" class="add-fullscreen" title="Fill browser">Fill Browser</a> <a href="#" class="add-fullscreen" title="Fill browser">Fill Browser</a>
...@@ -114,10 +116,12 @@ at: 'bottom center', // at the bottom right ...@@ -114,10 +116,12 @@ at: 'bottom center', // at the bottom right
$("ol#video_speeds").hide(); $("ol#video_speeds").hide();
$("div.speeds").click(function() { $("div.speeds a").hover(function() {
$(this).toggleClass("open"); $(this).toggleClass("open");
$("ol#video_speeds").slideToggle(150); $("ol#video_speeds").slideToggle(150);
return false;
}); });
}); });
</script> </script>
</%block> </%block>
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