Skip to content

Instantly share code, notes, and snippets.

@DL6AKU
Last active March 21, 2017 00:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Wikipedia Paper Serif - Stylish CSS Style - Bookerly Font recommended
@-moz-document domain(wikipedia.org) {
/* Modified from https://userstyles.org/styles/99183/wikipedia-paper-sidebar-edition */
/* Bookerly Font recommended. Get it from here: http://www.newswirl.com/bookerly-font-download/ */
/* hide tagline */
#siteSub {display:none;}
/* hide header */
#mw-navigation {display:none;}
/* hide header except search *
#mw-head > div:not(#right-navigation),
#right-navigation > div:not(#p-search) {display:none;}
*/
body {
font-size: inherit;
background: url(http://i.imgur.com/anSVcTO.png);
}
#bodyContent {
font: 18px/1.5 Bookerly, serif;
}
body b {
font-weight: 600 !important;
}
p {
margin: 0 0 1em 0;
line-height: inherit;
color: #555 !important;
}
.MathJax {
color: #666;
}
/* prevents sub/superscripts from throwing off line spacing */
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {top: -0.33em;}
sub {bottom: -0.33em;}
/* title */
.firstHeading {
font: 48px/1 Bookerly, serif !important;
color: rgba(0,0,0,0.55) !important;
/* font-weight: 400 !important; */
display: block;
margin: 0 !important;
padding: .75em 0 1em 10px !important;
/*position: relative !important;
z-index: 99999 !important;*/
}
/* redirect title */
#contentSub {display:none !important;}
.dablink, .rellink, .relarticle {
font-size: 0.95em;
color: #777;
position: relative;
z-index: 99;
}
#column-one, #footer { display: none !important; }
/* hide left and top panel */
#mw-panel {display:none!important;}
.noprint {display:none!important;}
#panel, #head,#page-base
{ display: none !important; }
/* section headers */
h1, h2, h3, h4, h5, h6 {
border: none !important;
font-family: Bookerly, serif !important;
margin: 0.5em 0;
color: #444;
}
h2 {
font-size: 26px;
}
h3 {
font-size: 22px;
font-weight: 400;
}
h4 {
font-size: 20px;
font-weight: 400;
}
h5 {
font-size: 1em;
font-weight: 400;
}
#content.mw-body {
position: relative;
top: 0;
bottom: 0;
left: calc(200px + 1em);
max-width: calc(100% - 315px);
margin: 0;
border: none !important;
border-radius: 2px !important;
padding: 0px 1.6em 2em 1em !important;
background: none;
color: #555;
text-align: justify;
}
#content ul, #content ol {
color: #666 !important;
list-style-image: none;
margin-bottom: 1em;
margin-top: 0em;
}
#content table.wikitable {
color: #666 !important;
border: 1px solid #EEE !important;
}
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td { border: 1px solid #CCC !important;}
/* table of contents */
#toc {
font-family: Open Sans, sans-serif !important;
/*border: 1px solid #EEE !important;*/
border: none;
/*border-radius: 2px !important;*/
font-size: 12px;
font-weight: 400;
background: url(http://i.imgur.com/anSVcTO.png);
/* make sidebar */
position: fixed !important;
display: inline-block;
top: 0;
bottom: 0;
left: 0;
width: 200px;
padding: 0.2em 0;
margin: 0 .5em;
/*word-break: break-all !important;*/
overflow: auto;
/*z-index: 99999;*/
/*height: 100%;*/
background: #EDEDED url(http://i.imgur.com/anSVcTO.png) center center scroll;
}
#toc > ul {
overflow-y: auto !important;
/*word-break: break-all !important;*/
/*height: 100% !important;*/
overflow-x: hidden !important;
background: #EDEDED url(http://i.imgur.com/anSVcTO.png) center center scroll;
padding: 1em 0 5em;
margin: auto 0 !important;
}
.toc ul ul { margin-left: 1em !important; }
.toc a {
display: block;
padding: 0.25em 1em;
border-radius: 2px;
line-height: 1.25 !important;
}
/* toc headers */
.toclevel-1 > a > .toctext {
font-weight: 600;
text-transform: uppercase;
padding-top: 0.25em;
display: inline-block;
}
.tocnumber {display:none;}
.toc h2 {display:none !important;}
/*.toc:hover {
background-color: #F5F5F5 !important;
box-shadow: 0 0 4px #666 !important;
-moz-transition: 400ms;
}*/
.toccolours, .thumb {
border: 1px solid #EEE !important;
/* box-shadow: 0px 0px 3px 0 #999 !important; */
border-radius: 2px !important;
}
div.toctitle {text-decoration: none !important;}
span.toctoggle {display:none !important;}
/* pictures / images */
.infobox {
background-color: #FCFCFC !important;
border:1px solid #DDD !important;
border-radius: 2px !important;
/* box-shadow: 0px 0px 2px 0 #999 !important; */
}
.infobox tbody tr th {
background: none !important;
font-weight: 600 !important;
}
.thumb {
border: 1px solid #E0E0E0 !important;
border-radius: 2px !important;
}
.thumbinner {
/*padding: 4px !important;*/
border: none !important;
}
.thumbimage {
border: none !important;
}
.magnify {
display:none;
}
.editsection, .mw-editsection, .plainlinks.hlist.navbar {display: none !important;}
a:link {
color: #0AA !important;
text-decoration: none !important;
}
a:visited {color: #055 !important;}
a:hover {color: #0BB !important; }
a:active {color:#00BFBF !important; outline:none;}
#toc a:link {color: #888 !important; text-decoration: none !important;}
#toc a:visited {color: #AAA !important;}
#toc a:hover {color: #000 !important; text-decoration: none !important; background: rgba(0,0,0,0.05);}
#toc a:active {color: #00A6FF !important; outline:none;}
a.new {
color: #78a !important;
text-decoration: none !important;
}
/* search results */
.mw-search-result-data, .mw-specialpage-summary, .mw-search-formheader, .mw-search-createlink {display:none !important;}
.mw-search-results {padding-top: 15px !important;}
div.mw-jump {display:none!important;}
table#mw-search-top-table tr td input {display:none!important;}
/* hide citations */
a[href="#References"], sup[class="reference"], span[id="References"], ol[class="references"], .refbegin {display:none !important;}
/* hide rating */
div#mw-articlefeedback {display:none!important;}
/* hide coordinates on location pages */
#coordinates {display:none !important;}
/* hide hide button
.collapseButton {display:none !important;} */
/* hide protected lock */
div#protected-icon {display:none !important;}
/* merge suggestion
table.metadata.plainlinks.ambox.ambox-move {display:none !important;} */
/* needs citations */
table.ambox {font-size: 0.9em; margin: 1em 2em; background: rgba(0,0,0,0.05); border: none; border-radius: 2px; padding: .25em .5em; color: rgba(0,0,0,0.65);}
/* hide stubs */
TABLE.metadata.plainlinks.stub {display:none!important;}
/* V•T•E */
.plainlinks.hlist.navbar.mini {
display: none;
}
/* Categories */
#mw-normal-catlinks {
font-size: 0.9em;
}
}
@-moz-document url-prefix(http://en.wikipedia.org/wiki/File:) {
/* hide image properties box on image page */
ul#filetoc {display:none!important;}
h1#firstHeading.firstHeading {display:none!important;}
div.sharedUploadNotice {display:none!important;}
div#file.fullImageLink {text-align:center!important;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment