From e3457fa230b65524b71a53139843657fc0b346b9 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Thu, 18 Oct 2012 10:40:24 -0400 Subject: [PATCH 1/3] started styling section date pickers --- cms/static/js/base.js | 2 +- cms/static/sass/_courseware.scss | 51 +++++++++++++++++++++++++------- cms/templates/overview.html | 21 +++++-------- 3 files changed, 50 insertions(+), 24 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 5e91eca875..8834d69dc8 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -734,7 +734,7 @@ function saveSetSectionScheduleDate(e) { id = $(this).closest("section.courseware-section").data("id"); var $_this = $(this); - // call into server to commit the new order + // call into server to commit the new order $.ajax({ url: "/save_item", type: "POST", diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index 752c33346f..0ba4b84226 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -28,14 +28,45 @@ input.courseware-unit-search-input { &.collapsed { padding-bottom: 0; + } - header { - height: 47px; - } - - h4 { - display: none !important; - } + label { + float: left; + line-height: 29px; + } + + .datepair { + float: left; + margin-left: 10px; + } + + .section-published-date { + position: absolute; + top: 12px; + right: 90px; + width: 250px; + font-size: 13px; + } + + .datepair .date, + .datepair .time { + padding-left: 0; + padding-right: 0; + border: none; + background: none; + @include box-shadow(none); + font-size: 13px; + font-weight: 700; + color: $blue; + cursor: pointer; + } + + .datepair .date { + width: 80px; + } + + .datepair .time { + width: 65px; } &.collapsed .subsection-list, @@ -45,11 +76,11 @@ input.courseware-unit-search-input { } header { - height: 67px; + height: 55px; .item-details { float: left; - padding: 10px 0 0; + padding: 15px 0 0; } .item-actions { @@ -64,7 +95,7 @@ input.courseware-unit-search-input { .expand-collapse-icon { float: left; - margin: 16px 6px 16px 16px; + margin: 20px 6px 16px 16px; @include transition(none); } diff --git a/cms/templates/overview.html b/cms/templates/overview.html index 17283fe4b2..91b39d7586 100644 --- a/cms/templates/overview.html +++ b/cms/templates/overview.html @@ -74,24 +74,19 @@ SaveCancel -

+

- +
+ + + +
+
From f84b603133cdad1fc31d7b434b02c38572670b52 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Mon, 22 Oct 2012 13:10:52 -0400 Subject: [PATCH 2/3] wrapped up section date setting; need help with already published sections --- cms/static/js/base.js | 61 ++++++++++-- cms/static/sass/_courseware.scss | 95 +++++++++++++++++-- cms/templates/overview.html | 29 ++++-- .../vendor/timepicker/jquery.timepicker.css | 2 +- 4 files changed, 162 insertions(+), 25 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 8834d69dc8..4f162127be 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -10,7 +10,8 @@ var $spinner; $(document).ready(function() { $body = $('body'); $modal = $('.history-modal'); - $modalCover = $('.modal-cover'); + $modalCover = $('
diff --git a/common/static/js/vendor/timepicker/jquery.timepicker.css b/common/static/js/vendor/timepicker/jquery.timepicker.css index 045751cc06..ad6dae98b8 100755 --- a/common/static/js/vendor/timepicker/jquery.timepicker.css +++ b/common/static/js/vendor/timepicker/jquery.timepicker.css @@ -11,7 +11,7 @@ -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.1); box-shadow: 0 5px 10px rgba(0,0,0,0.1); outline: none; - z-index: 10001; + z-index: 100001; font-size: 12px; } From 1d40fa33600d681d9a9fadecef28c734405df1f0 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Mon, 22 Oct 2012 13:21:45 -0400 Subject: [PATCH 3/3] tweaked styles for section naming --- cms/static/sass/_courseware.scss | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/cms/static/sass/_courseware.scss b/cms/static/sass/_courseware.scss index e064428dee..094b6183dd 100644 --- a/cms/static/sass/_courseware.scss +++ b/cms/static/sass/_courseware.scss @@ -135,6 +135,32 @@ input.courseware-unit-search-input { color: $blue; } + .section-name-span { + cursor: pointer; + @include transition(color .15s); + + &:hover { + color: $orange; + } + } + + .section-name-edit { + input { + font-size: 16px; + } + + .save-button { + @include blue-button; + padding: 7px 20px 7px; + margin-right: 5px; + } + + .cancel-button { + @include white-button; + padding: 7px 20px 7px; + } + } + h4 { font-size: 12px; color: #878e9d;