Skip to content

Instantly share code, notes, and snippets.

@tomoe-mami
Created September 26, 2012 22:18
Show Gist options
  • Save tomoe-mami/3790983 to your computer and use it in GitHub Desktop.
Save tomoe-mami/3790983 to your computer and use it in GitHub Desktop.
Weechat docs with TOC displayed as sidebar
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("https?://(www\.)?weechat\.org/files/doc/stable/.*") {
.article {
margin: 0 !important;
}
#header, #content {
position: fixed;
top: 0;
bottom: 0;
overflow: auto;
}
#header {
font-size: 0.9em!important;
white-space: nowrap;
background: #f0f0f0;
left: 0;
padding: 5px 15px;
width: 300px;
margin: 0 !important;
}
#header > h1 {
font-size: 1.2em !important;
line-height: 1.3em !important;
border-bottom: none !important;
margin: 0 0 8px 0 !important;
}
#toc a { text-decoration: none !important; }
#toc a:hover { text-decoration: underline !important; }
#content {
right: 0;
left: 350px;
padding-right: 10px;
}
#footer, #footnotes {
display: none !important;
}
}
.article {
margin: 0;
}
#header, #content {
position: fixed;
top: 0;
bottom: 0;
overflow: auto;
}
#header {
font-size: 0.9em;
white-space: nowrap;
background: #f0f0f0;
left: 0;
padding: 5px 15px;
width: 300px;
margin: 0;
}
#header > h1 {
font-size: 1.2em;
line-height: 1.3em;
border-bottom: none;
margin: 0 0 8px 0;
}
#toc a { text-decoration: none; }
#toc a:hover { text-decoration: underline; }
#content {
right: 0;
left: 350px;
padding-right: 10px;
}
#footer, #footnotes {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment