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
8b563c0c
Commit
8b563c0c
authored
Apr 05, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some more styles for the fullscreen video
parent
2be9a1e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
37 deletions
+113
-37
static/css/application.css
+43
-18
templates/sass/courseware/_video.scss
+51
-18
templates/video.html
+19
-1
No files found.
static/css/application.css
View file @
8b563c0c
...
@@ -3056,19 +3056,6 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
...
@@ -3056,19 +3056,6 @@ 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
#slider
a
.ui-slider-handle
:focus
,
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
#slider
a
.ui-slider-handle
:hover
{
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
#slider
a
.ui-slider-handle
:focus
,
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
#slider
a
.ui-slider-handle
:hover
{
background-color
:
#bf4040
;
background-color
:
#bf4040
;
outline
:
none
;
}
outline
:
none
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
#slider
:hover
{
height
:
14px
;
margin-top
:
-7px
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
#slider
:hover
a
.ui-slider-handle
{
-webkit-border-radius
:
20px
;
-moz-border-radius
:
20px
;
-ms-border-radius
:
20px
;
-o-border-radius
:
20px
;
border-radius
:
20px
;
height
:
20px
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
ul
.vcr
{
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
ul
.vcr
{
float
:
left
;
float
:
left
;
margin-right
:
22.652px
;
}
margin-right
:
22.652px
;
}
...
@@ -3314,6 +3301,21 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
...
@@ -3314,6 +3301,21 @@ section.course-content div.video-subtitles div.video-wrapper section.video-contr
opacity
:
.7
;
}
opacity
:
.7
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
.secondary-controls
a
.hide-subtitles.off
:after
{
section
.course-content
div
.video-subtitles
div
.video-wrapper
section
.video-controls
div
.secondary-controls
a
.hide-subtitles.off
:after
{
content
:
"turn on"
;
}
content
:
"turn on"
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
:hover
section
.video-controls
ul
,
section
.course-content
div
.video-subtitles
div
.video-wrapper
:hover
section
.video-controls
div
{
opacity
:
1
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
:hover
section
.video-controls
div
#slider
{
height
:
14px
;
margin-top
:
-7px
;
}
section
.course-content
div
.video-subtitles
div
.video-wrapper
:hover
section
.video-controls
div
#slider
a
.ui-slider-handle
{
-webkit-border-radius
:
20px
;
-moz-border-radius
:
20px
;
-ms-border-radius
:
20px
;
-o-border-radius
:
20px
;
border-radius
:
20px
;
height
:
20px
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
}
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%
;
...
@@ -3363,19 +3365,42 @@ section.course-content div.video-subtitles.closed ol.subtitles {
...
@@ -3363,19 +3365,42 @@ section.course-content div.video-subtitles.closed ol.subtitles {
section
.course-content
div
.video-subtitles.fullscreen
{
section
.course-content
div
.video-subtitles.fullscreen
{
background
:
rgba
(
0
,
0
,
0
,
0.95
);
background
:
rgba
(
0
,
0
,
0
,
0.95
);
border
:
0
;
border
:
0
;
padding
:
0
;
bottom
:
0
;
height
:
100%
;
height
:
100%
;
position
:
fixed
;
left
:
0
;
left
:
0
;
max-height
:
100%
;
padding
:
0
;
position
:
fixed
;
top
:
0
;
top
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
max-height
:
100%
;
z-index
:
999
;
}
z-index
:
999
;
}
section
.course-content
div
.video-subtitles.fullscreen
a
.exit
{
position
:
absolute
;
top
:
20px
;
right
:
20px
;
color
:
#aaa
;
text-transform
:
uppercase
;
letter-spacing
:
1px
;
font-style
:
12px
;
}
section
.course-content
div
.video-subtitles.fullscreen
a
.exit
::after
{
content
:
"✖"
;
display
:
-moz-inline-box
;
-moz-box-orient
:
vertical
;
display
:
inline-block
;
vertical-align
:
baseline
;
zoom
:
1
;
*
display
:
inline
;
*
vertical-align
:
auto
;
padding-left
:
6px
;
}
section
.course-content
div
.video-subtitles.fullscreen
a
.exit
:hover
{
color
:
#993333
;
}
section
.course-content
div
.video-subtitles.fullscreen
div
.tc-wrapper
{
section
.course-content
div
.video-subtitles.fullscreen
div
.tc-wrapper
{
padding
:
20px
;
padding
:
20px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
min-height
:
100%
;
max-height
:
100%
;
overflow-y
:
scroll
;
}
section
.course-content
div
.video-subtitles.fullscreen
div
.tc-wrapper
object
#myytplayer
{
max-height
:
100%
;
overflow
:
hidden
;
}
overflow
:
hidden
;
}
section
.course-content
div
.video-subtitles.fullscreen
ol
.subtitles
li
{
section
.course-content
div
.video-subtitles.fullscreen
ol
.subtitles
li
{
color
:
#aaa
;
}
color
:
#aaa
;
}
...
...
templates/sass/courseware/_video.scss
View file @
8b563c0c
...
@@ -136,18 +136,6 @@ section.course-content {
...
@@ -136,18 +136,6 @@ section.course-content {
}
}
}
}
&
:hover
{
height
:
14px
;
margin-top
:
-7px
;
a
.ui-slider-handle
{
@include
border-radius
(
20px
);
height
:
20px
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
}
}
}
}
ul
.vcr
{
ul
.vcr
{
...
@@ -336,6 +324,25 @@ section.course-content {
...
@@ -336,6 +324,25 @@ section.course-content {
}
}
}
}
}
}
&
:hover
section
.video-controls
{
ul
,
div
{
opacity
:
1
;
}
div
#slider
{
height
:
14px
;
margin-top
:
-7px
;
a
.ui-slider-handle
{
@include
border-radius
(
20px
);
height
:
20px
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
}
}
}
}
}
ol
.subtitles
{
ol
.subtitles
{
...
@@ -388,21 +395,47 @@ section.course-content {
...
@@ -388,21 +395,47 @@ section.course-content {
&
.fullscreen
{
&
.fullscreen
{
background
:
rgba
(
#000
,
.95
);
background
:
rgba
(
#000
,
.95
);
border
:
0
;
border
:
0
;
padding
:
0
;
bottom
:
0
;
height
:
100%
;
height
:
100%
;
position
:
fixed
;
left
:
0
;
left
:
0
;
max-height
:
100%
;
padding
:
0
;
position
:
fixed
;
top
:
0
;
top
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
max-height
:
100%
;
z-index
:
999
;
z-index
:
999
;
a
.exit
{
position
:
absolute
;
top
:
20px
;
right
:
20px
;
color
:
#aaa
;
text-transform
:
uppercase
;
letter-spacing
:
1px
;
font-style
:
12px
;
&
:
:
after
{
content
:
"✖"
;
@include
inline-block
();
padding-left
:
6px
;
}
&
:hover
{
color
:
$mit-red
;
}
}
div
.tc-wrapper
{
div
.tc-wrapper
{
padding
:
20px
;
padding
:
20px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
min-height
:
100%
;
max-height
:
100%
;
overflow
:
hidden
;
overflow-y
:
scroll
;
object
#myytplayer
{
max-height
:
100%
;
overflow
:
hidden
;
}
}
}
ol
.subtitles
{
ol
.subtitles
{
...
...
templates/video.html
View file @
8b563c0c
...
@@ -69,11 +69,29 @@
...
@@ -69,11 +69,29 @@
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
function
()
{
$
(
function
()
{
$
(
'.add-fullscreen'
).
click
(
function
(){
$
(
'.add-fullscreen'
).
click
(
function
()
{
//var window_height = $(window).height();
//var video_height = (window_height - 97) + 'px';
//$('div.video-wrapper, div.tc-wrapper').css('max-height', window_height);
//$('object#myytplayer').css('height', video_height);
$
(
'div.video-subtitles'
).
toggleClass
(
'fullscreen'
);
$
(
'div.video-subtitles'
).
toggleClass
(
'fullscreen'
);
if
(
$
(
'div.video-subtitles'
).
hasClass
(
'fullscreen'
))
{
$
(
'div.video-subtitles'
).
append
(
'<a href="#" class="exit">Exit</a>'
);
}
else
{
$
(
'a.exit'
).
remove
();
}
$
(
'.exit'
).
click
(
function
()
{
$
(
'div.video-subtitles'
).
removeClass
(
'fullscreen'
);
$
(
this
).
remove
();
return
false
;
});
return
false
;
return
false
;
});
});
$
(
'.hide-subtitles'
).
click
(
function
()
{
$
(
'.hide-subtitles'
).
click
(
function
()
{
$
(
'div.video-subtitles'
).
toggleClass
(
'closed'
);
$
(
'div.video-subtitles'
).
toggleClass
(
'closed'
);
...
...
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