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
55d8a723
Commit
55d8a723
authored
Oct 03, 2013
by
Frances Botsford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding a little ux to the download video and transcript links
parent
68fb0230
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
common/lib/xmodule/xmodule/css/video/display.scss
+25
-2
lms/templates/video.html
+6
-3
No files found.
common/lib/xmodule/xmodule/css/video/display.scss
View file @
55d8a723
...
...
@@ -27,6 +27,29 @@ div.video {
height
:
0px
;
}
.video-sources
,
.video-tracks
{
display
:
inline-block
;
p
{
margin
:
(
$baseline
*.
75
)
(
$baseline
/
2
)
0
0
;
display
:
inline-block
;
}
a
{
display
:
inline-block
;
border-radius
:
3px
3px
3px
3px
;
background-color
:
$shadow-l1
;
padding
:
(
$baseline
*.
75
);
&
:hover
{
background-color
:
$blue
;
color
:
$white
;
}
}
}
article
.video-wrapper
{
float
:
left
;
margin-right
:
flex-gutter
(
9
);
...
...
@@ -392,7 +415,7 @@ div.video {
@include
transition
(
none
);
-webkit-font-smoothing
:
antialiased
;
width
:
30px
;
&
:hover
,
&
:active
{
background-color
:
#444
;
color
:
#fff
;
...
...
@@ -457,7 +480,7 @@ div.video {
text-indent
:
-9999px
;
@include
transition
(
none
);
width
:
30px
;
&
:hover
,
&
:active
{
background-color
:
#444
;
color
:
#fff
;
...
...
lms/templates/video.html
View file @
55d8a723
...
...
@@ -76,16 +76,19 @@
</div>
<div
class=
"focus_grabber last"
></div>
</div>
% if sources.get('main'):
<div
class=
"video-sources"
>
<p>
${(
_('Download video') + '
<a
href=
"%s"
>
' + _('here') + '
</a>
.
') % sources.get('main')}
</p>
<p>
${(
'
<a
href=
"%s"
>
' + _('Download video') + '
</a>
') % sources.get('main')}
</p>
</div>
% endif
% if track:
<div
class=
"video-tracks"
>
<p>
${(
_('Download subtitles') + '
<a
href=
"%s"
>
' + _('here') + '
</a>
.
') % track}
</p>
<p>
${(
'
<a
href=
"%s"
>
' + _('Download timed transcript') + '
</a>
') % track}
</p>
</div>
% endif
</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