Last active
November 23, 2023 18:55
-
-
Save rmnmjw/a2c3da5d02344349e87acc8a48fe8afb to your computer and use it in GitHub Desktop.
wikipedia proper style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (min-width: 1463px) { | |
#toc { | |
position: absolute; | |
z-index: 99999999; | |
top: -72px; | |
right: calc(960px + 10px); | |
min-width: unset !important; | |
width: calc((100vw - 960px - 68px) / 2); | |
background-color: unset; | |
border: unset; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document regexp("^https://[a-z]+\\.wiki[pm]edia\\.org/.*$") { | |
@media screen and (min-width: 960px) { | |
#content { | |
max-width: 960px; | |
left: 50%; | |
transform: translate(-50%, 0); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document regexp("^https://[a-z]+\\.wik(imedia|ipedia|tionary)\\.org/.*$") { | |
:root{ | |
--bg-color: white; | |
} | |
@media (prefers-color-scheme: dark) { | |
:root{ | |
--bg-color: #131516 !important; | |
} | |
html, #mw-head-base, #mw-parser-output { | |
background-color: var(--bg-color) !important; | |
} | |
} | |
#content { | |
top: -60px !important; | |
} | |
:target:before { | |
display: block; | |
margin-top: 20px; | |
content: ""; | |
} | |
.firstHeading.mw-first-heading { | |
margin-top: 24px; | |
} | |
#p-logo, | |
#mw-panel > * > h3, | |
#p-lang li:not(.interwiki-en):not(.interwiki-de):not(.interwiki-ru):not(.interwiki-ja):not(.interwiki-nl)[class*=interwiki], | |
#p-lang button, | |
#p-wikibase-otherprojects, | |
#p-lang .after-portlet, | |
#n-mainpage-description, | |
#n-topics, | |
#n-Artikel-verbessern, | |
#p-Mitmachen, | |
#p-tb, | |
#p-personal, | |
#coll-create_a_book, | |
#footer, | |
#p-navigation > * > * > *:not(#n-randompage), | |
#p-interaction, | |
#p-participation, | |
#left-navigation, | |
#ca-view, | |
#ca-edit, | |
#ca-ve-edit, | |
#ca-current, | |
#ca-viewsource, | |
#p-lang-label, | |
#p-coll-print_export-label, | |
.mw-editsection, | |
#p-feedback, | |
#p-visibility-label, | |
#p-visibility | |
, #ca-watch | |
, #p-cactions | |
/* */ | |
, #wll2021 | |
{ | |
display: none !important; | |
} | |
#n-randompage a { | |
width: 42px; | |
margin-right: 0px; | |
height: 15px !important; | |
overflow: hidden; | |
} | |
#n-randompage a::before { | |
content: 'random'; | |
} | |
#coll-download-as-rl a { | |
width: 36px; | |
height: 15px !important; | |
overflow: hidden !important; | |
} | |
#coll-download-as-rl a::before { | |
content: 'PDF'; | |
} | |
#ca-history > *, | |
#p-cactions-label, | |
#p-namespaces, | |
#mw-panel .portal .body, | |
#mw-page-base, | |
#p-views { | |
background: var(--bg-color) !important; | |
} | |
body { | |
background-color: var(--bg-color); | |
} | |
#mw-head { | |
height: 0px; | |
} | |
#searchform { | |
display: block !important; | |
position: fixed; | |
top: -5px; | |
right: 0px; | |
z-index: 99999; | |
width: 189px; | |
} | |
#simpleSearch { | |
width: 187px !important; | |
} | |
#ca-history { | |
z-index: 99999; | |
background: unset !important; | |
border: unset !important; | |
position: absolute; | |
top: -13px !important; | |
right: 220px; | |
height: 14px; | |
} | |
#mw-panel { | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
padding: 0; | |
width: 100%; | |
background: var(--bg-color); | |
border-bottom: 1px solid grey; | |
} | |
#p-search | |
, #mw-panel | |
, #right-navigation | |
, #mw-panel * | |
, #right-navigation * | |
{ | |
font-size: 12px !important; | |
height: 28px !important; | |
top: 0px !important; | |
} | |
#p-search * {height: 20px !important;} | |
#right-navigation *:not([type="submit"]):not(a) { | |
top: -.5px !important; | |
} | |
#right-navigation a { | |
top: -6px !important; | |
} | |
#mw-panel * { | |
float: left; | |
} | |
#mw-panel li:after { | |
content: '\00a0'; | |
} | |
#mw-panel #p-logo + .portal { | |
margin-top: 0; | |
} | |
#left-navigation { | |
margin-left: 0; | |
} | |
#right-navigation { | |
margin-left: 1px; | |
float: left; | |
height: 0; | |
width: 0; | |
} | |
#content { | |
position: relative; | |
top: -40px; | |
padding-right: 16px !important; | |
padding-left: 16px !important; | |
margin-left: 0 !important; | |
border: none; | |
} | |
.mw-body { | |
padding: unset; | |
} | |
.badge-goodarticle, .badge-goodlist, .badge-recommendedarticle, .badge-featuredarticle, .badge-featuredlist { | |
list-style-image: unset !important; | |
} | |
@media only screen and (max-width: 800px) { | |
#ca-history { | |
top: 25px; | |
} | |
#content { | |
top: -26px; | |
left: 0 !important; | |
margin: 0; | |
margin-left: 0 !important; | |
padding-left: 10px; | |
} | |
#searchform { | |
top: 23px; | |
} | |
#mw-panel { | |
height: 68px; | |
} | |
} | |
/* remove annoying banner */ | |
#WMDE-Banner-Container | |
{ | |
display: none !important; | |
} | |
.mw-page-base | |
{ | |
padding-top: unset !important; | |
} | |
.mw-head, | |
.mw-panel | |
{ | |
top: unset !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment