Commit 69c26a08 by Brian Talbot

settings/style - general UI clean up - wip

parent 7d823d9e
...@@ -995,7 +995,7 @@ def get_course_settings(request, org, course, name): ...@@ -995,7 +995,7 @@ def get_course_settings(request, org, course, name):
course_details = CourseDetails.fetch(location) course_details = CourseDetails.fetch(location)
return render_to_response('settings.html', { return render_to_response('settings.html', {
'active_tab': 'settings-tab', 'active_tab': 'settings',
'context_course': course_module, 'context_course': course_module,
'course_details' : json.dumps(course_details, cls=CourseSettingsEncoder) 'course_details' : json.dumps(course_details, cls=CourseSettingsEncoder)
}) })
......
...@@ -64,6 +64,6 @@ ...@@ -64,6 +64,6 @@
<span class="tip tip-inline">total exercises that won't be graded</span> <span class="tip tip-inline">total exercises that won't be graded</span>
</div> </div>
</div> </div>
</div> <a href="#" class="remove-item remove-grading-data"><span </div>
class="delete-icon"></span> Delete Assignment Type</a> <a href="#" class="delete-button remove-item remove-grading-data"><span class="delete-icon"></span>Delete</a>
</li> </li>
...@@ -77,13 +77,14 @@ footer { ...@@ -77,13 +77,14 @@ footer {
input[type="text"], input[type="text"],
input[type="email"], input[type="email"],
input[type="password"] { input[type="password"],
textarea.text {
padding: 6px 8px 8px; padding: 6px 8px 8px;
@include box-sizing(border-box); @include box-sizing(border-box);
border: 1px solid $mediumGrey; border: 1px solid $mediumGrey;
border-radius: 2px; border-radius: 2px;
@include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3)); @include linear-gradient($lightGrey, tint($lightGrey, 90%));
background-color: #edf1f5; background-color: $lightGrey;
@include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset); @include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset);
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 11px; font-size: 11px;
...@@ -95,6 +96,11 @@ input[type="password"] { ...@@ -95,6 +96,11 @@ input[type="password"] {
&:-ms-input-placeholder { &:-ms-input-placeholder {
color: #979faf; color: #979faf;
} }
&:focus {
@include linear-gradient($paleYellow, tint($paleYellow, 90%));
outline: 0;
}
} }
input.search { input.search {
......
...@@ -31,10 +31,18 @@ body.no-header { ...@@ -31,10 +31,18 @@ body.no-header {
@include active; @include active;
} }
&.active-tab-settings #settings-tab {
@include active;
}
&.active-tab-import #import-tab { &.active-tab-import #import-tab {
@include active; @include active;
} }
&.active-tab-export #export-tab {
@include active;
}
.drop-icon { .drop-icon {
margin-left: 5px; margin-left: 5px;
font-size: 11px; font-size: 11px;
......
...@@ -144,19 +144,21 @@ ...@@ -144,19 +144,21 @@
min-width: 75px !important; min-width: 75px !important;
} }
&:focus {
@include linear-gradient(tint($blue, 80%), tint($blue, 90%));
border-color: $blue;
outline: 0;
}
&:disabled { &:disabled {
border-color: $mediumGrey; border: none;
color: $mediumGrey; @include box-shadow(none);
padding: 0;
color: $darkGrey;
font-weight: bold;
background: #fff; background: #fff;
} }
} }
textarea.tinymce {
border: 1px solid $darkGrey;
height: 300px;
}
input[type="checkbox"], input[type="radio"] { input[type="checkbox"], input[type="radio"] {
} }
...@@ -241,7 +243,7 @@ ...@@ -241,7 +243,7 @@
&.multi { &.multi {
display: block; display: block;
background: tint($lightGrey, 50%); background: tint($lightGrey, 50%);
padding: 20px 15px; padding: 20px;
@include border-radius(4px); @include border-radius(4px);
@include box-sizing(border-box); @include box-sizing(border-box);
......
...@@ -13,8 +13,10 @@ $body-line-height: golden-ratio(.875em, 1); ...@@ -13,8 +13,10 @@ $body-line-height: golden-ratio(.875em, 1);
$pink: rgb(182,37,104); $pink: rgb(182,37,104);
$error-red: rgb(253, 87, 87); $error-red: rgb(253, 87, 87);
$offBlack: #3c3c3c;
$baseFontColor: #3c3c3c; $baseFontColor: #3c3c3c;
$offBlack: #3c3c3c;
$black: rgb(0,0,0);
$white: rgb(255,255,255);
$blue: #5597dd; $blue: #5597dd;
$orange: #edbd3c; $orange: #edbd3c;
$red: #b20610; $red: #b20610;
......
...@@ -93,7 +93,6 @@ from contentstore import utils ...@@ -93,7 +93,6 @@ from contentstore import utils
<div class="field"> <div class="field">
<div class="input"> <div class="input">
<input type="text" class="short" id="course-number" value="[Course No.]" disabled="disabled"> <input type="text" class="short" id="course-number" value="[Course No.]" disabled="disabled">
<span class="tip tip-inline">e.g. 101x</span>
<span class="tip tip-stacked">This is used in <a href="${utils.get_lms_link_for_item(context_course.location, True)}">your course URL</a>, and cannot be changed</span> <span class="tip tip-stacked">This is used in <a href="${utils.get_lms_link_for_item(context_course.location, True)}">your course URL</a>, and cannot be changed</span>
</div> </div>
</div> </div>
...@@ -231,8 +230,8 @@ from contentstore import utils ...@@ -231,8 +230,8 @@ from contentstore import utils
</div> </div>
<div class="input"> <div class="input">
<input type="text" class="new-item new-course-introduction-video add-video-data" id="course-introduction-video" value="" placeholder="speed:id,speed:id" autocomplete="off"> <input type="text" class="long new-course-introduction-video add-video-data" id="course-introduction-video" value="" placeholder="speed:id,speed:id" autocomplete="off">
<span class="tip tip-inline">Video restrictions go here</span> <span class="tip tip-stacked">Video restrictions go here</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -251,7 +250,7 @@ from contentstore import utils ...@@ -251,7 +250,7 @@ from contentstore import utils
<div class="field"> <div class="field">
<div class="input"> <div class="input">
<input type="text" class="short time" id="course-effort" placeholder="HH:MM"> <input type="text" class="short time" id="course-effort" placeholder="HH:MM">
<span class="tip tip-stacked">Time students should spend on all course work</span> <span class="tip tip-stacked">Time spent on all course work</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -421,8 +420,8 @@ from contentstore import utils ...@@ -421,8 +420,8 @@ from contentstore import utils
<ul class="input-list course-grading-assignment-list"> <ul class="input-list course-grading-assignment-list">
</ul> </ul>
<a href="#" class="new-item new-course-grading-item add-grading-data"> <a href="#" class="new-button new-course-grading-item add-grading-data">
<span class="plus-icon"></span>New Assignment Type <span class="plus-icon white"></span>New Assignment Type
</a> </a>
</div> </div>
</div> </div>
...@@ -727,4 +726,5 @@ from contentstore import utils ...@@ -727,4 +726,5 @@ from contentstore import utils
</article> </article>
</div> </div>
</div> </div>
<footer></footer>
</%block> </%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment