diff --git a/cms/static/sass/views/_static-pages.scss b/cms/static/sass/views/_static-pages.scss index cbe71bb973..6579c30c0f 100644 --- a/cms/static/sass/views/_static-pages.scss +++ b/cms/static/sass/views/_static-pages.scss @@ -180,7 +180,7 @@ } .component, - .course-nav-tab { + .course-nav-item { position: relative; border: 1px solid $mediumGrey; border-top: none; @@ -239,7 +239,7 @@ } .component-actions, - .course-nav-tab-actions { + .course-nav-item-actions { display: inline-block; float: right; margin-right: ($baseline*2); @@ -289,30 +289,31 @@ } // basic course nav items - overrides from above - .course-nav-tab { + .course-nav-item { padding: ($baseline*.75) ($baseline/4) ($baseline*.75) $baseline; + background: $white; - &.fixed { + &.is-fixed { + @extend %ui-disabled; @include transition(opacity $tmg-f2 ease-in-out 0s); - opacity: .7; - - &:hover { - opacity: 1; - } + opacity: 0.5; } - .course-nav-tab-header { + .course-nav-item-header { display: inline-block; width:80%; .title { @extend %t-title4; - font-weight: 300; - color: $gray; + } + + .title-sub { + @extend %t-title7; + color: $gray-l2; } } - .course-nav-tab-actions { + .course-nav-item-actions { display: inline-block; padding: ($baseline/10); } @@ -335,7 +336,6 @@ @include transition(background-color $tmg-s3 linear 0s); padding: 20px 20px 22px; font-size: 24px; - font-weight: 300; background: #fff; } @@ -395,4 +395,3 @@ outline: 0; } } - diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html index 58a848ca9a..0339e76833 100644 --- a/cms/templates/edit-tabs.html +++ b/cms/templates/edit-tabs.html @@ -55,7 +55,7 @@
-
    +
      % for tab in tabs_to_render: % if isinstance(tab, StaticTab): @@ -64,20 +64,37 @@ <% tab_name = _(tab.name) + item_names_formatted = "" + item_names = [] + num_items = 0 if tab.is_collection: item_names = [_(item.name) for item in tab.items(context_course)] num_items = sum(1 for item in tab.items(context_course)) - tab_name = tab_name + " ({0}): {1}".format(num_items, ", ".join(item_names)) - css_class = "course-nav-tab course-tab" + css_class = "course-nav-item course-nav-tab course-tab" if tab.is_movable: css_class = css_class + " sortable-tab" %> + % if tab.is_hideable or tab.is_movable:
    1. -
      -

      ${tab_name}

      +
      + % if tab.is_collection: +

      ${tab_name}

      + +
        + % for item_name in item_names: +
      • + ${item_name} +
      • + % endfor +
      + + % else: +

      ${tab_name}

      + % endif
      -
      + +
        % if tab.is_hideable: @@ -97,10 +114,38 @@ % if tab.is_movable:
        - ${_("Fixed page")} + ${_("Drag to reorder")} +
        + % else: +
        + ${_("This page cannot be reordered")}
        % endif + + % else: +
      • +
        +

        ${tab_name}

        + + % if tab.is_collection: +
          + % for item_name in item_names: +
        • + ${item_name} +
        • + % endfor +
        + % endif +
      +
      + +
      + ${_("This page cannot be reordered")} +
      +
    2. + % endif + % endif % endfor