From 69c26a08e3a1fa5eb9d796fb44a6c41ac76677db Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Thu, 13 Dec 2012 13:06:56 -0500 Subject: [PATCH] settings/style - general UI clean up - wip --- cms/djangoapps/contentstore/views.py | 2 +- .../client_templates/course_grade_policy.html | 4 ++-- cms/static/sass/_base.scss | 12 ++++++++--- cms/static/sass/_header.scss | 8 ++++++++ cms/static/sass/_settings.scss | 20 ++++++++++--------- cms/static/sass/_variables.scss | 4 +++- cms/templates/settings.html | 12 +++++------ 7 files changed, 40 insertions(+), 22 deletions(-) diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index d2f19802af..017b6a963d 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -995,7 +995,7 @@ def get_course_settings(request, org, course, name): course_details = CourseDetails.fetch(location) return render_to_response('settings.html', { - 'active_tab': 'settings-tab', + 'active_tab': 'settings', 'context_course': course_module, 'course_details' : json.dumps(course_details, cls=CourseSettingsEncoder) }) diff --git a/cms/static/client_templates/course_grade_policy.html b/cms/static/client_templates/course_grade_policy.html index 97b0c20eb8..92fc32c2d8 100644 --- a/cms/static/client_templates/course_grade_policy.html +++ b/cms/static/client_templates/course_grade_policy.html @@ -64,6 +64,6 @@ total exercises that won't be graded - Delete Assignment Type + + Delete diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index e09c7fdd54..8e6ceaa10a 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -77,13 +77,14 @@ footer { input[type="text"], input[type="email"], -input[type="password"] { +input[type="password"], +textarea.text { padding: 6px 8px 8px; @include box-sizing(border-box); border: 1px solid $mediumGrey; border-radius: 2px; - @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3)); - background-color: #edf1f5; + @include linear-gradient($lightGrey, tint($lightGrey, 90%)); + background-color: $lightGrey; @include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset); font-family: 'Open Sans', sans-serif; font-size: 11px; @@ -95,6 +96,11 @@ input[type="password"] { &:-ms-input-placeholder { color: #979faf; } + + &:focus { + @include linear-gradient($paleYellow, tint($paleYellow, 90%)); + outline: 0; + } } input.search { diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index 76add36477..8ca39b9b84 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -31,10 +31,18 @@ body.no-header { @include active; } + &.active-tab-settings #settings-tab { + @include active; + } + &.active-tab-import #import-tab { @include active; } + &.active-tab-export #export-tab { + @include active; + } + .drop-icon { margin-left: 5px; font-size: 11px; diff --git a/cms/static/sass/_settings.scss b/cms/static/sass/_settings.scss index 3f1106584a..34721ed2c4 100644 --- a/cms/static/sass/_settings.scss +++ b/cms/static/sass/_settings.scss @@ -144,19 +144,21 @@ min-width: 75px !important; } - &:focus { - @include linear-gradient(tint($blue, 80%), tint($blue, 90%)); - border-color: $blue; - outline: 0; - } - &:disabled { - border-color: $mediumGrey; - color: $mediumGrey; + border: none; + @include box-shadow(none); + padding: 0; + color: $darkGrey; + font-weight: bold; background: #fff; } } + textarea.tinymce { + border: 1px solid $darkGrey; + height: 300px; + } + input[type="checkbox"], input[type="radio"] { } @@ -241,7 +243,7 @@ &.multi { display: block; background: tint($lightGrey, 50%); - padding: 20px 15px; + padding: 20px; @include border-radius(4px); @include box-sizing(border-box); diff --git a/cms/static/sass/_variables.scss b/cms/static/sass/_variables.scss index 10c31c3a21..95ee847b5c 100644 --- a/cms/static/sass/_variables.scss +++ b/cms/static/sass/_variables.scss @@ -13,8 +13,10 @@ $body-line-height: golden-ratio(.875em, 1); $pink: rgb(182,37,104); $error-red: rgb(253, 87, 87); -$offBlack: #3c3c3c; $baseFontColor: #3c3c3c; +$offBlack: #3c3c3c; +$black: rgb(0,0,0); +$white: rgb(255,255,255); $blue: #5597dd; $orange: #edbd3c; $red: #b20610; diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 559df38cf4..2498d31a7d 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -93,7 +93,6 @@ from contentstore import utils
- e.g. 101x This is used in your course URL, and cannot be changed
@@ -231,8 +230,8 @@ from contentstore import utils
- - Video restrictions go here + + Video restrictions go here
@@ -251,7 +250,7 @@ from contentstore import utils
- Time students should spend on all course work + Time spent on all course work
@@ -421,8 +420,8 @@ from contentstore import utils - - New Assignment Type + + New Assignment Type @@ -727,4 +726,5 @@ from contentstore import utils +