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
3faf7456
Commit
3faf7456
authored
Jan 14, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2159 from edx/talbs/lms-fix-certificate-button
LMS: FIX - Add Styling Back to Certificate Download Button
parents
6aeadb87
fd94be6a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
4 deletions
+46
-4
lms/static/sass/elements/_controls.scss
+38
-0
lms/static/sass/multicourse/_dashboard.scss
+7
-3
lms/templates/dashboard/_dashboard_certificate_information.html
+1
-1
No files found.
lms/static/sass/elements/_controls.scss
View file @
3faf7456
...
...
@@ -30,6 +30,44 @@
border-radius
:
(
$baseline
/
10
);
}
// ====================
%btn-inherited
{
@include
transition
(
background-color
0
.15s
,
box-shadow
0
.15s
);
border-radius
:
3px
;
box-shadow
:
0
1px
0
rgba
(
$white
,
.3
)
inset
,
0
0
0
rgba
(
$black
,
0
);
padding
:
(
$baseline
/
2
)
$baseline
;
&
:hover
,
&
.active
{
text-decoration
:
none
;
}
&
.disabled
,
&
.is-disabled
,
&
[
disabled
=
"disabled"
]
{
box-shadow
:
none
;
}
}
%btn-inherited-primary
{
@extend
%btn-inherited
;
@include
linear-gradient
(
top
,
rgba
(
$white
,
.3
)
,
rgba
(
$white
,
0
));
border
:
1px
solid
shade
(
$action-primary-bg
,
10%
);
background-color
:
$action-primary-bg
;
color
:
$action-primary-fg
;
&
:hover
,
&
.active
{
background-color
:
$action-primary-focused-bg
;
color
:
$action-primary-focused-fg
;
}
&
.disabled
,
&
.is-disabled
,
&
[
disabled
=
"disabled"
]
{
border
:
1px
solid
tint
(
$action-primary-disabled-bg
,
10%
);
background
:
$action-primary-disabled-bg
;
color
:
$action-prmary-disabled-fg
;
}
}
// ====================
// primary button
%btn-primary
{
@extend
%t-weight3
;
...
...
lms/static/sass/multicourse/_dashboard.scss
View file @
3faf7456
...
...
@@ -749,11 +749,9 @@
}
&
.course-status-certnotavailable
{
// background: #fee8d6;
}
&
.course-status-certrendering
{
// background: #d9e7db;
.cta
{
margin-top
:
2px
;
...
...
@@ -761,7 +759,13 @@
}
&
.course-status-certavailable
{
// background: #d9e7db;
.action-certificate
{
.btn
{
@extend
%btn-inherited-primary
;
}
}
}
}
...
...
lms/templates/dashboard/_dashboard_certificate_information.html
View file @
3faf7456
...
...
@@ -40,7 +40,7 @@ else:
<li
class=
"action"
><span
class=
"disabled"
>
${_("Your Certificate is Generating")}
</span></li>
% elif cert_status['show_download_url'] and enrollment.mode == 'honor':
<li
class=
"action"
>
<li
class=
"action
action-certificate
"
>
<a
class=
"btn"
href=
"${cert_status['download_url']}"
title=
"${_('This link will open/download a PDF document')}"
>
${_("Download Your Certificate (PDF)")}
</a></li>
...
...
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