Commit 197ea332 by Tom Giannattasio Committed by Brian Talbot

tweaked body color and window styles; adjusting new buttons

parent 74ce3d22
...@@ -638,11 +638,14 @@ function saveNewSection(e) { ...@@ -638,11 +638,14 @@ function saveNewSection(e) {
function cancelNewSection(e) { function cancelNewSection(e) {
e.preventDefault(); e.preventDefault();
$('.new-courseware-section-button').show();
$(this).parents('section.new-section').remove(); $(this).parents('section.new-section').remove();
} }
function addNewCourse(e) { function addNewCourse(e) {
e.preventDefault(); e.preventDefault();
$(e.target).hide();
var $newCourse = $($('#new-course-template').html()); var $newCourse = $($('#new-course-template').html());
var $cancelButton = $newCourse.find('.new-course-cancel'); var $cancelButton = $newCourse.find('.new-course-cancel');
$('.new-course-button').after($newCourse); $('.new-course-button').after($newCourse);
...@@ -683,6 +686,7 @@ function saveNewCourse(e) { ...@@ -683,6 +686,7 @@ function saveNewCourse(e) {
function cancelNewCourse(e) { function cancelNewCourse(e) {
e.preventDefault(); e.preventDefault();
$('.new-course-button').show();
$(this).parents('section.new-course').remove(); $(this).parents('section.new-course').remove();
} }
......
...@@ -6,13 +6,17 @@ ...@@ -6,13 +6,17 @@
body { body {
min-width: 980px; min-width: 980px;
background: #f3f4f5; background: #eaebed;
font-family: 'Open Sans', sans-serif;
font-size: 16px; font-size: 16px;
line-height: 1.6; line-height: 1.6;
color: #3c3c3c; color: #3c3c3c;
} }
body,
input {
font-family: 'Open Sans', sans-serif;
}
a { a {
text-decoration: none; text-decoration: none;
color: $blue; color: $blue;
...@@ -56,9 +60,8 @@ h1 { ...@@ -56,9 +60,8 @@ h1 {
.window { .window {
background: #fff; background: #fff;
border: 1px solid $darkGrey;
border-radius: 3px; border-radius: 3px;
@include box-shadow(0 1px 2px rgba(0, 0, 0, .1)); @include box-shadow(0 1px 1px rgba(0, 0, 0, .2));
} }
.sidebar { .sidebar {
...@@ -184,6 +187,10 @@ code { ...@@ -184,6 +187,10 @@ code {
.details { .details {
margin-bottom: 30px; margin-bottom: 30px;
font-size: 14px; font-size: 14px;
.new-button {
margin-right: 30px;
}
} }
h4 { h4 {
......
...@@ -4,19 +4,13 @@ input.courseware-unit-search-input { ...@@ -4,19 +4,13 @@ input.courseware-unit-search-input {
background-color: #fff; background-color: #fff;
} }
.courseware-overview {
}
.courseware-section { .courseware-section {
position: relative; position: relative;
background: #fff; background: #fff;
border: 1px solid $darkGrey;
border-radius: 3px; border-radius: 3px;
margin: 10px 0; margin: 15px 0;
padding-bottom: 12px; padding-bottom: 12px;
@include box-shadow(0 1px 2px rgba(0, 0, 0, .1)); @include box-shadow(0 1px 1px rgba(0, 0, 0, .2));
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
...@@ -205,7 +199,7 @@ input.courseware-unit-search-input { ...@@ -205,7 +199,7 @@ input.courseware-unit-search-input {
.new-section-name-save, .new-section-name-save,
.new-subsection-name-save { .new-subsection-name-save {
@include blue-button; @include blue-button;
padding: 6px 20px 8px; padding: 4px 20px 7px;
margin: 0 5px; margin: 0 5px;
color: #fff !important; color: #fff !important;
} }
......
...@@ -36,13 +36,6 @@ ...@@ -36,13 +36,6 @@
} }
} }
.new-course-button {
@include grey-button;
display: block;
padding: 20px;
text-align: center;
}
.new-course { .new-course {
padding: 15px 25px; padding: 15px 25px;
margin-top: 20px; margin-top: 20px;
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
</div> </div>
<article class="unit-body window"> <article class="unit-body window">
<div class="details"> <div class="details">
<a href="#" class="new-button new-tab left">
<span class="plus-icon white"></span>New Tab
</a>
<p>Here you can add and manage additional pages for your course. These pages will be added to the primary navigation menu alongside Courseware, Course Info, Discussion, etc.</p> <p>Here you can add and manage additional pages for your course. These pages will be added to the primary navigation menu alongside Courseware, Course Info, Discussion, etc.</p>
</div> </div>
<div class="tab-list"> <div class="tab-list">
...@@ -31,9 +34,7 @@ ...@@ -31,9 +34,7 @@
% endfor % endfor
<li class="new-component-item"> <li class="new-component-item">
<a href="#" class="new-button big new-tab">
<span class="plus-icon"></span>New Tab
</a>
</li> </li>
</ol> </ol>
</div> </div>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<h1>My Courses</h1> <h1>My Courses</h1>
<article class="my-classes"> <article class="my-classes">
% if user.is_active: % if user.is_active:
<a href="#" class="new-course-button"><span class="plus-icon"></span> New Course</a> <a href="#" class="new-button new-course-button"><span class="plus-icon white"></span> New Course</a>
<ul class="class-list"> <ul class="class-list">
%for course, url in courses: %for course, url in courses:
<li> <li>
......
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