MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
idt we can do parallel imports, we can move them all to gadgets shortly TM but for now here just to see how it looks |
No edit summary |
||
| (15 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Vector skin */ | /* All CSS here will be loaded for users of the Vector skin */ | ||
/* | /* Theme BG */ | ||
:root, .wgl-lightmode, .wgl-theme-light { | |||
--body-background-image: url("https://hna.wiki/images/Site-background-light.jpeg"); | |||
--body-background-image-fallback: lightblue; | |||
} | |||
:root .wgl-darkmode, :root .wgl-theme-dark { | |||
--body-background-image: url("https://hna.wiki/images/Site-background-dark"); | |||
--body-background-image-fallback: darkblue; | |||
} | |||
: | body { | ||
-- | background: var(--body-background-image), var(--body-background-image-fallback); | ||
background-attachment: fixed; | |||
background-repeat: no-repeat; | |||
background-size: cover; | |||
background-position: center; | |||
} | } | ||
#mw-page-base { | |||
background: none; | |||
} | |||
.vector-menu-tabs-legacy li { | |||
background-color: var(--theme-page-background-color--secondary); | |||
} | |||
.vector-menu-tabs-legacy li a { | |||
padding-top: 1em; | |||
} | |||
/* PLACEHOLDER - to be updated later with preferences */ | |||
nav.vector-menu-portal { | |||
background-color: rgba(255, 255, 255, .5); | |||
} | |||
#catlinks { | |||
font-size: small; | |||
} | |||
/* Generic rules */ | |||
.mobileHide, .mobile-only, .no-desktop { display: none; } | .mobileHide, .mobile-only, .no-desktop { display: none; } | ||
| Line 194: | Line 205: | ||
} | } | ||
/* For [[ | /* For [[T:Rubi]] */ | ||
. | .rubi-large { | ||
font-size: 250%; | |||
} | } | ||
.rubi-large > :is(rt, rp) { | |||
. | font-size: small; | ||
} | } | ||
.rubi-center > :is(rt, rp) { | |||
ruby-align: center; | |||
} | } | ||
/* Fix ugly math padding */ | /* Fix ugly math padding */ | ||
| Line 237: | Line 234: | ||
flex: 0 0 200px; | flex: 0 0 200px; | ||
height: 110px; | height: 110px; | ||
background-image: url(https://hna.wiki/images/Unknown.png); | background-image: url("https://hna.wiki/images/Unknown.png"); | ||
background-size: contain; | background-size: contain; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
| Line 278: | Line 275: | ||
body.action-view #p-views li#ca-view { | body.action-view #p-views li#ca-view { | ||
display: none !important; | display: none !important; | ||
} | |||
#p-Navigation ul.vector-menu-content-list { | |||
padding-top: 0.1em; | |||
} | |||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading { | |||
background: var(--background-color-base-subtle) !important; | |||
padding: 0.3em 0.6em; | |||
font-weight:bold; | |||
color: var(--theme-link-color); | |||
margin: unset !important; | |||
} | |||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a, | |||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited { | |||
color: var(--alt-link-color) !important; | |||
} | |||
#mw-panel.vector-legacy-sidebar > nav.mw-portlet { | |||
padding: 0.4em 0.3em; | |||
margin: 0 0 0.5em 0; | |||
background-color: var(--background-color-base); | |||
border: 2px solid var(--theme-accent-color); | |||
} | |||
.skin-vector-legacy #pt-uls .uls-trigger::before { | |||
top: 2px; | |||
position: relative; | |||
} | |||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading { | |||
background-image: none !important | |||
} | |||
#p-logo + .mw-portlet .vector-menu-heading { | |||
display: block !important; | |||
} | |||
#p-logo { | |||
margin-bottom: 0; | |||
} | |||
#mw-indicator-protection-moderator { | |||
display: none | |||
} | |||
/* DISCORD NAVIGATION BUTTON */ | |||
/* Primary button appearance */ | |||
#n-Discord a { | |||
display: block; | |||
padding: 6px 10px 5px 32px; | |||
font-size: 12px; | |||
font-weight: bold; | |||
text-align: center; | |||
text-decoration: none; | |||
background-color: #4f5bdb; | |||
border-radius: 5px; | |||
border-width: 1px; | |||
border-style: solid; | |||
border-color: #6e78ea #212666 #212666 #6e78ea; | |||
box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.37); | |||
transition: all 0.15s ease; | |||
position: relative; | |||
right: -1px; | |||
margin-bottom: 0.5em; | |||
color:white !important; | |||
&:hover { | |||
background-color:#5a67f5; | |||
} | |||
} | |||
/* Reset default sidebar spacing */ | |||
#mw-panel.vector-legacy-sidebar > nav.mw-portlet#p-Discord, | |||
#n-discord, | |||
#p-Discord .vector-menu-content, | |||
#p-Discord .vector-menu-content-list { | |||
margin: 0; | |||
padding: 0; | |||
border: none; | |||
background: transparent; | |||
box-shadow: none; | |||
} | |||
/* Hide section heading */ | |||
#p-logo + .mw-portlet .vector-menu-heading { | |||
display: none !important; | |||
} | |||
/* Add text prefix */ | |||
#n-Discord a::before { | |||
content: "Join our "; | |||
font-weight: normal; | |||
} | |||
/* Discord icon positioning */ | |||
#n-Discord a::after { | |||
content: ''; | |||
position: absolute; | |||
left: 10px; | |||
width: 17px; | |||
height: 13px; | |||
background-image: url(https://deadlock.wiki/images/4/4c/Discord-Symbol-White.svg); | |||
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1)); | |||
} | |||
.cdx-button:enabled:hover, | |||
.cdx-button.cdx-button--fake-button--enabled:hover { | |||
background-color: #2b1e18; | |||
border-color: #6e6e6e; | |||
cursor: pointer; | |||
} | |||
#skin-client-prefs-skin-theme { | |||
display: none | |||
} | |||
/* RECENT CHANGES SIDEBAR */ | |||
#p-Recent_Changes{ | |||
height: 192.703px; | |||
display: none; | |||
} | |||
#n-rc-skeleton{ | |||
display:none; | |||
} | } | ||
Latest revision as of 09:57, 14 July 2026
/* All CSS here will be loaded for users of the Vector skin */
/* Theme BG */
:root, .wgl-lightmode, .wgl-theme-light {
--body-background-image: url("https://hna.wiki/images/Site-background-light.jpeg");
--body-background-image-fallback: lightblue;
}
:root .wgl-darkmode, :root .wgl-theme-dark {
--body-background-image: url("https://hna.wiki/images/Site-background-dark");
--body-background-image-fallback: darkblue;
}
body {
background: var(--body-background-image), var(--body-background-image-fallback);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
#mw-page-base {
background: none;
}
.vector-menu-tabs-legacy li {
background-color: var(--theme-page-background-color--secondary);
}
.vector-menu-tabs-legacy li a {
padding-top: 1em;
}
/* PLACEHOLDER - to be updated later with preferences */
nav.vector-menu-portal {
background-color: rgba(255, 255, 255, .5);
}
#catlinks {
font-size: small;
}
/* Generic rules */
.mobileHide, .mobile-only, .no-desktop { display: none; }
.no-border { border: none !important; }
.no-wrap { white-space: nowrap; }
.align-right { text-align: right; }
.align-center { text-align: center; }
.align-left { text-align: left; }
.cont-inline-block { display: inline-block; }
.cont-flex { display: flex; flex-wrap: wrap; }
.cont-inline-flex { display: inline-flex; flex-wrap: wrap; }
/* nowrap for nth child (add as we go) */
.nowrap-1 td:nth-child(1),
.nowrap-2 td:nth-child(2),
.nowrap-3 td:nth-child(3) { white-space: pre; }
hr {
margin: 5px 0;
border: none;
height: 1px;
color: var(--theme-border-color);
background-color: var(--theme-border-color);
}
/* Hatnote styling */
.hatnote {
border-left: 3px solid var(--theme-accent-color);
padding: 3px 10px;
border-radius: 3px;
background: linear-gradient(145deg, rgba(var(--theme-accent-color--rgb),0.15) 0%, rgba(var(--theme-accent-color--rgb),0) 100%);
margin: 5px 0;
}
/* Description list in table */
.mw-parser-output table dl { margin: 0; }
/* Making paragraphs more apparent by incresing line height */
.mw-parser-output p {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
/* Column template fix */
.mw-parser-output .columntemplate ul,
.mw-parser-output .columntemplate ol { margin: 0 0 0 30px; }
.mw-parser-output .columntemplate { margin: 6px 0 6px 0; }
/* Reduce bottom margin of lists */
.mw-parser-output ol, .mw-parser-output ul { margin: 6px 0 6px 36px; }
/* inline unordered list seperated by pipe */
.mw-content-ltr ul.pipe_delimit { margin: 0px; }
.mw-content-ltr ul.pipe_delimit li { display:inline; }
.mw-content-ltr ul.pipe_delimit li + li::before { content: " | "; }
/* [[Template:Fairuse]] */
.mw-parser-output .fairuse { border-collapse: collapse; }
.mw-parser-output .fairuse th {
background: var(--theme-accent-color);
text-transform: uppercase;
font-weight: 700;
text-align: center;
}
.mw-parser-output .fairuse td,
.mw-parser-output .fairuse tr { border: 1px solid var(--theme-border-color); }
.mw-parser-output .fairuse tr:nth-child(2) td { padding: 0.5em 1em; }
.mw-parser-output .fairuse tr:nth-child(3) td {
padding: 1em;
font-size: 0.8em;
}
.fairuse-disclaimer {
display: inline-block;
background: var(--theme-accent-color);
font-weight: 700;
padding: 0 5px;
margin-right: 5px;
}
/* Template:Description Sibling margin */
.description-wrapper + .description-wrapper { margin-top: 1em; }
/* Styling for <templatedata> parameter and alias */
.mw-templatedata-doc-param-name code {
background-color: var(--theme-page-background-color--secondary);
border-radius: 2px;
padding: 1px 4px;
}
/* Styling for <templatedata> Suggested values */
.mw-templatedata-doc-params td dd code {
display: list-item;
width: fit-content;
line-height: 18px;
}
/* Styling for <templatedata> edit header, brackets, and formatting */
.mw-templatedata-doc-params caption {
margin: 0.2em 0.4em;
.mw-templatedata-caption {
font-size: 1.2em;
font-weight: bold;
.mw-editsection-like {
font-size: small;
font-weight: normal;
margin-left: 8px;
.mw-editsection-bracket {
display: inline;
}
}
}
p {
.oo-ui-widget {
display: none;
}
.mw-templatedata-format {
margin-left: 0;
}
}
}
/* MediaWiki:Edittools styling */
.edittools-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 3px;
}
.edittools-list > code {
display: flex;
gap: 2px;
}
.edittools-list div.mw-collapsible {
padding: 0;
display: inline;
}
.edittools-list span.mw-collapsible-toggle { padding: 0 3px; }
.edittools-wrapper {
display: flex;
flex-direction: column;
gap: 5px;
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 8px;
font-size: small
}
#edittools-description {
margin-top: 1em;
margin-bottom: 0.7em;
}
/* For [[T:Rubi]] */
.rubi-large {
font-size: 250%;
}
.rubi-large > :is(rt, rp) {
font-size: small;
}
.rubi-center > :is(rt, rp) {
ruby-align: center;
}
/* Fix ugly math padding */
.mwe-math-fallback-image-inline { padding: 0 }
/* For [[Template:Handbook]], from GIW */
.handbook dd { margin-left: 0; }
.handbook .handbook-detail {
display: flex;
gap: 4px;
align-items: flex-start;
margin: 10px 0;
}
.handbook .handbook-detail > a.image { overflow: visible !important; }
.handbook .handbook-detail > a.new {
flex: 0 0 200px;
height: 110px;
background-image: url("https://hna.wiki/images/Unknown.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
font-size: 0;
}
.mw-parser-output .dialogue .handbook dt {
font-weight: 700;
font-style: inherit;
font-size: inherit;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 12px !important;
-webkit-overflow-scrolling: auto !important;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
-webkit-border-radius: 10px !important;
border-radius: 10px !important;
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px !important;
border-radius: 10px !important;
background: #73ebe9 !important;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) !important;
}
::-webkit-scrollbar-thumb:window-inactive {
background: #73ebe9 !important;
}
/* Remove coloring on parameter aliases on template data as it makes text hard to read */
.mw-templatedata-doc-param-alias { color: inherit; }
/* Hide "Read" tab */
body.action-view #p-views li#ca-view {
display: none !important;
}
#p-Navigation ul.vector-menu-content-list {
padding-top: 0.1em;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
background: var(--background-color-base-subtle) !important;
padding: 0.3em 0.6em;
font-weight:bold;
color: var(--theme-link-color);
margin: unset !important;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited {
color: var(--alt-link-color) !important;
}
#mw-panel.vector-legacy-sidebar > nav.mw-portlet {
padding: 0.4em 0.3em;
margin: 0 0 0.5em 0;
background-color: var(--background-color-base);
border: 2px solid var(--theme-accent-color);
}
.skin-vector-legacy #pt-uls .uls-trigger::before {
top: 2px;
position: relative;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
background-image: none !important
}
#p-logo + .mw-portlet .vector-menu-heading {
display: block !important;
}
#p-logo {
margin-bottom: 0;
}
#mw-indicator-protection-moderator {
display: none
}
/* DISCORD NAVIGATION BUTTON */
/* Primary button appearance */
#n-Discord a {
display: block;
padding: 6px 10px 5px 32px;
font-size: 12px;
font-weight: bold;
text-align: center;
text-decoration: none;
background-color: #4f5bdb;
border-radius: 5px;
border-width: 1px;
border-style: solid;
border-color: #6e78ea #212666 #212666 #6e78ea;
box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.37);
transition: all 0.15s ease;
position: relative;
right: -1px;
margin-bottom: 0.5em;
color:white !important;
&:hover {
background-color:#5a67f5;
}
}
/* Reset default sidebar spacing */
#mw-panel.vector-legacy-sidebar > nav.mw-portlet#p-Discord,
#n-discord,
#p-Discord .vector-menu-content,
#p-Discord .vector-menu-content-list {
margin: 0;
padding: 0;
border: none;
background: transparent;
box-shadow: none;
}
/* Hide section heading */
#p-logo + .mw-portlet .vector-menu-heading {
display: none !important;
}
/* Add text prefix */
#n-Discord a::before {
content: "Join our ";
font-weight: normal;
}
/* Discord icon positioning */
#n-Discord a::after {
content: '';
position: absolute;
left: 10px;
width: 17px;
height: 13px;
background-image: url(https://deadlock.wiki/images/4/4c/Discord-Symbol-White.svg);
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}
.cdx-button:enabled:hover,
.cdx-button.cdx-button--fake-button--enabled:hover {
background-color: #2b1e18;
border-color: #6e6e6e;
cursor: pointer;
}
#skin-client-prefs-skin-theme {
display: none
}
/* RECENT CHANGES SIDEBAR */
#p-Recent_Changes{
height: 192.703px;
display: none;
}
#n-rc-skeleton{
display:none;
}