diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index 537621c9a8..e1ec35c49b 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -120,9 +120,11 @@ def howitworks(request): else: return render_to_response('howitworks.html', {}) + def ux_alerts(request): return render_to_response('ux-alerts.html', {}) + # ==== Views for any logged-in user ================================== diff --git a/cms/static/js/base.js b/cms/static/js/base.js index fc68a2718b..57fdc6c1a9 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -48,31 +48,6 @@ $(document).ready(function () { (e).preventDefault(); }); - // alert and notifications - manual close - $('.action-alert-close, .alert.has-actions .nav-actions a').click(function(e) { - (e).preventDefault(); - console.log('closing alert'); - $(this).closest('.wrapper-alert').removeClass('is-shown'); - }); - - // alert and notifications - manual & action-based close - $('.action-notification-close').click(function(e) { - (e).preventDefault(); - $(this).closest('.wrapper-notification').removeClass('is-shown').addClass('is-hiding'); - }); - - // prompt pop - $('.action-prompt').click(function(e){ - (e).preventDefault(); - $body.toggleClass('prompt-is-shown'); - }); - - // prompt close - $('.prompt .action-cancel, .prompt .action-proceed').click(function(e) { - (e).preventDefault(); - $body.removeClass('prompt-is-shown'); - }); - // nav - dropdown related $body.click(function (e) { $('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown'); @@ -184,9 +159,9 @@ $(document).ready(function () { function smoothScrollLink(e) { (e).preventDefault(); - $.smoothScroll({ - offset: -200, - easing: 'swing', + $.smoothScroll({ + offset: -200, + easing: 'swing', speed: 1000, scrollElement: null, scrollTarget: $(this).attr('href') @@ -196,9 +171,9 @@ function smoothScrollLink(e) { function smoothScrollTop(e) { (e).preventDefault(); - $.smoothScroll({ - offset: -200, - easing: 'swing', + $.smoothScroll({ + offset: -200, + easing: 'swing', speed: 1000, scrollElement: null, scrollTarget: $('#view-top') @@ -508,9 +483,9 @@ function toggleSock(e) { $sock.toggleClass('is-shown'); $sockContent.toggle('fast'); - $.smoothScroll({ - offset: -200, - easing: 'swing', + $.smoothScroll({ + offset: -200, + easing: 'swing', speed: 1000, scrollElement: null, scrollTarget: $sock @@ -864,4 +839,4 @@ function saveSetSectionScheduleDate(e) { hideModal(); }); -} \ No newline at end of file +} diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 82b3d82ccd..73519b812d 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -112,9 +112,10 @@ p, ul, ol, dl { // layout - basic page header .wrapper-mast { + margin: ($baseline*1.5) 0 0 0; padding: 0 $baseline; position: relative; - + .mast, .metadata { @include clearfix(); @include font-size(16); @@ -122,7 +123,7 @@ p, ul, ol, dl { max-width: $fg-max-width; min-width: $fg-min-width; width: flex-grid(12); - margin: ($baseline*1.5) auto $baseline auto; + margin: 0 auto $baseline auto; color: $gray-d2; } @@ -842,4 +843,4 @@ body.hide-wip { .wip-box { display: none; } -} \ No newline at end of file +} diff --git a/cms/templates/settings_advanced.html b/cms/templates/settings_advanced.html index 864c2df5cd..f40b7e15a9 100644 --- a/cms/templates/settings_advanced.html +++ b/cms/templates/settings_advanced.html @@ -42,13 +42,17 @@ editor.render(); %block> <%block name="content"> +
Your changes will not take effect until you save your progress. Take care with key and value formatting, as validation is not implemented.
@@ -157,4 +161,4 @@ editor.render();