From d155869f16b99570930af0fe2cf9d510d113d867 Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Thu, 8 Nov 2012 11:38:01 -0500 Subject: [PATCH] added in course-wide completion message static states and styling --- lms/static/sass/course/base/_base.scss | 74 ++++++++++++++++++++++++++ lms/templates/navigation.html | 41 ++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/lms/static/sass/course/base/_base.scss b/lms/static/sass/course/base/_base.scss index 62237fd7a9..4439b5b290 100644 --- a/lms/static/sass/course/base/_base.scss +++ b/lms/static/sass/course/base/_base.scss @@ -132,7 +132,81 @@ img { } .site-status { + display: block; +} + +.course-status { + display: none; + padding: 20px 10px; + background: #fffcf0; + border-bottom: 1px solid #999; + @include linear-gradient(#f2dfbe, #fffcf0); + @include box-shadow(0 -2px 0 #fff inset); + + .inner-wrapper { + margin: auto; + max-width: 1180px; + @include clearfix(); + + .message-copy { + display: inline-block; + margin-right: 20px; + + .grade-value { + font-size: 1.4rem; + font-weight: bold; + } + } + + .actions { + display: inline-block; + margin: 0; + padding: 0; + list-style: none; + + .action { + display: inline-block; + margin-right: 10px; + + &:last-child { + margin-right: 0; + } + + .btn { + padding: 6px 12px; + @include box-sizing(border-box); + @include button(shiny, $blue); + @include border-radius(3px); + font: normal 0.8rem/1.2rem $sans-serif; + letter-spacing: 1px; + text-align: center; + + &.disabled { + @include button(shiny, #eee); + cursor: default !important; + + &:hover { + background: #eee; + background-image: -webkit-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%); + background-image: -moz-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%); + background-image: -ms-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%); + background-image: -o-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%); + background-image: linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%); + } + } + } + + .cta { + font-size: 0.8rem; + font-weight: bold; + } + } + } + } + + &.is-shown { display: block; + } } .toast-notification { diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index d574bc3f6e..dfce6d3e90 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -91,6 +91,47 @@ site_status_msg = get_site_status_msg(course_id)
Warning: Your browser is not fully supported. We strongly recommend using Chrome or Firefox.
% endif +% if course: +
+
+

You have received a grade of B in this course.

+ + +
+
+ +
+
+

You did not complete the necessary requirements for completion of this course.

+ + +
+
+ +
+
+

You have received a grade of B in this course.

+ + +
+
+ +
+
+

Final course details are being wrapped up at this time. Your final standing will be available shortly.

+
+
+% endif + %if not user.is_authenticated(): <%include file="login_modal.html" /> <%include file="signup_modal.html" />