From f194b9c4837f2445b8418a6e57d60ed5a08ca82a Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Mon, 28 Jul 2014 09:51:43 -0400 Subject: [PATCH] Studio: addressing outline UI PR feedback: * correcting visual display of outline UI without content * temporarily resolving page actions that should be hidden by default --- cms/static/sass/_shame.scss | 16 ++++++++++++++++ cms/static/sass/views/_outline.scss | 17 ++--------------- cms/templates/js/course-outline.underscore | 2 +- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/cms/static/sass/_shame.scss b/cms/static/sass/_shame.scss index aaf088e362..dbd6e61f97 100644 --- a/cms/static/sass/_shame.scss +++ b/cms/static/sass/_shame.scss @@ -94,3 +94,19 @@ body b { div.wrapper-comp-editor.is-inactive ~ div.launch-latex-compiler{ display: none; } + +// ==================== + +// masthead button hidden states +.mast.has-actions .nav-actions .button.is-hidden { + @extend .is-hidden; +} + +// ==================== + +// TODOs: + +// * font-weight syncing +// * divorce display: inline-block from base button definitions/placeholders +// * canned typography class syncing + diff --git a/cms/static/sass/views/_outline.scss b/cms/static/sass/views/_outline.scss index 3a7c70a2fb..f377d401a1 100644 --- a/cms/static/sass/views/_outline.scss +++ b/cms/static/sass/views/_outline.scss @@ -69,21 +69,8 @@ width: flex-grid(9, 12); margin-right: flex-gutter(); - .no-outline-content { - @extend %ui-well; - padding: ($baseline*2); - background-color: $gray-l4; - text-align: center; - color: $gray; - - .new-button { - @include font-size(14); - margin-left: $baseline; - - [class^="icon-"] { - margin-right: ($baseline/2); - } - } + .no-content { + @extend %no-content; } } diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore index 84c426fa87..8afbd458a1 100644 --- a/cms/templates/js/course-outline.underscore +++ b/cms/templates/js/course-outline.underscore @@ -101,7 +101,7 @@ if (statusType === 'warning') {

<%= gettext("You haven't added any content to this course yet.") %> - <%= addChildLabel %> + <%= addChildLabel %>