diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 350604a076..52fa481cb7 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -651,7 +651,6 @@ hr.divide { .view-button { @include blue-button; @include font-size(13); - padding: 8px 20px 10px; text-align: center; &.big { diff --git a/cms/static/sass/_dashboard.scss b/cms/static/sass/_dashboard.scss index 0a9e992650..68b147d370 100644 --- a/cms/static/sass/_dashboard.scss +++ b/cms/static/sass/_dashboard.scss @@ -6,19 +6,27 @@ @include box-shadow(0 1px 2px rgba(0, 0, 0, .1)); li { + position: relative; border-bottom: 1px solid $mediumGrey; &:last-child { border-bottom: none; } - } - a { - padding: 20px 25px; - line-height: 1.3; - - &:hover { - background: $paleYellow; + .class-link { + z-index: 100; + display: block; + padding: 20px 25px; + line-height: 1.3; + + &:hover { + background: $paleYellow; + + + .view-live-button { + opacity: 1.0; + pointer-events: auto; + } + } } } @@ -34,6 +42,21 @@ margin-right: 20px; color: #3c3c3c; } + + .view-live-button { + z-index: 10000; + position: absolute; + top: 15px; + right: $baseline; + padding: ($baseline/4) ($baseline/2); + opacity: 0; + pointer-events: none; + + &:hover { + opacity: 1.0; + pointer-events: auto; + } + } } .new-course { diff --git a/cms/templates/index.html b/cms/templates/index.html index 50d8933484..a968ff06ee 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -61,9 +61,10 @@