History

Move disable doc notice to the top

Thibaut committed 11 years ago

Commit f25d19a1 parent db16ee74 files · +12 −2Browse files

Unified · Split

4 files
  1. assets/javascripts/views/misc/notice.coffee +1 −0
  2. assets/stylesheets/application-dark.css.scss +1 −1
  3. assets/stylesheets/application.css.scss +1 −1
  4. assets/stylesheets/components/_notice.scss +9 −0
assets/javascripts/views/misc/notice.coffee+1−0
@@ -16,6 +16,7 @@ class app.views.Notice extends app.View · 15 unmodified lines
16 return16 return
17 17
18 show: ->18 show: ->
19 @addClass '_top' if @type is 'disabledDoc'
19 @html @tmpl("#{@type}Notice", @args...)20 @html @tmpl("#{@type}Notice", @args...)
20 @prependTo $('._app')21 @prependTo $('._app')
21 return22 return
assets/stylesheets/application-dark.css.scss+1−1
@@ -23,8 +23,8 @@ · 22 unmodified lines
23 'components/content',23 'components/content',
24 'components/page',24 'components/page',
25 'components/fail',25 'components/fail',
26 'components/notice',
27 'components/path',26 'components/path',
27 'components/notice',
28 'components/prism',28 'components/prism',
29 'components/mobile';29 'components/mobile';
30 30
assets/stylesheets/application.css.scss+1−1
@@ -23,8 +23,8 @@ · 22 unmodified lines
23 'components/content',23 'components/content',
24 'components/page',24 'components/page',
25 'components/fail',25 'components/fail',
26 'components/notice',
27 'components/path',26 'components/path',
27 'components/notice',
28 'components/prism',28 'components/prism',
29 'components/mobile';29 'components/mobile';
30 30
assets/stylesheets/components/_notice.scss+9−0
@@ -12,6 +12,15 @@ · 11 unmodified lines
12 @media #{$mediumScreen} { left: $sidebarMediumWidth; }12 @media #{$mediumScreen} { left: $sidebarMediumWidth; }
13 13
14 ~ ._container { padding-bottom: 2.5rem; }14 ~ ._container { padding-bottom: 2.5rem; }
15
16 &._top {
17 bottom: auto;
18 top: $headerHeight;
19 margin-top: 1px;
20 box-shadow: inset 0 -1px $noticeBorder;
21
22 ~ ._container { padding-bottom: 0; padding-top: 2.5rem; }
23 }
15}24}
16 25
17._notice-text {26._notice-text {