Commit 3faf7456 by Brian Talbot

Merge pull request #2159 from edx/talbs/lms-fix-certificate-button

LMS: FIX - Add Styling Back to Certificate Download Button
parents 6aeadb87 fd94be6a
...@@ -30,6 +30,44 @@ ...@@ -30,6 +30,44 @@
border-radius: ($baseline/10); 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 // primary button
%btn-primary { %btn-primary {
@extend %t-weight3; @extend %t-weight3;
......
...@@ -749,11 +749,9 @@ ...@@ -749,11 +749,9 @@
} }
&.course-status-certnotavailable { &.course-status-certnotavailable {
// background: #fee8d6;
} }
&.course-status-certrendering { &.course-status-certrendering {
// background: #d9e7db;
.cta { .cta {
margin-top: 2px; margin-top: 2px;
...@@ -761,7 +759,13 @@ ...@@ -761,7 +759,13 @@
} }
&.course-status-certavailable { &.course-status-certavailable {
// background: #d9e7db;
.action-certificate {
.btn {
@extend %btn-inherited-primary;
}
}
} }
} }
......
...@@ -40,7 +40,7 @@ else: ...@@ -40,7 +40,7 @@ else:
<li class="action"><span class="disabled"> <li class="action"><span class="disabled">
${_("Your Certificate is Generating")}</span></li> ${_("Your Certificate is Generating")}</span></li>
% elif cert_status['show_download_url'] and enrollment.mode == 'honor': % 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']}" <a class="btn" href="${cert_status['download_url']}"
title="${_('This link will open/download a PDF document')}"> title="${_('This link will open/download a PDF document')}">
${_("Download Your Certificate (PDF)")}</a></li> ${_("Download Your Certificate (PDF)")}</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment