From 731cfe5bb56dd5779776b978465fb5cbc9730ea5 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Mon, 3 Dec 2012 16:15:00 -0500 Subject: [PATCH 01/43] fixed long header bug --- cms/static/sass/_header.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index e80c7aa3b1..f709f36a44 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -43,7 +43,7 @@ body.no-header { } .left { - width: 750px; + // width: 750px; } .class-name { From 1845fc7211b4c8223c3b10f88a4be1a4108b3f2a Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Mon, 3 Dec 2012 16:29:27 -0500 Subject: [PATCH 02/43] headers still funky, absolutely positioned to avoid bugs for now; removed public tag and grey style --- cms/static/sass/_cms_mixins.scss | 5 ----- cms/static/sass/_header.scss | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cms/static/sass/_cms_mixins.scss b/cms/static/sass/_cms_mixins.scss index 80a82fb7f3..710bd7deb9 100644 --- a/cms/static/sass/_cms_mixins.scss +++ b/cms/static/sass/_cms_mixins.scss @@ -200,15 +200,10 @@ content: "- draft"; } - .public-item:after { - content: "- public"; - } - .private-item:after { content: "- private"; } - .public-item, .private-item { color: #a4aab7; } diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index f709f36a44..cb9a7ed121 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -43,7 +43,9 @@ body.no-header { } .left { - // width: 750px; + position: absolute; + left: 0; + width: 100%; } .class-name { From 4e7d931d7e29aa376ca55c699d3f7a8668f72ef1 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Tue, 4 Dec 2012 11:00:28 -0500 Subject: [PATCH 03/43] removed new course button on click to prevent multiple instantiations --- cms/static/js/base.js | 2 ++ cms/static/sass/_base.scss | 8 +++++--- cms/static/sass/_courseware.scss | 5 +++++ cms/templates/overview.html | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 79d83a466e..2efc4c6b4a 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -588,6 +588,8 @@ function hideToastMessage(e) { function addNewSection(e, isTemplate) { e.preventDefault(); + $(e.target).hide(); + var $newSection = $($('#new-section-template').html()); var $cancelButton = $newSection.find('.new-section-name-cancel'); $('.new-courseware-section-button').after($newSection); diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 7f5dcacf8b..4696638af4 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -26,7 +26,8 @@ a { h1 { float: left; font-size: 28px; - margin: 36px 6px; + font-weight: 300; + margin: 24px 6px; } .waiting { @@ -345,8 +346,9 @@ body.show-wip { } .new-button { - @include grey-button; - padding: 20px 0; + @include blue-button; + font-size: 13px; + padding: 8px 20px 10px; text-align: center; &.big { diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 23024f74e4..73b55618b6 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -8,6 +8,7 @@ input.courseware-unit-search-input { } + .courseware-section { position: relative; background: #fff; @@ -139,6 +140,10 @@ input.courseware-unit-search-input { } } + .section-name-form { + margin-bottom: 15px; + } + .section-name-edit { input { font-size: 16px; diff --git a/cms/templates/overview.html b/cms/templates/overview.html index a75a27745f..771991aec6 100644 --- a/cms/templates/overview.html +++ b/cms/templates/overview.html @@ -101,7 +101,7 @@

Courseware

- New Section + New Section % for section in sections:
From 7cba7c9b41327c559d04f63327bc135eddee256f Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Tue, 4 Dec 2012 13:49:07 -0500 Subject: [PATCH 04/43] tweaked body color and window styles; adjusting new buttons --- cms/static/js/base.js | 4 ++++ cms/static/sass/_base.scss | 15 +++++++++++---- cms/static/sass/_courseware.scss | 14 ++++---------- cms/static/sass/_dashboard.scss | 7 ------- cms/templates/edit-tabs.html | 7 ++++--- cms/templates/index.html | 2 +- 6 files changed, 24 insertions(+), 25 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 2efc4c6b4a..baad5b7177 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -629,11 +629,14 @@ function saveNewSection(e) { function cancelNewSection(e) { e.preventDefault(); + $('.new-courseware-section-button').show(); $(this).parents('section.new-section').remove(); } function addNewCourse(e) { e.preventDefault(); + + $(e.target).hide(); var $newCourse = $($('#new-course-template').html()); var $cancelButton = $newCourse.find('.new-course-cancel'); $('.new-course-button').after($newCourse); @@ -674,6 +677,7 @@ function saveNewCourse(e) { function cancelNewCourse(e) { e.preventDefault(); + $('.new-course-button').show(); $(this).parents('section.new-course').remove(); } diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 4696638af4..699ffdc653 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -6,13 +6,17 @@ body { min-width: 980px; - background: #f3f4f5; - font-family: 'Open Sans', sans-serif; + background: #eaebed; font-size: 16px; line-height: 1.6; color: #3c3c3c; } +body, +input { + font-family: 'Open Sans', sans-serif; +} + a { text-decoration: none; color: $blue; @@ -56,9 +60,8 @@ h1 { .window { background: #fff; - border: 1px solid $darkGrey; 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 { @@ -184,6 +187,10 @@ code { .details { margin-bottom: 30px; font-size: 14px; + + .new-button { + margin-right: 30px; + } } h4 { diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 73b55618b6..291241b7e0 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -4,19 +4,13 @@ input.courseware-unit-search-input { background-color: #fff; } -.courseware-overview { - -} - - .courseware-section { position: relative; background: #fff; - border: 1px solid $darkGrey; border-radius: 3px; - margin: 10px 0; + margin: 15px 0; 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 { margin-top: 0; @@ -205,7 +199,7 @@ input.courseware-unit-search-input { .new-section-name-save, .new-subsection-name-save { @include blue-button; - padding: 6px 20px 8px; + padding: 4px 20px 7px; margin: 0 5px; color: #fff !important; } @@ -213,7 +207,7 @@ input.courseware-unit-search-input { .new-section-name-cancel, .new-subsection-name-cancel { @include white-button; - padding: 6px 20px 8px; + padding: 4px 20px 7px; color: #8891a1 !important; } diff --git a/cms/static/sass/_dashboard.scss b/cms/static/sass/_dashboard.scss index 8821f3736c..06eb8d8a9d 100644 --- a/cms/static/sass/_dashboard.scss +++ b/cms/static/sass/_dashboard.scss @@ -36,13 +36,6 @@ } } -.new-course-button { - @include grey-button; - display: block; - padding: 20px; - text-align: center; -} - .new-course { padding: 15px 25px; margin-top: 20px; diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html index 41dee15a7a..bf68b2b72c 100644 --- a/cms/templates/edit-tabs.html +++ b/cms/templates/edit-tabs.html @@ -22,6 +22,9 @@
+ + New Tab +

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.

@@ -31,9 +34,7 @@ % endfor
  • - - New Tab - +
  • diff --git a/cms/templates/index.html b/cms/templates/index.html index d41bcc23ac..92987babda 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -37,7 +37,7 @@

    My Courses

    % if user.is_active: - New Course + New Course
      %for course, url in courses:
    • From 72ebf4c862c6328244e0097f3252d241673375ec Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Tue, 4 Dec 2012 14:54:02 -0500 Subject: [PATCH 05/43] style tweaks to tabs and static pages; key bindings for new user form --- cms/static/sass/_base.scss | 6 +-- cms/static/sass/_courseware.scss | 3 +- cms/static/sass/_static-pages.scss | 4 ++ cms/static/sass/_users.scss | 19 ++------- cms/templates/edit-tabs.html | 6 ++- cms/templates/manage_users.html | 64 +++++++++++++++++------------- 6 files changed, 51 insertions(+), 51 deletions(-) diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 699ffdc653..ec9cbcf84c 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -61,7 +61,7 @@ h1 { .window { background: #fff; border-radius: 3px; - @include box-shadow(0 1px 1px rgba(0, 0, 0, .2)); + @include box-shadow(0 1px 1px rgba(0,0,0,0.2), 0 0 0 1px rgba(0, 0, 0, 0.1)); } .sidebar { @@ -187,10 +187,6 @@ code { .details { margin-bottom: 30px; font-size: 14px; - - .new-button { - margin-right: 30px; - } } h4 { diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 291241b7e0..05a5a43ab2 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -1,3 +1,4 @@ + input.courseware-unit-search-input { float: left; width: 260px; @@ -10,7 +11,7 @@ input.courseware-unit-search-input { border-radius: 3px; margin: 15px 0; padding-bottom: 12px; - @include box-shadow(0 1px 1px rgba(0, 0, 0, .2)); + @include box-shadow(0 1px 1px rgba(0,0,0,0.2), 0 0 0 1px rgba(0, 0, 0, 0.1)); &:first-child { margin-top: 0; diff --git a/cms/static/sass/_static-pages.scss b/cms/static/sass/_static-pages.scss index c8ffa0316c..68cb3e1d07 100644 --- a/cms/static/sass/_static-pages.scss +++ b/cms/static/sass/_static-pages.scss @@ -6,6 +6,10 @@ padding: 12px 0; } + .new-tab { + margin-bottom: 15px; + } + .unit-body { padding: 30px 40px; } diff --git a/cms/static/sass/_users.scss b/cms/static/sass/_users.scss index bca9b4f2fb..4daefa55cc 100644 --- a/cms/static/sass/_users.scss +++ b/cms/static/sass/_users.scss @@ -5,21 +5,7 @@ } .new-user-button { - @include grey-button; - margin: 5px 8px; - padding: 3px 10px 4px 10px; - font-size: 12px; - - .plus-icon { - position: relative; - top: 1px; - } - } - - .list-header { - @include linear-gradient(top, transparent, rgba(0, 0, 0, .1)); - background-color: #ced2db; - border-radius: 3px 3px 0 0; + margin-bottom: 15px; } .new-user-form { @@ -55,16 +41,17 @@ .add-button { @include blue-button; + padding: 6px 20px 8px; } .cancel-button { @include white-button; + padding: 6px 20px 8px; } } .user-list { border: 1px solid $mediumGrey; - border-top: none; background: $lightGrey; li { diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html index bf68b2b72c..8e75b49410 100644 --- a/cms/templates/edit-tabs.html +++ b/cms/templates/edit-tabs.html @@ -22,10 +22,12 @@
      +
      + New Tab -

      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.

        diff --git a/cms/templates/manage_users.html b/cms/templates/manage_users.html index 712766eb71..6f33b67d41 100644 --- a/cms/templates/manage_users.html +++ b/cms/templates/manage_users.html @@ -11,22 +11,20 @@

        The following list of users have been designated as course staff. This means that these users will have permissions to modify course content. You may add additional course staff below, if you are the course instructor. Please note that they must have already registered and verified their account.

        -
        - %if allow_actions: - - New User - - %endif -
        %if allow_actions: -
        + + New User + + %endif + %if allow_actions: +
        - add user - cancel + +
        -
        + %endif
          @@ -57,6 +55,7 @@ function showNewUserForm(e) { e.preventDefault(); $newUserForm.slideDown(150); + $newUserForm.find('.email-input').focus(); } function hideNewUserForm(e) { @@ -66,26 +65,37 @@ $('#email').val(''); } + function checkForCancel(e) { + if(e.which == 27) { + e.data.$cancelButton.click(); + } + } + + function addUser(e) { + e.preventDefault(); + + $.ajax({ + url: '${add_user_postback_url}', + type: 'POST', + dataType: 'json', + contentType: 'application/json', + data:JSON.stringify({ 'email': $('#email').val()}), + }).done(function(data) { + if (data.ErrMsg != undefined) + $('#result').show().empty().append(data.ErrMsg); + else + location.reload(); + }); + } + $(document).ready(function() { $newUserForm = $('.new-user-form'); - $newUserForm.find('.cancel-button').bind('click', hideNewUserForm); + var $cancelButton = $newUserForm.find('.cancel-button'); + $newUserForm.bind('submit', addUser); + $cancelButton.bind('click', hideNewUserForm); $('.new-user-button').bind('click', showNewUserForm); - - $('#add_user').click(function() { - $.ajax({ - url: '${add_user_postback_url}', - type: 'POST', - dataType: 'json', - contentType: 'application/json', - data:JSON.stringify({ 'email': $('#email').val()}), - }).done(function(data) { - if (data.ErrMsg != undefined) - $('#result').show().empty().append(data.ErrMsg); - else - location.reload(); - }) - }); + $body.bind('keyup', { $cancelButton: $cancelButton }, checkForCancel); $('.remove-user').click(function() { $.ajax({ From ad84a961da90669a2f8809d11bdf9063271a77de Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Wed, 5 Dec 2012 12:05:14 -0500 Subject: [PATCH 06/43] new header styles; collapse all button added to courseware --- cms/static/img/collapse-all-icon.png | Bin 0 -> 1018 bytes cms/static/img/home-icon-blue.png | Bin 0 -> 1106 bytes cms/static/img/log-out-icon.png | Bin 0 -> 1073 bytes cms/static/img/small-home-icon.png | Bin 0 -> 1064 bytes cms/static/js/base.js | 13 ++++- cms/static/sass/_base.scss | 6 +- cms/static/sass/_cms_mixins.scss | 23 +++++++- cms/static/sass/_courseware.scss | 13 ++++- cms/static/sass/_graphics.scss | 21 +++++++ cms/static/sass/_header.scss | 83 ++++++++++++++------------- cms/static/sass/_variables.scss | 7 ++- cms/templates/overview.html | 6 +- cms/templates/widgets/header.html | 36 +++++++----- 13 files changed, 142 insertions(+), 66 deletions(-) create mode 100644 cms/static/img/collapse-all-icon.png create mode 100644 cms/static/img/home-icon-blue.png create mode 100644 cms/static/img/log-out-icon.png create mode 100644 cms/static/img/small-home-icon.png diff --git a/cms/static/img/collapse-all-icon.png b/cms/static/img/collapse-all-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c468778b0254d6c98568edbce409ebef38c3af8c GIT binary patch literal 1018 zcmaJ=PfXKL7%ze-Bnu>{5fAz-9yDS7x3$t{lZ|!A5{qP8!cNAneXzpXSK9|GoWP41 z4|r3f#&{=QypVYC;4UPXcp>rMiGwjw}BiM|dtJb+Ex_uiN9_xpa|pLcg+{A#58 zOgBYQk=&S?CukWxl6Flokj?0!4-?ofK~q#>IB<1i7Gh9_)0UH@f4+K61ItX(lcL6HZU$DYu|*FS z7RQUm;;bQ?^zaps2oyqKL#%_qt~$OFB3KF=e>4xQmhD!~ErYSkc$GT&{oSLKw2V+^L!euj}lpazAH7)UcR*+*O zayBcev3Q&(9pIW+6&Z6jbZ`@E?qjouV#8suT@qP^o;456Q4iUmk+fnRpd~Jfqv8-R z2&zniAEad$YaXs8bEp=Uh+)Il{?qEFiOf&9Z4E9tv_>B~WZpe8*ym@g0=X2`oSH5M zAIsk#u74eFf3$RTrGH~aZu&g~Sq(N(Xe zHhbz1?r+7?Pa|(mrG7_NJ}tlRnOW}Zz23IHnp(TFcJ}ehzUB23+Th8Rd+$yj={QZD WTkCuNIpX~aZ(}YyuD%$#dHXK|UqU+o literal 0 HcmV?d00001 diff --git a/cms/static/img/home-icon-blue.png b/cms/static/img/home-icon-blue.png new file mode 100644 index 0000000000000000000000000000000000000000..45b4971a2a2a8ca2a195623fe8847e5ac5587852 GIT binary patch literal 1106 zcmaJ=O-K|`93NXtF+f~Tg z^srG-f*>8DYfwlZhYmqWY+_JRbjwSZpi3V_P?xYb>S~9!VP@WYe}2E;|MOiQN}g`0 zYpEj$q9GCIQ+RF0Uz5j;|36B+gcmQ0WzeuOhH|0>iHKrI5F|8l9HyYC%uKz2y#(QE zQ_~rg5zer(q4`AzZ=S^h8bl(Uo<~edpm&JR>Op#y1fqroL6<-1 zlLIsjLLooh*%b=WCjk?n87hF^kdN+UyFx6}4R#(9d$W`=HpLI__`)ZS%pzp66qU>6 z{JEgtu*NAm91c4g4CBKHpFN`^G4Ipu*0KT*ZP`*yq#8PK6h+CHMjVMF-A+L>cV%^Z zr%bqDR9-YG+8=OIDgy=K|4>caMcXI^_u~Dhu$`VUA(eu*F>T4XabvBHE0c{{P(+56 zHjK$~6^F70GVH8jg6MDvoDf7=)g42}7DEu≷2ImtlhENUY&kRfUaq4@A3T!7vjI z4A69p2?qzlu~>)?c6QRZ1A#J^H{@vz>Zr_B_PCLXTxS?G6MN>NrJjSzpk-)aD`{4( z97}gay&bMnIhLM^TnYz6Ij#Mx)nyZ&A7{HexcIO;`cTL7ZsEb+xcktBFGVTAN7DKC zQvJ=j<$`CmzI36sLn5DnR`A4Knq6vfGug(bI}w$$8s@!io{v`!Fip$iTHMX;lPEAZ zxZdA>*!_8sS>IoL)2Uylb9PaIs!mm75+E>f`Q}YU$v0akJ3lDK>t1^Xq7>>{>4L)D<`H_1BCRe%~sf xQKGb2e3e{S?Mr=ce|xd!Y|kQ@JilC3eTbMJVH#InZcHaptLm&b)Ev>8?iM zM;{v`LW5YCE(z<^i*S)<={#B7Al^NK`v%?u6lF1Rm3uO^k2+dvH2 z5Cr}8K9%J-AP9ag5EKNi4)83;Gb}lRj|+%FLF7+>wT~vzY^_^NN=<9Ah!&xHF}6g8 z$z(GAOuZl3Jq#BLgoc920)qq{)z&SnBNMocN*5Z$5t?MWT7qE} zX-#LXO{8H=Ro~l$vgd? z>91pRp1a*uD>tr08+YY0WdplsI*(K=Q*-gU!vp*R(dk)|CopaAQcRn*V z(%I45K~Yp^IwfSu>LTCH_BQhOu(z+0WiL+V@i>~mWyyq8OhE+*(wbC+StuzpXJ5hr zifTQq=JGf%j`A|n7|F&k70n=QiW(TK7?L~*F(|;Isz>Sd$ICQOl_-5OB>F@n0ZVFX z)`a7;V>x+tQjRF};0Z8L;fa6-u>>mGly32rC|%R#$=-IeG^j!FWR%`aDlcY00+|qm zn1EOIaU2MT87>$Khq*rB_i=vKN8YfP3-X~b?>`Q<9-2fml?gs83~$9ER+KJbZ15~w zE|-~dfI()FO233Bqg5=vb5TGTSs)1Fc16xrlplKYXNv4}e(2Rzx zZf%u`6pXD%2Fo!%`$%=5DE=R+X$`c6vv51#e+pZ<83VFeXrXCSCXJhL+o23TVL}Nb zGl$Sry^5I-9_fd-Zlo87>&_~I+=Hq4EE)xuNZPEmeN8jSNTx* zviNYJr7P3+X?^II^OnQoSn8rSE`Xc#dny7x?s)DWx%CF^;c^{ZDYkdF zygr?|w&o(>Wyi+I`8nUNx6ao7PAR^&T1^HX9df4TQkR^i

          Courseware

          -
          -
          + +
          % for section in sections:
          diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html index 877f03533c..563ef0249a 100644 --- a/cms/templates/widgets/header.html +++ b/cms/templates/widgets/header.html @@ -2,12 +2,28 @@ <% active_tab_class = 'active-tab-' + active_tab if active_tab else '' %>
          - + +
    From 6d898352453561168155d535a24850e32631ba18 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Wed, 5 Dec 2012 17:01:29 -0500 Subject: [PATCH 07/43] more defined header, new icons, cleaner static tabs page --- cms/static/img/log-out-icon.png | Bin 1073 -> 1073 bytes cms/static/img/small-home-icon.png | Bin 1064 -> 1064 bytes cms/static/sass/_base.scss | 16 +++++++------- cms/static/sass/_courseware.scss | 4 ++-- cms/static/sass/_header.scss | 33 +++++++++++++++++++---------- cms/static/sass/_static-pages.scss | 12 ++++------- cms/templates/edit-tabs.html | 13 +++++------- cms/templates/overview.html | 1 - cms/templates/widgets/header.html | 30 +++++++++++++------------- 9 files changed, 56 insertions(+), 53 deletions(-) diff --git a/cms/static/img/log-out-icon.png b/cms/static/img/log-out-icon.png index c89373619acdede7526d0a0b42497319349c5198..887d59f45da9d2c659acf52704c76f93637cef6c 100644 GIT binary patch delta 276 zcmdnUv5{kg2NRE_tAVkhi=~B;i;KbJ2TWpoK!Rai*LcjS0(isiSLzs7|h1JXoZK#kE zus@P`(NSUAv89r1E(I1hg*whNZxpsWYw$syx4A(>;62kLtqBKxc%CqB=#KEFZIauT?w1lr2TWp2WE zcHKdS^GG#kW?N>1WRXmVbK?(9pGmDO%WpA%%uitybFeX6)O`QOqo2Hd|BW7b#~Pgd zbYV(q`xOQD%ztc0E;mNVb~HEskk~kjk%@FVdQ&MBb@07PD9 ATL1t6 diff --git a/cms/static/img/small-home-icon.png b/cms/static/img/small-home-icon.png index fb6adcd7cd273a2f23751b69091dd1344cf9fa02..5755bf659db9f74960071ee1ba6a6c83fec87c9d 100644 GIT binary patch delta 267 zcmZ3%v4UfR2NRE_tAVkhi>0%Xi;KbJ2TWpNEVqE?$oa@fP& zk=hW!J73Yq!lcBW*2Y-=u8GrS3j3^P61lr2TWpGh@dDM*aY{NADf}@Jwe?W17X!@Uc!|n$lGUOND!^ zM~ocSw4E1FlbPixHKpN)fPnnrbPi$0vvC1Emj!@|_cMKTuW2(7yuib3!JFuG`AmbW z@h(Lkk2a5Ho($JZXBw9Mv=>p9KGcxn!F-~DN8z1$vVv^GmnX)KxjJfx879oj_u&y? o64Ocg-zlOzL%f5Dfsu{j(;n@~QS&2&fzD*`boFyt=akR{00Wd*6951J diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 71914c24c7..f5376cd0e5 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -6,7 +6,7 @@ body { min-width: 980px; - background: #eaebed; + background: #eaecf3; font-size: 16px; line-height: 1.6; color: #3c3c3c; @@ -28,7 +28,6 @@ a { } h1 { - display: none; float: left; font-size: 28px; font-weight: 300; @@ -40,7 +39,7 @@ h1 { } .page-actions { - margin-bottom: 25px; + margin-bottom: 30px; } .main-wrapper { @@ -177,6 +176,12 @@ code { padding: 10px 0; } +.details { + display: none; + margin-bottom: 30px; + font-size: 14px; +} + .window { margin-bottom: 20px; @@ -184,11 +189,6 @@ code { padding: 20px; } - .details { - margin-bottom: 30px; - font-size: 14px; - } - h4 { padding: 6px 14px; border-bottom: 1px solid #cbd1db; diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 75383b28ae..2f6745333d 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -146,13 +146,13 @@ input.courseware-unit-search-input { .save-button { @include blue-button; - padding: 10px 20px; + padding: 8px 20px; margin-right: 5px; } .cancel-button { @include white-button; - padding: 10px 20px; + padding: 8px 20px; } } diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index 039ac69898..ab1dcea03a 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -5,16 +5,16 @@ body.no-header { } @mixin active { - color: #3c3c3c; - border-bottom: 3px solid $mediumGrey; + color: $blue; + @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)); + background-color: rgba(255, 255, 255, .3); + @include box-shadow(0 -1px 0 rgba(0, 0, 0, .2) inset, 0 1px 0 #fff inset); + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .primary-header { width: 100%; - margin-bottom: 25px; - border-top: 6px solid $blue; - border-bottom: 1px solid $mediumGrey; - background: #fff; + margin-bottom: 30px; &.active-tab-courseware #courseware-tab { @include active; @@ -48,17 +48,25 @@ body.no-header { .class-nav-bar { clear: both; + @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)); + background-color: rgb(197, 207, 223); + @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 1px 1px rgba(0, 0, 0, 0.1)); } .class-nav { - @include clearfix; - border-top: 1px solid $mediumGrey; + @include clearfix; a { float: left; display: inline-block; - padding: 20px 25px 22px; + padding: 15px 25px 17px; font-size: 15px; + color: #3c3c3c; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); + + &:hover { + @include linear-gradient(top, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); + } } li { @@ -69,13 +77,16 @@ body.no-header { .class { @include clearfix; font-size: 12px; - color: $darkGrey; + color: rgb(163, 171, 184); + @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1)); + background-color: rgb(47, 53, 63); + @include box-shadow(0 -1px 3px rgba(0, 0, 0, 0.6) inset); a { display: inline-block; height: 20px; padding: 5px 10px 6px; - color: $darkGrey; + color: rgb(163, 171, 184); } .home { diff --git a/cms/static/sass/_static-pages.scss b/cms/static/sass/_static-pages.scss index 68cb3e1d07..f862484250 100644 --- a/cms/static/sass/_static-pages.scss +++ b/cms/static/sass/_static-pages.scss @@ -6,12 +6,8 @@ padding: 12px 0; } - .new-tab { - margin-bottom: 15px; - } - .unit-body { - padding: 30px 40px; + padding: 0; } .components > li { @@ -40,7 +36,7 @@ } .drag-handle { - background: url(../img/drag-handles.png) center no-repeat $lightGrey; + background: url(../img/drag-handles.png) center no-repeat #fff; } } @@ -50,7 +46,7 @@ z-index: 11; width: 35px; border: none; - background: url(../img/drag-handles.png) center no-repeat $lightGrey; + background: url(../img/drag-handles.png) center no-repeat #fff; &:hover { background: url(../img/drag-handles.png) center no-repeat $lightGrey; @@ -73,7 +69,7 @@ padding: 20px 20px 22px; font-size: 24px; font-weight: 300; - background: $lightGrey; + background: #fff; } .static-page-item { diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html index 8e75b49410..637329f356 100644 --- a/cms/templates/edit-tabs.html +++ b/cms/templates/edit-tabs.html @@ -17,18 +17,15 @@ <%block name="content">
    -
    -

    Static Tabs

    -
    -
    -
    -

    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.

    -
    -
    + +
    +
    +

    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.

    +
      % for id in components: diff --git a/cms/templates/overview.html b/cms/templates/overview.html index 91088266af..b2e31db176 100644 --- a/cms/templates/overview.html +++ b/cms/templates/overview.html @@ -98,7 +98,6 @@
      -

      Courseware

      New Section Collapse All diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html index 563ef0249a..29b68165f7 100644 --- a/cms/templates/widgets/header.html +++ b/cms/templates/widgets/header.html @@ -1,9 +1,9 @@ <%! from django.core.urlresolvers import reverse %> <% active_tab_class = 'active-tab-' + active_tab if active_tab else '' %> -
      -
      -
      +
      +
      +
      % if context_course: <% ctx_loc = context_course.location %> @@ -21,17 +21,17 @@ % endif
      -
      +
      From 1a4020908228f888e7652aa4ed15724d9f293608 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Thu, 6 Dec 2012 14:25:30 -0500 Subject: [PATCH 08/43] cleaned up editor styles; cleaned up static tabs page --- cms/static/coffee/src/views/module_edit.coffee | 1 + cms/static/sass/_base.scss | 12 +++++++++--- cms/static/sass/_cms_mixins.scss | 13 +++++-------- cms/static/sass/_header.scss | 5 ++--- cms/static/sass/_static-pages.scss | 5 +++++ cms/static/sass/_unit.scss | 11 ----------- cms/static/sass/_variables.scss | 5 +++-- cms/templates/widgets/metadata-edit.html | 1 - 8 files changed, 25 insertions(+), 28 deletions(-) diff --git a/cms/static/coffee/src/views/module_edit.coffee b/cms/static/coffee/src/views/module_edit.coffee index ad875294a1..068750c3d9 100644 --- a/cms/static/coffee/src/views/module_edit.coffee +++ b/cms/static/coffee/src/views/module_edit.coffee @@ -74,4 +74,5 @@ class CMS.Views.ModuleEdit extends Backbone.View event.preventDefault() @$el.addClass('editing') @$component_editor().slideDown(150) + # $modalCover.show() @loadEdit() diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index f5376cd0e5..eefe1c61ce 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -9,7 +9,7 @@ body { background: #eaecf3; font-size: 16px; line-height: 1.6; - color: #3c3c3c; + color: $baseFontColor; } body, @@ -93,7 +93,7 @@ input[type="password"] { @include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset); font-family: 'Open Sans', sans-serif; font-size: 11px; - color: #3c3c3c; + color: $baseFontColor; outline: 0; &::-webkit-input-placeholder, @@ -110,7 +110,7 @@ input.search { border-radius: 20px; background: url(../img/search-icon.png) no-repeat 8px 7px #edf1f5; font-family: 'Open Sans', sans-serif; - color: #3c3c3c; + color: $baseFontColor; outline: 0; &::-webkit-input-placeholder { @@ -129,6 +129,12 @@ code { font-family: Monaco, monospace; } +.CodeMirror { + font-size: 13px; + border: 1px solid $darkGrey; + background: #fff; +} + .text-editor { width: 100%; min-height: 80px; diff --git a/cms/static/sass/_cms_mixins.scss b/cms/static/sass/_cms_mixins.scss index 2c794ee266..50b62b7d57 100644 --- a/cms/static/sass/_cms_mixins.scss +++ b/cms/static/sass/_cms_mixins.scss @@ -130,18 +130,17 @@ @mixin edit-box { padding: 15px 20px; border-radius: 3px; - border: 1px solid #5597dd; - @include linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)); - background-color: #5597dd; + background-color: $lightBluishGrey; + color: #3c3c3c; @include box-shadow(0 1px 0 rgba(255, 255, 255, .2) inset); label { - color: #fff; + color: $baseFontColor; } input, textarea { - border: 1px solid #3c3c3c; + border: 1px solid $darkGrey; } textarea { @@ -161,14 +160,12 @@ } .save-button { - @include orange-button; - border-color: #3c3c3c; + @include blue-button; margin-top: 0; } .cancel-button { @include white-button; - border-color: #30649C; margin-top: 0; } } diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index ab1dcea03a..8402fa54be 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -49,8 +49,8 @@ body.no-header { .class-nav-bar { clear: both; @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)); - background-color: rgb(197, 207, 223); - @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 1px 1px rgba(0, 0, 0, 0.1)); + background-color: $lightBluishGrey; + @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.2) inset); } .class-nav { @@ -80,7 +80,6 @@ body.no-header { color: rgb(163, 171, 184); @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1)); background-color: rgb(47, 53, 63); - @include box-shadow(0 -1px 3px rgba(0, 0, 0, 0.6) inset); a { display: inline-block; diff --git a/cms/static/sass/_static-pages.scss b/cms/static/sass/_static-pages.scss index f862484250..9a2d1303ec 100644 --- a/cms/static/sass/_static-pages.scss +++ b/cms/static/sass/_static-pages.scss @@ -10,6 +10,11 @@ padding: 0; } + .component-editor { + border: none; + border-radius: 0; + } + .components > li { margin: 0; border-radius: 0; diff --git a/cms/static/sass/_unit.scss b/cms/static/sass/_unit.scss index a7a33f6024..978d53e1b3 100644 --- a/cms/static/sass/_unit.scss +++ b/cms/static/sass/_unit.scss @@ -156,7 +156,6 @@ } &.editing { - border-color: #6696d7; .drag-handle, .component-actions { @@ -203,10 +202,6 @@ @include edit-box; display: none; padding: 20px; - border-radius: 2px 2px 0 0; - @include linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1)); - background-color: $blue; - color: #fff; @include box-shadow(none); .metadata_edit { @@ -223,12 +218,6 @@ } } - .CodeMirror { - border: 1px solid #3c3c3c; - background: #fff; - color: #3c3c3c; - } - h3 { margin-bottom: 10px; font-size: 18px; diff --git a/cms/static/sass/_variables.scss b/cms/static/sass/_variables.scss index 98134fc83e..985d87ca70 100644 --- a/cms/static/sass/_variables.scss +++ b/cms/static/sass/_variables.scss @@ -13,6 +13,7 @@ $body-line-height: golden-ratio(.875em, 1); $pink: rgb(182,37,104); $error-red: rgb(253, 87, 87); +$baseFontColor: #3c3c3c; $blue: #5597dd; $orange: #edbd3c; $lightGrey: #edf1f5; @@ -20,8 +21,8 @@ $mediumGrey: #ced2db; $darkGrey: #8891a1; $extraDarkGrey: #3d4043; $paleYellow: #fffcf1; - $green: rgb(37, 184, 90); $brightGreen: rgb(22, 202, 87); $disabledGreen: rgb(124, 206, 153); -$darkGreen: rgb(52, 133, 76); \ No newline at end of file +$darkGreen: rgb(52, 133, 76); +$lightBluishGrey: rgb(197, 207, 223); \ No newline at end of file diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index 069db424da..590baec3c9 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.html @@ -4,7 +4,6 @@ hlskey = hashlib.md5(module.location.url()).hexdigest() %>