From f25d19a7dd0d200251cdf3dd5e39e7643e02edd2 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 24 May 2015 13:38:05 -0400 Subject: [PATCH] Move disable doc notice to the top --- assets/javascripts/views/misc/notice.coffee | 1 + assets/stylesheets/application-dark.css.scss | 2 +- assets/stylesheets/application.css.scss | 2 +- assets/stylesheets/components/_notice.scss | 9 +++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/views/misc/notice.coffee b/assets/javascripts/views/misc/notice.coffee index 3cc3750f..a2cebf66 100644 --- a/assets/javascripts/views/misc/notice.coffee +++ b/assets/javascripts/views/misc/notice.coffee @@ -16,6 +16,7 @@ class app.views.Notice extends app.View return show: -> + @addClass '_top' if @type is 'disabledDoc' @html @tmpl("#{@type}Notice", @args...) @prependTo $('._app') return diff --git a/assets/stylesheets/application-dark.css.scss b/assets/stylesheets/application-dark.css.scss index 491ed4dc..34843adc 100644 --- a/assets/stylesheets/application-dark.css.scss +++ b/assets/stylesheets/application-dark.css.scss @@ -23,8 +23,8 @@ 'components/content', 'components/page', 'components/fail', - 'components/notice', 'components/path', + 'components/notice', 'components/prism', 'components/mobile'; diff --git a/assets/stylesheets/application.css.scss b/assets/stylesheets/application.css.scss index 8589a72a..cc8675d3 100644 --- a/assets/stylesheets/application.css.scss +++ b/assets/stylesheets/application.css.scss @@ -23,8 +23,8 @@ 'components/content', 'components/page', 'components/fail', - 'components/notice', 'components/path', + 'components/notice', 'components/prism', 'components/mobile'; diff --git a/assets/stylesheets/components/_notice.scss b/assets/stylesheets/components/_notice.scss index e54a11fd..5bc34301 100644 --- a/assets/stylesheets/components/_notice.scss +++ b/assets/stylesheets/components/_notice.scss @@ -12,6 +12,15 @@ @media #{$mediumScreen} { left: $sidebarMediumWidth; } ~ ._container { padding-bottom: 2.5rem; } + + &._top { + bottom: auto; + top: $headerHeight; + margin-top: 1px; + box-shadow: inset 0 -1px $noticeBorder; + + ~ ._container { padding-bottom: 0; padding-top: 2.5rem; } + } } ._notice-text {