Commit 67db5c12 by Kyle Fiedler

Added arrow to show the dropdown

parent 1f6209da
...@@ -3129,10 +3129,13 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3129,10 +3129,13 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-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;
cursor: pointer;
float: left; float: left;
line-height: 0; line-height: 46px;
padding-right: 5.663px;
margin-right: 0; margin-right: 0;
padding-left: 15px;
background: url("/static/images/closed-arrow.png") 10px center no-repeat;
position: relative;
-webkit-transition-property: all; -webkit-transition-property: all;
-moz-transition-property: all; -moz-transition-property: all;
-ms-transition-property: all; -ms-transition-property: all;
...@@ -3153,18 +3156,26 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3153,18 +3156,26 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-ms-transition-delay: 0; -ms-transition-delay: 0;
-o-transition-delay: 0; -o-transition-delay: 0;
transition-delay: 0; transition-delay: 0;
cursor: pointer; -webkit-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased; } width: 110px; }
section.course-content div.video-subtitles div.video-wrapper section.video-controls div.secondary-controls div.speeds.open {
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 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"] {
float: left; color: #999;
padding: 0 5.663px 0 11.326px;
font-weight: normal;
text-transform: uppercase;
font-size: 12px; font-size: 12px;
font-weight: normal;
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: baseline;
zoom: 1;
*display: inline;
*vertical-align: auto;
letter-spacing: 1px; letter-spacing: 1px;
color: #999; padding: 0 5.663px 0 11.326px;
line-height: 46px; } 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 p.active {
font-weight: bold;
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
display: inline-block; display: inline-block;
...@@ -3172,24 +3183,35 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3172,24 +3183,35 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
zoom: 1; zoom: 1;
*display: inline; *display: inline;
*vertical-align: auto; *vertical-align: auto;
padding: 0 11.326px 0 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: bold; padding: 0 11.326px 0 0; }
display: none; }
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 ol#video_speeds {
background-color: #444;
border: 1px solid #000;
border-top: 0;
-webkit-box-shadow: inset 1px 0 0 #555555;
-moz-box-shadow: inset 1px 0 0 #555555;
box-shadow: inset 1px 0 0 #555555;
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
display: inline-block; display: inline-block;
vertical-align: baseline; vertical-align: baseline;
zoom: 1; zoom: 1;
*display: inline; *display: inline;
*vertical-align: auto; } *vertical-align: auto;
left: -1px;
position: absolute;
top: 48px;
width: 100%;
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 ol#video_speeds li {
float: left; border-bottom: 1px solid #000;
-webkit-box-shadow: 0 1px 0 #555555;
-moz-box-shadow: 0 1px 0 #555555;
box-shadow: 0 1px 0 #555555;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
padding: 0 5.663px; padding: 0 11.326px; }
line-height: 46px; }
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 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 ol#video_speeds li:last-child {
...@@ -3199,9 +3221,11 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr ...@@ -3199,9 +3221,11 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-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 ol#video_speeds li:hover {
background-color: #444; } color: #aaa;
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:hover {
opacity: 1; } opacity: 1;
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 {
background: url(/static/images/fullscreen.png) center no-repeat; background: url(/static/images/fullscreen.png) center no-repeat;
border-right: 1px solid #000; border-right: 1px solid #000;
......
...@@ -194,43 +194,57 @@ section.course-content { ...@@ -194,43 +194,57 @@ section.course-content {
border-left: 1px solid #000; border-left: 1px solid #000;
border-right: 1px solid #000; border-right: 1px solid #000;
@include box-shadow(1px 0 0 #555, inset 1px 0 0 #555); @include box-shadow(1px 0 0 #555, inset 1px 0 0 #555);
cursor: pointer;
float: left; float: left;
line-height: 0; line-height: 46px; //height of play pause buttons
padding-right: lh(.25);
margin-right: 0; margin-right: 0;
padding-left: 15px;
background: url('/static/images/closed-arrow.png') 10px center no-repeat;
position: relative;
@include transition(); @include transition();
cursor: pointer;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
width: 110px;
&.open {
background: url('/static/images/open-arrow.png') 10px center no-repeat;
}
h3 { h3 {
float: left; color: #999;
padding: 0 lh(.25) 0 lh(.5);
font-weight: normal;
text-transform: uppercase;
font-size: 12px; font-size: 12px;
font-weight: normal;
@include inline-block();
letter-spacing: 1px; letter-spacing: 1px;
color: #999; padding: 0 lh(.25) 0 lh(.5);
line-height: 46px; //height of play pause buttons text-transform: uppercase;
} }
p.active { p.active {
font-weight: bold;
@include inline-block(); @include inline-block();
padding: 0 lh(.5) 0 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: bold; padding: 0 lh(.5) 0 0;
display: none;
} }
// fix for now // fix for now
ol#video_speeds { ol#video_speeds {
background-color: #444;
border: 1px solid #000;
border-top: 0;
@include box-shadow(inset 1px 0 0 #555);
@include inline-block(); @include inline-block();
left: -1px;
position: absolute;
top: 48px;
width: 100%;
z-index: 10;
li { li {
float: left; border-bottom: 1px solid #000;
@include box-shadow( 0 1px 0 #555);
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
padding: 0 lh(.25); padding: 0 lh(.5);
line-height: 46px; //height of play pause buttons
&.active { &.active {
font-weight: bold; font-weight: bold;
...@@ -243,13 +257,15 @@ section.course-content { ...@@ -243,13 +257,15 @@ section.course-content {
} }
&:hover { &:hover {
background-color: #444; color: #aaa;
background-color: #666;
} }
} }
} }
&:hover { &:hover {
opacity: 1; opacity: 1;
background-color: #444;
} }
} }
......
...@@ -115,9 +115,9 @@ at: 'bottom center', // at the bottom right ...@@ -115,9 +115,9 @@ at: 'bottom center', // at the bottom right
$("ol#video_speeds").hide(); $("ol#video_speeds").hide();
$("div.speeds").click(function() { $("div.speeds").click(function() {
$(this).toggleClass("open");
$("ol#video_speeds").slideToggle(150); $("ol#video_speeds").slideToggle(150);
}); });
});
});
</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