@@ -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')
@@ -23,8 +23,8 @@
'components/content',
'components/page',
'components/fail',
- 'components/notice',
'components/path',
+ 'components/notice',
'components/prism',
'components/mobile';
@@ -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 {