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
bd570bee
Commit
bd570bee
authored
Jan 30, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added styles for the video player
parent
712b9711
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
27 deletions
+105
-27
sass/_courseware-video.scss
+92
-21
video.html
+13
-6
No files found.
sass/_courseware-video.scss
View file @
bd570bee
...
...
@@ -3,7 +3,6 @@ section.course-content {
div
.video-wrapper
{
float
:
left
;
width
:
flex-grid
(
6
,
9
);
margin-right
:
flex-gutter
(
9
);
div
.video-player
{
...
...
@@ -32,40 +31,112 @@ section.course-content {
}
}
section
{
ul
{
display
:
inline-block
;
// ul {
// float: left;
// li {
// margin-top: 5px;
// display: inline-block;
// cursor: pointer;
// border: 0;
// padding: 0;
// div {
// &:empty {
// display: none;
// }
// }
// }
// }
section
.video-controls
{
@extend
.clearfix
;
background
:
#333
;
border
:
1px
solid
#000
;
color
:
#ccc
;
li
{
margin-top
:
5px
;
display
:
inline-block
;
cursor
:
pointer
;
div
#slider
{
@extend
.clearfix
;
@include
border-radius
(
0
);
@include
box-shadow
(
inset
0
1px
0
#eee
,
0
1px
0
#555
);
background
:
#c2c2c2
;
border
:
none
;
border-bottom
:
1px
solid
#000
;
height
:
22px
;
a
.ui-slider-handle
{
@include
border-radius
(
0
);
background
:
$mit-red
url(/static/images/slider-handle.png)
center
center
no-repeat
;
border
:
0
;
padding
:
0
;
border-right
:
1px
solid
darken
(
$mit-red
,
20%
);
border-left
:
1px
solid
darken
(
$mit-red
,
20%
);
cursor
:
pointer
;
height
:
22px
;
margin
:
0
;
top
:
0
;
width
:
22px
;
}
}
ul
.vcr
{
float
:
left
;
margin-right
:
lh
();
div
{
&
:empty
{
display
:
none
;
li
{
float
:
left
;
a
{
@include
box-shadow
(
1px
0
0
#555
);
border-right
:
1px
solid
#000
;
display
:
block
;
cursor
:
pointer
;
height
:
14px
;
padding
:
lh
(
.75
)
lh
();
text-indent
:
-9999px
;
width
:
14px
;
&
.play
{
background
:
url('/static/images/play-icon.png')
center
center
no-repeat
;
&
:hover
{
background-color
:
#444
;
}
}
&
.pause
{
background
:
url('/static/images/pause-icon.png')
center
center
no-repeat
;
&
:hover
{
background-color
:
#444
;
}
}
}
}
}
div
#slider
{
margin
:
-14px
0
10px
60px
;
}
div
#vidtime
{
float
:
left
;
font-weight
:
bold
;
line-height
:
46px
;
//height of play pause buttons
-webkit-font-smoothing
:
antialiased
;
}
div
#video_
speeds
{
div
.
speeds
{
float
:
right
;
cursor
:
pointer
;
line-height
:
46px
;
//height of play pause buttons
margin-right
:
lh
();
-webkit-font-smoothing
:
antialiased
;
div
#video_speeds
{
@include
inline-block
();
font-weight
:
bold
;
span
{
&
:hover
{
color
:
$mit-red
;
span
{
cursor
:
pointer
;
&
:hover
{
color
:
$mit-red
;
}
}
}
}
...
...
video.html
View file @
bd570bee
...
...
@@ -8,13 +8,20 @@
</div>
<section
class=
"video-controls"
>
<ul>
<li><span
class=
"ui-icon ui-icon-play"
onclick=
"play();"
></span></li>
<li><span
class=
"ui-icon ui-icon-pause"
onclick=
"pause();"
></span></li>
</ul>
<div
id=
"slider"
></div>
<div
id=
"vidtime"
>
0:00/0:00
</div>
<div
id=
"video_speeds"
></div>
<section>
<ul
class=
"vcr"
>
<li><a
class=
"play"
onclick=
"play();"
>
Play
</a></li>
<li><a
class=
"pause"
onclick=
"pause();"
>
Pause
</a></li>
</ul>
<div
id=
"vidtime"
>
0:00 / 0:00
</div>
<div
class=
"speeds"
>
Speed:
<div
id=
"video_speeds"
></div>
</div>
</section>
</section>
</div>
...
...
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