diff --git a/lms/static/images/sequence-nav/status/check.png b/lms/static/images/sequence-nav/status/check.png new file mode 100644 index 0000000000..d13529338b Binary files /dev/null and b/lms/static/images/sequence-nav/status/check.png differ diff --git a/lms/static/images/sequence-nav/status/dash.png b/lms/static/images/sequence-nav/status/dash.png new file mode 100644 index 0000000000..79e7fa8f7f Binary files /dev/null and b/lms/static/images/sequence-nav/status/dash.png differ diff --git a/lms/static/images/sequence-nav/status/not-started.png b/lms/static/images/sequence-nav/status/not-started.png new file mode 100644 index 0000000000..826e28609b Binary files /dev/null and b/lms/static/images/sequence-nav/status/not-started.png differ diff --git a/lms/static/images/sequence-nav/status/wrong.png b/lms/static/images/sequence-nav/status/wrong.png new file mode 100644 index 0000000000..0ae9d34c68 Binary files /dev/null and b/lms/static/images/sequence-nav/status/wrong.png differ diff --git a/lms/static/sass/README.md b/lms/static/sass/README.md index dccb3a80c3..e94076e6e0 100644 --- a/lms/static/sass/README.md +++ b/lms/static/sass/README.md @@ -23,3 +23,7 @@ The dev server will automatically compile sass files that have changed. Simply s the server using: $ rake runserver + +To run it along side of development: + + $ sass --watch lms/static/sass:lms/static/sass -r ./lms/static/sass/bourbon/lib/bourbon.rb diff --git a/lms/static/sass/base/_extends.scss b/lms/static/sass/base/_extends.scss index 880f6cd3ca..63c3a9de7a 100644 --- a/lms/static/sass/base/_extends.scss +++ b/lms/static/sass/base/_extends.scss @@ -205,7 +205,7 @@ h1.top-header { border-top: 1px solid #fff; // @include box-shadow(inset 0 1px 0 #fff, inset 1px 0 0 #fff); font-size: 12px; - height:46px; + // height:46px; line-height: 46px; margin: (-$body-line-height) (-$body-line-height) $body-line-height; text-shadow: 0 1px 0 #fff; @@ -224,7 +224,7 @@ h1.top-header { } &.block-link { - background: darken($cream, 5%); + // background: darken($cream, 5%); border-left: 1px solid darken($cream, 20%); @include box-shadow(inset 1px 0 0 lighten($cream, 5%)); display: block; diff --git a/lms/static/sass/courseware/_sequence-nav.scss b/lms/static/sass/courseware/_sequence-nav.scss index 4472724e6d..377464971b 100644 --- a/lms/static/sass/courseware/_sequence-nav.scss +++ b/lms/static/sass/courseware/_sequence-nav.scss @@ -17,7 +17,7 @@ nav.sequence-nav { } li { - border-left: 1px solid darken($cream, 20%); + border-left: 1px solid darken($cream, 10%); display: table-cell; min-width: 20px; @@ -29,18 +29,17 @@ nav.sequence-nav { background-repeat: no-repeat; &:hover { - background-color: lighten($cream, 3%); + background-color: lighten($cream, 8%); } } .visited { - background-color: #DCCDA2; + background-color: darken($cream, 4%); background-repeat: no-repeat; - @include box-shadow(inset 0 0 3px darken(#dccda2, 10%)); + @include box-shadow(0); &:hover { background-color: $cream; - background-position: center center; } } @@ -51,7 +50,6 @@ nav.sequence-nav { &:hover { background-color: #fff; - background-position: center; } } @@ -61,86 +59,87 @@ nav.sequence-nav { cursor: pointer; display: block; height: 17px; - padding: 15px 0 14px; + padding: 15px 0 17px; position: relative; @include transition(all, .4s, $ease-in-out-quad); width: 100%; - - &.progress { - border-bottom-style: solid; - border-bottom-width: 4px; - } - - &.progress-none { - @extend .progress; - border-bottom-color: red; - } - - &.progress-some { - @extend .progress; - border-bottom-color: yellow; - } - - &.progress-done { - @extend .progress; - border-bottom-color: green; - } + background-position: center 8px; //video &.seq_video_inactive { @extend .inactive; - background-image: url('../images/sequence-nav/video-icon-normal.png'); - background-position: center; + background-image: url('../images/sequence-nav/video-icon-visited.png'); } &.seq_video_visited { @extend .visited; - background-image: url('../images/sequence-nav/video-icon-visited.png'); - background-position: center; + background-image: url('../images/sequence-nav/video-icon-normal.png'); } &.seq_video_active { @extend .active; background-image: url('../images/sequence-nav/video-icon-current.png'); - background-position: center; } //other &.seq_other_inactive { @extend .inactive; - background-image: url('../images/sequence-nav/document-icon-normal.png'); - background-position: center; + background-image: url('../images/sequence-nav/document-icon-visited.png'); } &.seq_other_visited { @extend .visited; - background-image: url('../images/sequence-nav/document-icon-visited.png'); - background-position: center; + background-image: url('../images/sequence-nav/document-icon-normal.png'); } &.seq_other_active { @extend .active; background-image: url('../images/sequence-nav/document-icon-current.png'); - background-position: center; } //vertical & problems &.seq_vertical_inactive, &.seq_problem_inactive { @extend .inactive; - background-image: url('../images/sequence-nav/list-icon-normal.png'); - background-position: center; + background-image: url('../images/sequence-nav/list-icon-visited.png'); } &.seq_vertical_visited, &.seq_problem_visited { @extend .visited; - background-image: url('../images/sequence-nav/list-icon-visited.png'); - background-position: center; + background-image: url('../images/sequence-nav/list-icon-normal.png'); } &.seq_vertical_active, &.seq_problem_active { @extend .active; background-image: url('../images/sequence-nav/list-icon-current.png'); - background-position: center; + } + + &:after { + content: " "; + display: block; + width: 11px; + height: 11px; + background: url('../images/sequence-nav/status/dash.png') no-repeat center; + @include position( absolute, 0 0 6px 50% ); + margin-left: -5px; + } + + //progress + &.progress-none { + &:after { + background: url('../images/sequence-nav/status/not-started.png') no-repeat center; + } + } + + &.progress-some { + &:after { + background: url('../images/sequence-nav/status/wrong.png') no-repeat center; + } + } + + &.progress-done { + &:after { + background: url('../images/sequence-nav/status/check.png') no-repeat center; + } } p { @@ -180,6 +179,8 @@ nav.sequence-nav { } &:hover { + background-position: center 8px; + p { display: block; margin-top: 4px; @@ -215,6 +216,7 @@ nav.sequence-nav { display: block; text-indent: -9999px; @include transition(all, .2s, $ease-in-out-quad); + line-height: 49px; &:hover { opacity: .5;