From 559057591fe58c86d1da5fd1a9bf9b2e9cd4773c Mon Sep 17 00:00:00 2001 From: Brian Jacobel Date: Mon, 27 Feb 2017 16:39:30 -0500 Subject: [PATCH] Update to new styling --- .../sass/shared-v2/_course-outline.scss | 65 ++++++++++--------- lms/static/sass/shared-v2/_layouts.scss | 10 --- lms/templates/courseware/course_outline.html | 5 +- .../courseware/unified-course-view.html | 2 +- 4 files changed, 38 insertions(+), 44 deletions(-) diff --git a/lms/static/sass/shared-v2/_course-outline.scss b/lms/static/sass/shared-v2/_course-outline.scss index 819c1a9ee1..0fde15faf8 100644 --- a/lms/static/sass/shared-v2/_course-outline.scss +++ b/lms/static/sass/shared-v2/_course-outline.scss @@ -1,45 +1,50 @@ .course-outline { color: $lms-gray; - ol { - margin: 0 $baseline; - list-style: none; + .block-tree { + margin: 0; + list-style-type: none; - > ol { - @include margin-left($baseline / 2); - } + .section { + margin: 0 (-1 * $baseline); + width: calc(100% + (2 * $baseline)); + padding: 0 ($baseline * 2); - div.section-name { - @include padding($baseline * 0.75, $baseline * 0.75, $baseline * 0.75, $baseline / 4); - background-color: $lms-background-color; - border-top: 1px solid $lms-border-color; - margin-bottom: $baseline * 0.5; - } + &:not(:first-child) { + border-top: 1px solid $lms-border-color; - ol.outline-item { - @include margin-left($baseline); - padding-bottom: ($baseline / 2); + .section-name { + margin-top: $baseline; + } + } - li { + .section-name { + @include margin(0, 0, ($baseline / 2), ($baseline / 2)); + padding: 0; + font-weight: bold; + } - a { - padding: ($baseline / 4) ($baseline * 1.5); - display: block; + .outline-item { + @include padding-left(0); + } - &:hover { - background-color: $lms-background-color; - text-decoration: none; + ol.outline-item { + margin: 0 0 ($baseline / 2) 0; + + .subsection { + list-style-type: none; + + a.outline-item { + display: block; + padding: ($baseline / 2); + + &:hover { + background-color: palette(primary, x-back); + text-decoration: none; + } } } } } - - .icon { - margin: 0 ($baseline * 0.75); - position: relative; - top: -2px; - font-size: 12px; - } } - } diff --git a/lms/static/sass/shared-v2/_layouts.scss b/lms/static/sass/shared-v2/_layouts.scss index 22f36dffac..5045a9210d 100644 --- a/lms/static/sass/shared-v2/_layouts.scss +++ b/lms/static/sass/shared-v2/_layouts.scss @@ -46,16 +46,6 @@ display: inline-block; } - .form-actions > * { - @include margin-left($baseline/2); - vertical-align: middle; - height: 34px; - } - - .form-actions > button { - height: 34px; - } - .form-actions > *:first-child { @include margin-left(0); } diff --git a/lms/templates/courseware/course_outline.html b/lms/templates/courseware/course_outline.html index c4d7d95533..c9473597c6 100644 --- a/lms/templates/courseware/course_outline.html +++ b/lms/templates/courseware/course_outline.html @@ -15,18 +15,17 @@ from django.utils.translation import ugettext as _ % for section in blocks.get('children') or []:
  • - ${ section['display_name'] }
      % for subsection in section.get('children') or []: -
    1. +