Move disable doc notice to the top

pull/220/head
Thibaut 10 years ago
parent db16ee72a8
commit f25d19a7dd

@ -16,6 +16,7 @@ class app.views.Notice extends app.View
return return
show: -> show: ->
@addClass '_top' if @type is 'disabledDoc'
@html @tmpl("#{@type}Notice", @args...) @html @tmpl("#{@type}Notice", @args...)
@prependTo $('._app') @prependTo $('._app')
return return

@ -23,8 +23,8 @@
'components/content', 'components/content',
'components/page', 'components/page',
'components/fail', 'components/fail',
'components/notice',
'components/path', 'components/path',
'components/notice',
'components/prism', 'components/prism',
'components/mobile'; 'components/mobile';

@ -23,8 +23,8 @@
'components/content', 'components/content',
'components/page', 'components/page',
'components/fail', 'components/fail',
'components/notice',
'components/path', 'components/path',
'components/notice',
'components/prism', 'components/prism',
'components/mobile'; 'components/mobile';

@ -12,6 +12,15 @@
@media #{$mediumScreen} { left: $sidebarMediumWidth; } @media #{$mediumScreen} { left: $sidebarMediumWidth; }
~ ._container { padding-bottom: 2.5rem; } ~ ._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 { ._notice-text {

Loading…
Cancel
Save