Skip to content

Commit f25d19a

Browse files
committed
Move disable doc notice to the top
1 parent db16ee7 commit f25d19a

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎assets/javascripts/views/misc/notice.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class app.views.Notice extends app.View
1616
return
1717

1818
show: ->
19+
@addClass '_top' if @type is 'disabledDoc'
1920
@html @tmpl("#{@type}Notice", @args...)
2021
@prependTo $('._app')
2122
return

‎assets/stylesheets/application-dark.css.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
'components/content',
2424
'components/page',
2525
'components/fail',
26-
'components/notice',
2726
'components/path',
27+
'components/notice',
2828
'components/prism',
2929
'components/mobile';
3030

‎assets/stylesheets/application.css.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
'components/content',
2424
'components/page',
2525
'components/fail',
26-
'components/notice',
2726
'components/path',
27+
'components/notice',
2828
'components/prism',
2929
'components/mobile';
3030

‎assets/stylesheets/components/_notice.scss‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
@media #{$mediumScreen} { left: $sidebarMediumWidth; }
1313

1414
~ ._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+
}
1524
}
1625

1726
._notice-text {

0 commit comments

Comments
 (0)