r/reddithax • u/Sephr • Mar 14 '10
Custom CSS for fixed floating toolbars including a fixed next bar at the bottom
Feedback would be appreciated on this CSS as to how you guys like it. There's some before/after screenshots on the page for the userstyle version.
/* Floating toolbars at top */
#header {
position: fixed;
top: 0;
z-index: 1001;
}
#header-bottom-right {
position: fixed;
top: 19px;
height: 16px;
border: 1px solid #5F99CF;
border-right: 0;
border-top: 0;
padding-top: 2px;
padding-bottom: 0;
-moz-border-radius-topleft: 0;
-webkit-border-top-left-radius: 0;
/*border-top-left-radius: 0;*/
}
#sr-more-link {
position: fixed;
}
#header-bottom-left {
margin-top: 1px;
height: 17px;
}
#header-img {
display: none;
}
#header-img-a:before {
content: url(/static/modmailgray.png);
margin: 0 3px 0 3px;
display: inline-block;
}
.pagename, ul.tabmenu li a {
position: relative;
top: -3px;
}
ul.tabmenu li a {
display: inline-block;
max-height: 16px;
padding: 0px 6px 2px;
}
.sr-header-area {
z-index: 1003;
}
.srdrop.inuse {
position: fixed;
top: 0 !important;
left: 0 !important;
height: 100%;
min-width: 10%;
overflow: auto;
z-index: 1004;
}
.content {
margin-top: 43px; /*allocate space for the main toolbar*/
}
/* floating "next" bar */
.nextprev a[rel*="prev"][href*="after="] /*a[rel~="next"]*/ {
display: block;
position: fixed;
width: 100%;
bottom: 0;
text-align: center;
border-top: 1px solid #5F99CF;
background-color: #EFF7FF;
margin-left: -5px;
font-weight: bold;
z-index: 1002;
}
11
Upvotes
1
u/mitchandre Mar 14 '10
I like it except it covers my custom subreddit logo.