From e8b399aaa16159fcea9e91b422e15e161f385500 Mon Sep 17 00:00:00 2001 From: Muhammad Shoaib Date: Wed, 19 Aug 2015 15:38:18 +0500 Subject: [PATCH] PHX-118 added the css for the timer bar visibility when the page scrolls --- .../course/layout/_courseware_preview.scss | 82 +++++++++++-------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/lms/static/sass/course/layout/_courseware_preview.scss b/lms/static/sass/course/layout/_courseware_preview.scss index 913394b9e3..d56c6945fa 100644 --- a/lms/static/sass/course/layout/_courseware_preview.scss +++ b/lms/static/sass/course/layout/_courseware_preview.scss @@ -47,47 +47,57 @@ font-size: 90%; } } -.exam-timer { - line-height: 56px; - background-color: #e5eaec; - padding-left: 42px; - padding-right: 32px; - border-left: 4px solid #14a6ea; - margin: 0 auto; - color: #4e575b; - font-size: 14px; - a { - color: #0979ba; +.proctored_exam_status { + // STATE: Fixed to viewport (used for scrolling) + &.is-fixed { + @extend %ui-depth4; + box-shadow: 0 3px 3px $shadow-d1; + position: fixed; + top: 0; + width: 100%; } - span.pull-right { - color: #646161; - line-height: 56px; - b { - color: #414040; - } - } - &.low-time { - color: #cdd7db; - background-color: #4F585C; + .exam-timer { + @include line-height(39); + background-color: rgb(229, 234, 236); + padding-left: 42px; + padding-right: 32px; + border-left: 4px solid $m-blue-l1; + margin: 0 auto; + color: $gray-d2; + @include font-size(14); a { - color: #fff; - text-decoration: underline; + color: rgb(9, 121, 186); } span.pull-right { - color: #cdd7db; + color: $gray-d1; + @include line-height(39); b { - color: #fff; + color: $gray-d3; } } + &.low-time { + color: $gray-l3; + background-color: rgb(79, 88, 92); + a { + color: $white; + text-decoration: underline; + } + span.pull-right { + color: $gray-l3; + b { + color: $white; + } + } + } + &.warning { + border-left-color: $warning-color; + } + &.critical { + border-left-color: $alert-color; + color: $white; + } + .exam-button-turn-in-exam { + margin-right: $baseline; + } } - &.warning { - border-left-color: #feb93e; - } - &.critical { - border-left-color: #b30101; - color: #fff; - } - .exam-button-turn-in-exam { - margin-right: 20px; - } -} +} \ No newline at end of file