Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a79bba50
Commit
a79bba50
authored
13 years ago
by
Kyle Fiedler
Browse files
Options
Downloads
Patches
Plain Diff
Tring to get overlay to work with display table
parent
26a3e6cd
Loading
Loading
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
static/css/application.css
+3568
-3646
3568 additions, 3646 deletions
static/css/application.css
templates/sass/courseware/_video.scss
+33
-1
33 additions, 1 deletion
templates/sass/courseware/_video.scss
templates/video.html
+17
-1
17 additions, 1 deletion
templates/video.html
with
3618 additions
and
3648 deletions
static/css/application.css
+
3568
−
3646
View file @
a79bba50
This diff is collapsed.
Click to expand it.
templates/sass/courseware/_video.scss
+
33
−
1
View file @
a79bba50
...
...
@@ -5,9 +5,13 @@ section.course-content {
border-top
:
1px
solid
#e1e1e1
;
border-bottom
:
1px
solid
#e1e1e1
;
background
:
#f3f3f3
;
position
:
relative
;
@include
clearfix
();
// div.tc-wrapper {
// display: table-cell;
// width: 100%;
// }
div
.video-wrapper
{
float
:
left
;
width
:
flex-grid
(
6
,
9
);
...
...
@@ -358,6 +362,34 @@ section.course-content {
height
:
0
;
}
}
&
.fullscreen
{
background
:
rgba
(
#000
,
.95
);
border
:
0
;
padding
:
0
;
height
:
100%
;
left
:
22px
;
position
:
fixed
;
top
:
0
;
width
:
100%
;
z-index
:
999
;
div
.tc-wrapper
{
padding
:
20px
;
vertical-align
:
middle
;
display
:
table-cell
;
}
ol
.subtitles
{
li
{
color
:
#aaa
;
&
.current
{
color
:
#fff
;
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
templates/video.html
+
17
−
1
View file @
a79bba50
...
...
@@ -3,6 +3,7 @@
% endif
<div
class=
"video-subtitles"
>
<div
class=
"tc-wrapper"
>
<div
class=
"video-wrapper"
>
<div
class=
"video-player"
>
...
...
@@ -33,6 +34,8 @@
<ol
id=
"video_speeds"
></ol>
</div>
<a
href=
"#"
class=
"add-fullscreen"
>
Full screen
</a>
<a
href=
"#"
class=
"hide-subtitles"
>
Captions
</a>
</div>
</section>
...
...
@@ -57,18 +60,31 @@
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 7);"
></div></li>
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 8);"
></div></li>
</ol>
</div>
</div>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
function
()
{
$
(
'
.add-fullscreen
'
).
click
(
function
(){
$
(
'
div.video-subtitles
'
).
toggleClass
(
'
fullscreen
'
);
return
false
;
});
$
(
'
.hide-subtitles
'
).
click
(
function
()
{
$
(
'
div.video-subtitles
'
).
toggleClass
(
'
closed
'
);
$
(
this
).
toggleClass
(
"
off
"
);
return
false
;
});
});
$
(
"
ol#video_speeds
"
).
hide
();
$
(
"
div.speeds
"
).
click
(
function
()
{
$
(
"
ol#video_speeds
"
).
slideToggle
(
150
);
});
});
</script>
</
%
block>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment