Unified · Split
| @@ -16,6 +16,7 @@ class app.views.Notice extends app.View · 15 unmodified lines | |||
| 16 | return | 16 | 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 | return | 22 | return |
| @@ -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 | ||
| @@ -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 | ||
| @@ -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 { |