Rethink the notifications bar.

This commit is contained in:
Zixaphir 2013-04-14 16:28:55 -07:00
parent 437de43ee7
commit c3cd4116bc
7 changed files with 23 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -190,12 +190,10 @@ else "
} }
.fixed.top #boardNavDesktop.autohide:not(:hover) { .fixed.top #boardNavDesktop.autohide:not(:hover) {
margin-bottom: -1em; margin-bottom: -1em;
-webkit-transform: translateY(-100%); #{agent}transform: translateY(-100%);
transform: translateY(-100%);
} }
.fixed.bottom #boardNavDesktop.autohide:not(:hover) { .fixed.bottom #boardNavDesktop.autohide:not(:hover) {
-webkit-transform: translateY(100%); #{agent}transform: translateY(100%);
transform: translateY(100%);
} }
#toggle-header-bar { #toggle-header-bar {
left: 0; left: 0;
@ -222,6 +220,16 @@ else "
cursor: s-resize; cursor: s-resize;
} }
/* Notifications */ /* Notifications */
#notifications {
position: fixed;
top: 0;
left: 0;
right: 0;
}
.fixed.top #notifications {
position: absolute;
top: 100%;
}
.notification { .notification {
display: block; display: block;
overflow: hidden; overflow: hidden;

View File

@ -84,8 +84,7 @@ Header =
$.sync 'Header auto-hide', Header.setBarVisibility $.sync 'Header auto-hide', Header.setBarVisibility
$.add fullBoardList, [nav.childNodes...] $.add fullBoardList, [nav.childNodes...]
$.add nav, [Header.menuButton, customBoardList, fullBoardList, Header.shortcuts, $('#navtopright', fullBoardList), Header.toggle] $.add nav, [Header.menuButton, customBoardList, fullBoardList, Header.shortcuts, $('#navtopright', fullBoardList), Header.bar, Header.toggle]
$.add d.body, Header.bar
if Conf['Custom Board Navigation'] if Conf['Custom Board Navigation']
Header.generateBoardList Conf['boardnav'] Header.generateBoardList Conf['boardnav']
@ -185,7 +184,7 @@ Header =
scrollToPost: (post) -> scrollToPost: (post) ->
{top} = post.getBoundingClientRect() {top} = post.getBoundingClientRect()
unless Conf['Bottom header'] if Conf['Boards Navigation'] is 'sticky top'
headRect = Header.bar.getBoundingClientRect() headRect = Header.bar.getBoundingClientRect()
top += - headRect.top - headRect.height top += - headRect.top - headRect.height
(if $.engine is 'webkit' then d.body else doc).scrollTop += top (if $.engine is 'webkit' then d.body else doc).scrollTop += top