Difference between revisions of "MediaWiki:Gadget-vector-themed.css"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) m (blurring shadow slightly) |
PanchamBro (talk | contribs) m |
||
(7 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
border: 0 solid; | border: 0 solid; | ||
margin-bottom: -5em; | margin-bottom: -5em; | ||
− | margin-left: 12.5em | + | margin-left: 12.5em; |
margin-top: 156px; | margin-top: 156px; | ||
padding-bottom: 50px; | padding-bottom: 50px; | ||
Line 9: | Line 9: | ||
#footer { | #footer { | ||
− | background: var(--th-color-tertiary) var(--th-nookipedia-footer) repeat-x bottom | + | background: var(--th-color-tertiary) var(--th-nookipedia-footer) repeat-x bottom; |
height: 100px; | height: 100px; | ||
− | margin-left: 12.5em | + | margin-left: 12.5em; |
− | margin-top: 0 | + | margin-top: 0; |
− | margin-bottom: 5em | + | margin-bottom: 5em; |
− | padding: 1em 1.25em 5em 1.25em | + | padding: 1em 1.25em 5em 1.25em; |
− | border-radius: 0 0 0 20px | + | border-radius: 0 0 0 20px; |
− | background-size: var(--th-footer-size) | + | background-size: var(--th-footer-size); |
} | } | ||
Line 39: | Line 39: | ||
#mw-panel { | #mw-panel { | ||
− | margin-left: 10px | + | margin-left: 10px; |
− | top: 45px | + | top: 45px; |
} | } | ||
#mw-panel .vector-menu-portal .body { | #mw-panel .vector-menu-portal .body { | ||
− | background: var(--sidebar-background) | + | background: var(--sidebar-background); |
border-radius: 10px; | border-radius: 10px; | ||
padding-bottom: 0.3em; | padding-bottom: 0.3em; | ||
Line 51: | Line 51: | ||
#mw-panel .vector-menu-portal .body ul { | #mw-panel .vector-menu-portal .body ul { | ||
− | list-style-image: var(--th-list) | + | list-style-image: var(--th-list); |
} | } | ||
#mw-panel .vector-menu-portal { | #mw-panel .vector-menu-portal { | ||
− | background: var(--sidebar-color) | + | background: var(--sidebar-color); |
background-image: none; | background-image: none; | ||
border-radius: 10px; | border-radius: 10px; | ||
Line 70: | Line 70: | ||
background: none; | background: none; | ||
border-radius: 0; | border-radius: 0; | ||
− | color: var(--sidebar-text) | + | color: var(--sidebar-text); |
font-family: Coustard, "Linux Libertine", Georgia, Times, serif; | font-family: Coustard, "Linux Libertine", Georgia, Times, serif; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
Line 92: | Line 92: | ||
#p-personal { | #p-personal { | ||
− | background-color: var(--p-personal-color) | + | background-color: var(--p-personal-color); |
border-radius: 0 0 0 5px; | border-radius: 0 0 0 5px; | ||
padding: 5px; | padding: 5px; | ||
Line 117: | Line 117: | ||
#pt-mytalk > .mw-echo-alert { | #pt-mytalk > .mw-echo-alert { | ||
− | color: #000 | + | color: #000; |
} | } | ||
Line 123: | Line 123: | ||
#pt-anonuserpage, | #pt-anonuserpage, | ||
#pt-userpage a { | #pt-userpage a { | ||
− | color: var(--th-p-text-color) | + | color: var(--th-p-text-color); |
− | |||
} | } | ||
.mw-body h1, | .mw-body h1, | ||
.mw-body h2 { | .mw-body h2 { | ||
− | color: var(--th-color-primary) | + | color: var(--th-color-primary); |
font-family: Coustard, "Linux Libertine", Georgia, Times, serif; | font-family: Coustard, "Linux Libertine", Georgia, Times, serif; | ||
− | text-shadow: 0 1px var(--th-color-tertiary) | + | text-shadow: 0 1px var(--th-color-tertiary); |
} | } | ||
.mw-wiki-logo { | .mw-wiki-logo { | ||
− | background-image: var(--th-logo) | + | background-image: var(--th-logo); |
background-size: 179px; | background-size: 179px; | ||
} | } | ||
.vectorMenu li { | .vectorMenu li { | ||
− | background: var(--th-color-secondary) | + | background: var(--th-color-secondary); |
border-radius: 0; | border-radius: 0; | ||
width: 100%; | width: 100%; | ||
Line 147: | Line 146: | ||
body { | body { | ||
− | background: var(--th-background) | + | background: var(--th-background); |
} | } | ||
Line 157: | Line 156: | ||
.vector-menu-tabs .vector-menu-content ul li, | .vector-menu-tabs .vector-menu-content ul li, | ||
#mw-head .vectorMenu h3 { | #mw-head .vectorMenu h3 { | ||
− | background: var(--th-color-secondary) | + | background: var(--th-color-secondary); |
border-radius: 10px 10px 0 0; | border-radius: 10px 10px 0 0; | ||
margin: 0 4px 0 0; | margin: 0 4px 0 0; | ||
Line 163: | Line 162: | ||
.vector-menu-tabs .vector-menu-content ul li.selected { | .vector-menu-tabs .vector-menu-content ul li.selected { | ||
− | background: var(--nookipedia-bg-color) | + | background: var(--nookipedia-bg-color); |
} | } | ||
Line 171: | Line 170: | ||
#mw-head .vector-menu-dropdown a, | #mw-head .vector-menu-dropdown a, | ||
#mw-head .vector-menu-dropdown a:visited { | #mw-head .vector-menu-dropdown a:visited { | ||
− | color: var(--th-color-primary) | + | color: var(--th-color-primary); |
} | } | ||
Line 179: | Line 178: | ||
#n-Twitter, | #n-Twitter, | ||
#n-Instagram { | #n-Instagram { | ||
− | display: none | + | display: none; |
} | } | ||
Line 190: | Line 189: | ||
} | } | ||
#p-Community #n-Discord-Server a { | #p-Community #n-Discord-Server a { | ||
− | background-color: #5865F2 | + | background-color: #5865F2; |
border-radius: 5px; | border-radius: 5px; | ||
− | color: #fff | + | color: #fff; |
display: block; | display: block; | ||
font-size: 12px; | font-size: 12px; | ||
Line 206: | Line 205: | ||
} | } | ||
#p-Community #n-Discord-Server a::after { | #p-Community #n-Discord-Server a::after { | ||
− | background: url(https://dodo.ac/np/images/f/f6/Discord_Icon_White.svg) no-repeat | + | background: url(https://dodo.ac/np/images/f/f6/Discord_Icon_White.svg) no-repeat; |
background-size: 17px 13px; | background-size: 17px 13px; | ||
content: ""; | content: ""; | ||
Line 235: | Line 234: | ||
.mw-logo-container { | .mw-logo-container { | ||
− | background: var(--th-nookipedia-text) no-repeat | + | background: var(--th-nookipedia-text) no-repeat; |
− | background-size: 120px | + | background-size: 120px; |
} | } | ||
.skin-vector #content { | .skin-vector #content { | ||
− | background: var(--nookipedia-bg-color) | + | background: var(--nookipedia-bg-color); |
margin-top: var(--vector-hcon,45px); | margin-top: var(--vector-hcon,45px); | ||
margin-bottom: 0; | margin-bottom: 0; | ||
Line 252: | Line 251: | ||
.mw-prefs-buttons { | .mw-prefs-buttons { | ||
− | background: var(--nookipedia-bg-color) | + | background: var(--nookipedia-bg-color); |
} | } | ||
/* Categories */ | /* Categories */ | ||
#catlinks { | #catlinks { | ||
− | display: inherit | + | display: inherit; |
border-top: 3px solid #cccccc; | border-top: 3px solid #cccccc; | ||
padding-bottom: 2em; | padding-bottom: 2em; | ||
Line 274: | Line 273: | ||
height: var(--height); | height: var(--height); | ||
background-size: var(--th-leaves-size); | background-size: var(--th-leaves-size); | ||
+ | } | ||
+ | |||
+ | /* Parity with Nookipedia Timeless */ | ||
+ | /* TOC adjustments */ | ||
+ | .mw-body .mw-parser-output h2 { | ||
+ | border-bottom: 0; | ||
+ | font-family: 'Coustard'; | ||
+ | font-weight: normal; | ||
+ | text-align: left; | ||
+ | margin: 1.5em 0 0.5em; | ||
+ | text-shadow: 0 1px var(--th-color-shadow); | ||
+ | color: var(--th-color-primary); | ||
+ | overflow: visible; | ||
+ | } | ||
+ | |||
+ | .toc { | ||
+ | background-color: var(--th-img-thumbnail); | ||
+ | border: none; | ||
+ | border-radius: 10px; | ||
+ | box-shadow: none; | ||
+ | } | ||
+ | .mw-body .mw-parser-output h1::after, .mw-body .mw-parser-output h2::after { | ||
+ | content: ''; | ||
+ | display: block; | ||
+ | border-bottom: solid 2px #A2A9B1; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | .mw-body .toc h2 { | ||
+ | font-size: 1em; | ||
+ | margin: 0; | ||
+ | display: inline; | ||
+ | font-weight: normal; | ||
+ | } | ||
+ | .toc .toctitle { | ||
+ | direction: ltr; | ||
+ | text-align: left; | ||
+ | } | ||
+ | .mw-body .mw-parser-output h1::after, .mw-body .mw-parser-output h2::after { | ||
+ | content: ''; | ||
+ | display: block; | ||
+ | border-bottom: solid 2px #A2A9B1; | ||
+ | overflow: hidden; | ||
+ | margin-top: 0.1em; | ||
+ | } | ||
+ | .toctogglespan { | ||
+ | float: right; | ||
+ | } | ||
+ | div.toc { | ||
+ | background-color: var(--th-img-thumbnail); | ||
+ | border: none; | ||
+ | border-radius: 10px; | ||
+ | box-shadow: none; | ||
+ | display: table; | ||
+ | padding: 1.25em 1.75em; | ||
+ | margin-top: 1em; | ||
+ | margin-bottom: 1em; | ||
+ | min-width: 15em; | ||
+ | } | ||
+ | |||
+ | /* Image thumbnail adjustments */ | ||
+ | div.thumbinner { | ||
+ | background-color: var(--th-img-thumbnail); | ||
+ | border: none; | ||
+ | border-radius: 10px; | ||
+ | box-shadow: none; | ||
+ | min-width: 120px; | ||
+ | text-align: center; | ||
+ | padding: 0.75em; | ||
+ | margin-left: auto; | ||
+ | margin-right: auto; | ||
+ | } | ||
+ | |||
+ | div.thumbinner .thumbimage { | ||
+ | border: none; | ||
+ | border-radius: 5px; | ||
+ | background: transparent; | ||
+ | } | ||
+ | |||
+ | .topicon { | ||
+ | right:30px; | ||
+ | position: absolute; | ||
+ | top: 6em; | ||
+ | display: block; | ||
} | } | ||
Line 282: | Line 364: | ||
} | } | ||
.skin-vector-legacy #content { | .skin-vector-legacy #content { | ||
− | background: var(--nookipedia-bg-color) | + | background: var(--nookipedia-bg-color); |
margin-top: var(--vector-legacy-hcon,184px); | margin-top: var(--vector-legacy-hcon,184px); | ||
margin-bottom: 0; | margin-bottom: 0; |
Latest revision as of 10:51, April 2, 2022
#content {
background: #fafffe;
border: 0 solid;
margin-bottom: -5em;
margin-left: 12.5em;
margin-top: 156px;
padding-bottom: 50px;
}
#footer {
background: var(--th-color-tertiary) var(--th-nookipedia-footer) repeat-x bottom;
height: 100px;
margin-left: 12.5em;
margin-top: 0;
margin-bottom: 5em;
padding: 1em 1.25em 5em 1.25em;
border-radius: 0 0 0 20px;
background-size: var(--th-footer-size);
}
#footer ul {
padding-top: 0.5em;
}
#left-navigation {
margin-left: 13em;
}
#left-navigation,
#right-navigation {
font-family: Coustard, "Linux Libertine", Georgia, Times, serif;
margin-top: 196px;
}
#mw-page-base,
#right-navigation div.menu ul li {
background: none;
}
#mw-panel {
margin-left: 10px;
top: 45px;
}
#mw-panel .vector-menu-portal .body {
background: var(--sidebar-background);
border-radius: 10px;
padding-bottom: 0.3em;
padding-left: 1.5em;
}
#mw-panel .vector-menu-portal .body ul {
list-style-image: var(--th-list);
}
#mw-panel .vector-menu-portal {
background: var(--sidebar-color);
background-image: none;
border-radius: 10px;
margin: 0 0 10px;
padding: 0.4em;
}
#mw-panel .vector-menu-portal .body {
margin: 0;
padding-top: 7px;
}
#mw-panel .vector-menu-portal h3 {
background: none;
border-radius: 0;
color: var(--sidebar-text);
font-family: Coustard, "Linux Libertine", Georgia, Times, serif;
font-size: 1.2em;
margin: 0;
text-align: center;
}
#mw-head .vector-menu span,
#mw-head .vector-menu-tabs a,
#mw-head .vector-menu-tabs a:visited,
#mw-head .vector-menu-dropdown a,
#mw-head .vector-menu-dropdown a:visited {
color: #67ad42;
}
#p-logo a {
background-position: left;
height: 160px;
width: 179px;
}
#p-personal {
background-color: var(--p-personal-color);
border-radius: 0 0 0 5px;
padding: 5px;
right: 0;
top: 0;
font-family: Coustard, "Linux Libertine", Georgia, Times, serif;
}
#pt-userpage a {
display: inline-block;
}
#p-personal li {
font-size: 0.75em;
}
#pt-anonuserpage,
#pt-userpage a {
background: url(https://dodo.ac/np/images/thumb/8/82/Furniture_NH_Inv_Icon.png/30px-Furniture_NH_Inv_Icon.png) no-repeat;
padding-left: 20px !important;
background-position: -0.3em -0.2em;
background-size: 2.167em 2.167em;
}
#pt-mytalk > .mw-echo-alert {
color: #000;
}
#p-personal li a,
#pt-anonuserpage,
#pt-userpage a {
color: var(--th-p-text-color);
}
.mw-body h1,
.mw-body h2 {
color: var(--th-color-primary);
font-family: Coustard, "Linux Libertine", Georgia, Times, serif;
text-shadow: 0 1px var(--th-color-tertiary);
}
.mw-wiki-logo {
background-image: var(--th-logo);
background-size: 179px;
}
.vectorMenu li {
background: var(--th-color-secondary);
border-radius: 0;
width: 100%;
margin: 0 4px 0 0;
}
body {
background: var(--th-background);
}
body.page-Main_Page h1.firstHeading,
body.page-Main_Page #siteSub {
display: none;
}
.vector-menu-tabs .vector-menu-content ul li,
#mw-head .vectorMenu h3 {
background: var(--th-color-secondary);
border-radius: 10px 10px 0 0;
margin: 0 4px 0 0;
}
.vector-menu-tabs .vector-menu-content ul li.selected {
background: var(--nookipedia-bg-color);
}
#mw-head .vector-menu span,
#mw-head .vector-menu-tabs a,
#mw-head .vector-menu-tabs a:visited,
#mw-head .vector-menu-dropdown a,
#mw-head .vector-menu-dropdown a:visited {
color: var(--th-color-primary);
}
/* Hide beta social media icons */
#n-Discord,
#n-Facebook,
#n-Twitter,
#n-Instagram {
display: none;
}
/* Style Discord link in sidebar
Adapted with permission from Runescape Wiki implementation by User: JaydenKieran
https: //runescape.wiki/w/MediaWiki: Vector.css
https: //runescape.wiki/w/User: JaydenKieran */
#p-Community #n-Discord-Server {
list-style-image: none;
}
#p-Community #n-Discord-Server a {
background-color: #5865F2;
border-radius: 5px;
color: #fff;
display: block;
font-size: 12px;
font-weight: 700;
left: -18px;
padding: 6px 0 5px calc(21px + 5.5px * 2);
position: relative;
transition: 0.2s ease;
width: 103px;
}
#p-Community #n-Discord-Server a::before {
font-weight: 400;
}
#p-Community #n-Discord-Server a::after {
background: url(https://dodo.ac/np/images/f/f6/Discord_Icon_White.svg) no-repeat;
background-size: 17px 13px;
content: "";
height: 13px;
left: 7px;
position: absolute;
top: 5px;
width: 25px;
}
#p-Community #n-Discord-Server a:hover {
background-color: #1122d7;
text-decoration: none;
}
/* Vector fixes */
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown h3 {
background-image: none;
}
.mw-logo-wordmark {
color: transparent;
font-size: 1.3em;
font-family: "Coustard", sans-serif;
font-weight: bold;
}
.mw-logo-container {
background: var(--th-nookipedia-text) no-repeat;
background-size: 120px;
}
.skin-vector #content {
background: var(--nookipedia-bg-color);
margin-top: var(--vector-hcon,45px);
margin-bottom: 0;
padding-bottom: 20px;
}
.skin-vector #left-navigation,
.skin-vector #right-navigation {
margin-top: var(--vector-hnav,114px);
}
.mw-prefs-buttons {
background: var(--nookipedia-bg-color);
}
/* Categories */
#catlinks {
display: inherit;
border-top: 3px solid #cccccc;
padding-bottom: 2em;
margin: 0 0.2em;
padding: 0.5em 0 0.5em;
}
.catlinks {
border: transparent;
background-color: transparent;
}
#mw-head {
background: var(--th-leaves);
border-bottom: var(--border);
background-repeat: repeat-x;
height: var(--height);
background-size: var(--th-leaves-size);
}
/* Parity with Nookipedia Timeless */
/* TOC adjustments */
.mw-body .mw-parser-output h2 {
border-bottom: 0;
font-family: 'Coustard';
font-weight: normal;
text-align: left;
margin: 1.5em 0 0.5em;
text-shadow: 0 1px var(--th-color-shadow);
color: var(--th-color-primary);
overflow: visible;
}
.toc {
background-color: var(--th-img-thumbnail);
border: none;
border-radius: 10px;
box-shadow: none;
}
.mw-body .mw-parser-output h1::after, .mw-body .mw-parser-output h2::after {
content: '';
display: block;
border-bottom: solid 2px #A2A9B1;
overflow: hidden;
}
.mw-body .toc h2 {
font-size: 1em;
margin: 0;
display: inline;
font-weight: normal;
}
.toc .toctitle {
direction: ltr;
text-align: left;
}
.mw-body .mw-parser-output h1::after, .mw-body .mw-parser-output h2::after {
content: '';
display: block;
border-bottom: solid 2px #A2A9B1;
overflow: hidden;
margin-top: 0.1em;
}
.toctogglespan {
float: right;
}
div.toc {
background-color: var(--th-img-thumbnail);
border: none;
border-radius: 10px;
box-shadow: none;
display: table;
padding: 1.25em 1.75em;
margin-top: 1em;
margin-bottom: 1em;
min-width: 15em;
}
/* Image thumbnail adjustments */
div.thumbinner {
background-color: var(--th-img-thumbnail);
border: none;
border-radius: 10px;
box-shadow: none;
min-width: 120px;
text-align: center;
padding: 0.75em;
margin-left: auto;
margin-right: auto;
}
div.thumbinner .thumbimage {
border: none;
border-radius: 5px;
background: transparent;
}
.topicon {
right:30px;
position: absolute;
top: 6em;
display: block;
}
/* Legacy Vector fixes */
.skin-vector-legacy #left-navigation,
.skin-vector-legacy #right-navigation {
margin-top: var(--vector-legacy-hnav,224px);
}
.skin-vector-legacy #content {
background: var(--nookipedia-bg-color);
margin-top: var(--vector-legacy-hcon,184px);
margin-bottom: 0;
padding-bottom: 20px;
}
/* Temporarily main page fixes */
.nookipedia-logo {
background-image: var(--th-nookipedia-text-main-page) !important;
}
.social-icon-discord {
background-image: var(--th-discord) !important;
}
.social-icon-twitter {
background-image: var(--th-twitter) !important;
}
.social-icon-instagram {
background-image: var(--th-instagram) !important;
}
.social-icon-facebook {
background-image: var(--th-facebook) !important;
}