Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 49 additions & 14 deletions cms/static/sass/views/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
&:hover {
background: $paleYellow;

.course-actions .view-live-button {
.course-actions .action-view .view {
opacity: 1.0;
pointer-events: auto;
}
Expand All @@ -337,7 +337,7 @@
// encompassing course link
.course-link {
@extend %ui-depth2;
width: flex-grid(7, 9);
width: flex-grid(6, 9);
margin-right: flex-gutter();
}

Expand Down Expand Up @@ -383,21 +383,56 @@
.course-actions {
@extend %ui-depth3;
position: static;
width: flex-grid(2, 9);
width: flex-grid(3, 9);
text-align: right;

.action {
display: inline-block;
vertical-align: middle;
margin-right: ($baseline/2);

&:last-child {
margin-right: 0;
}
}

// delete course
.action-delete {

// STATE: disabled
&.is-disabled {
opacity: 0.0;
visibility: hidden;
pointer-events: none;
}

.delete {
@extend %ui-btn-non;
@extend %t-action1;
color: $gray-l3;

&:hover {
background-color: $blue;
color: $gray-l6;
}
}
}

// view live button
.view-live-button {
@extend %ui-depth3;
@include transition(opacity $tmg-f2 ease-in-out 0);
@include box-sizing(border-box);
padding: ($baseline/2);
opacity: 0.0;
pointer-events: none;

&:hover {
opacity: 1.0;
pointer-events: auto;
.action-view {

.view {
@extend %ui-depth3;
@include transition(opacity $tmg-f2 ease-in-out 0);
@include box-sizing(border-box);
padding: ($baseline/2);
opacity: 0.0;
pointer-events: none;

&:hover {
opacity: 1.0;
pointer-events: auto;
}
}
}

Expand Down
7 changes: 5 additions & 2 deletions cms/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ <h3 class="course-title">${course}</h3>
</a>

<ul class="item-actions course-actions">
<li class="action">
<a href="${lms_link}" rel="external" class="button view-button view-live-button">${_("View Live")}</a>
<li class="action action-view">
<a href="${lms_link}" rel="external" class="view button view-button view-live-button">${_("View Live")}</a>
</li>
<li class="action action-delete">
<a href="#" class="delete remove-course action-icon"><i class="icon-remove-sign"></i><span class="sr">${_("Delete this course")}</span></a>
</li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion common/static/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
border: none;
border-radius: ($baseline/4);
background: none;
padding: 3px ($baseline/2);
padding: ($baseline/4) ($baseline/2);
vertical-align: middle;
color: $gray-l1;

Expand Down