Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
327598b7
Commit
327598b7
authored
Apr 09, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some fixeds to the dropdown and made it on hover
parent
67db5c12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
97 deletions
+104
-97
static/css/application.css
+24
-27
templates/sass/courseware/_video.scss
+72
-66
templates/video.html
+8
-4
No files found.
static/css/application.css
View file @
327598b7
...
...
@@ -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
{
float
:
right
;
}
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-right
:
1px
solid
#000
;
display
:
block
;
-webkit-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
;
zoom
:
1
;
cursor
:
pointer
;
float
:
left
;
line-height
:
46px
;
margin-right
:
0
;
padding-left
:
15px
;
background
:
url("/static/images/closed-arrow.png")
10px
center
no-repeat
;
position
:
relative
;
-webkit-transition-property
:
all
;
-moz-transition-property
:
all
;
...
...
@@ -3157,35 +3160,29 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
-o-transition-delay
:
0
;
transition-delay
:
0
;
-webkit-font-smoothing
:
antialiased
;
width
:
110px
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
.secondary-controls
div
.speeds.open
{
width
:
110px
;
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
;
}
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
;
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
;
float
:
left
;
letter-spacing
:
1px
;
padding
:
0
5.663px
0
11.326px
;
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
;
display
:
-moz-inline-box
;
-moz-box-orient
:
vertical
;
display
:
inline-block
;
vertical-align
:
baseline
;
zoom
:
1
;
*
display
:
inline
;
*
vertical-align
:
auto
;
float
:
left
;
margin-bottom
:
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
;
border
:
1px
solid
#000
;
border-top
:
0
;
...
...
@@ -3201,10 +3198,10 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
*
vertical-align
:
auto
;
left
:
-1px
;
position
:
absolute
;
top
:
4
8
px
;
top
:
4
6
px
;
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
a
ol
#video_speeds
li
{
border-bottom
:
1px
solid
#000
;
-webkit-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
color
:
#fff
;
cursor
:
pointer
;
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
;
}
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
;
margin-top
:
0
;
-webkit-box-shadow
:
none
;
-moz-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
;
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
;
background-color
:
#444
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
.secondary-controls
a
.add-fullscreen
{
...
...
templates/sass/courseware/_video.scss
View file @
327598b7
...
...
@@ -191,81 +191,87 @@ section.course-content {
@extend
.dullify
;
div
.speeds
{
border-left
:
1px
solid
#000
;
border-right
:
1px
solid
#000
;
@include
box-shadow
(
1px
0
0
#555
,
inset
1px
0
0
#555
);
cursor
:
pointer
;
float
:
left
;
line-height
:
46px
;
//height of play pause buttons
margin-right
:
0
;
padding-left
:
15px
;
background
:
url('/static/images/closed-arrow.png')
10px
center
no-repeat
;
position
:
relative
;
@include
transition
();
-webkit-font-smoothing
:
antialiased
;
width
:
110px
;
&
.open
{
background
:
url('/static/images/open-arrow.png')
10px
center
no-repeat
;
}
h3
{
color
:
#999
;
font-size
:
12px
;
font-weight
:
normal
;
@include
inline-block
();
letter-spacing
:
1px
;
padding
:
0
lh
(
.25
)
0
lh
(
.5
);
text-transform
:
uppercase
;
}
a
{
background
:
url('/static/images/closed-arrow.png')
10px
center
no-repeat
;
border-left
:
1px
solid
#000
;
border-right
:
1px
solid
#000
;
display
:
block
;
@include
box-shadow
(
1px
0
0
#555
,
inset
1px
0
0
#555
);
@include
clearfix
();
cursor
:
pointer
;
line-height
:
46px
;
//height of play pause buttons
margin-right
:
0
;
padding-left
:
15px
;
position
:
relative
;
@include
transition
();
-webkit-font-smoothing
:
antialiased
;
width
:
110px
;
color
:
#fff
;
p
.active
{
font-weight
:
bold
;
@include
inline-block
();
margin-bottom
:
0
;
padding
:
0
lh
(
.5
)
0
0
;
}
&
.open
{
background
:
url('/static/images/open-arrow.png')
10px
center
no-repeat
;
}
// fix for now
ol
#video_speeds
{
background-color
:
#444
;
border
:
1px
solid
#000
;
border-top
:
0
;
@include
box-shadow
(
inset
1px
0
0
#555
);
@include
inline-block
();
left
:
-1px
;
position
:
absolute
;
top
:
48px
;
width
:
100%
;
z-index
:
10
;
li
{
border-bottom
:
1px
solid
#000
;
@include
box-shadow
(
0
1px
0
#555
);
color
:
#fff
;
cursor
:
pointer
;
padding
:
0
lh
(
.5
);
&
.active
{
font-weight
:
bold
;
}
h3
{
color
:
#999
;
font-size
:
12px
;
font-weight
:
normal
;
float
:
left
;
letter-spacing
:
1px
;
padding
:
0
lh
(
.25
)
0
lh
(
.5
);
text-transform
:
uppercase
;
}
&
:last-child
{
border-bottom
:
0
;
margin-top
:
0
;
@include
box-shadow
(
none
);
}
p
.active
{
font-weight
:
bold
;
float
:
left
;
margin-bottom
:
0
;
padding
:
0
lh
(
.5
)
0
0
;
}
&
:hover
{
color
:
#aaa
;
background-color
:
#666
;
// fix for now
ol
#video_speeds
{
background-color
:
#444
;
border
:
1px
solid
#000
;
border-top
:
0
;
@include
box-shadow
(
inset
1px
0
0
#555
);
@include
inline-block
();
left
:
-1px
;
position
:
absolute
;
top
:
46px
;
width
:
100%
;
z-index
:
10
;
li
{
border-bottom
:
1px
solid
#000
;
@include
box-shadow
(
0
1px
0
#555
);
color
:
#fff
;
cursor
:
pointer
;
padding
:
0
lh
(
.5
);
&
.active
{
font-weight
:
bold
;
}
&
:last-child
{
border-bottom
:
0
;
margin-top
:
0
;
@include
box-shadow
(
none
);
}
&
:hover
{
color
:
#aaa
;
background-color
:
#666
;
}
}
}
}
&
:hover
{
opacity
:
1
;
background-color
:
#444
;
&
:hover
{
opacity
:
1
;
background-color
:
#444
;
}
}
}
...
...
templates/video.html
View file @
327598b7
...
...
@@ -30,9 +30,11 @@
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
<h3>
Speed
</h3>
<p
class=
"active"
></p>
<ol
id=
"video_speeds"
></ol>
<a
href=
"#"
>
<h3>
Speed
</h3>
<p
class=
"active"
></p>
<ol
id=
"video_speeds"
></ol>
</a>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
>
Fill Browser
</a>
...
...
@@ -114,10 +116,12 @@ at: 'bottom center', // at the bottom right
$
(
"ol#video_speeds"
).
hide
();
$
(
"div.speeds
"
).
click
(
function
()
{
$
(
"div.speeds
a"
).
hover
(
function
()
{
$
(
this
).
toggleClass
(
"open"
);
$
(
"ol#video_speeds"
).
slideToggle
(
150
);
return
false
;
});
});
</script>
</
%
block>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment