Don't hide the copyright notice or whatever's at the bottom if you use bottom header.

This commit is contained in:
Nicolas Stepien 2013-04-18 22:27:19 +02:00
parent c9f1a4b6d9
commit c99fe351e6
2 changed files with 14 additions and 3 deletions

View File

@ -93,11 +93,12 @@ a[href="javascript:;"] {
} }
/* Header */ /* Header */
.fourchan-x body { :root.top-header body {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin-top: 2em; margin-top: 2em;
} }
:root.bottom-header body {
margin-bottom: 2em;
}
.fourchan-x #boardNavDesktop, .fourchan-x #boardNavDesktop,
.fourchan-x #navtopright, .fourchan-x #navtopright,
.fourchan-x #boardNavDesktopFoot { .fourchan-x #boardNavDesktopFoot {
@ -256,6 +257,10 @@ a[href="javascript:;"] {
} }
/* Settings */ /* Settings */
:root.fourchan-x body {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#overlay { #overlay {
background-color: rgba(0, 0, 0, .5); background-color: rgba(0, 0, 0, .5);
display: -webkit-flex; display: -webkit-flex;

View File

@ -146,6 +146,12 @@ Header =
setBarPosition: (bottom) -> setBarPosition: (bottom) ->
$.event 'CloseMenu' $.event 'CloseMenu'
if bottom
$.addClass doc, 'bottom-header'
$.rmClass doc, 'top-header'
else
$.addClass doc, 'top-header'
$.rmClass doc, 'bottom-header'
Header.positionToggler.firstElementChild.checked = bottom Header.positionToggler.firstElementChild.checked = bottom
Header.bar.parentNode.className = if bottom Header.bar.parentNode.className = if bottom
'bottom' 'bottom'