User:Cryebunnie/vector.css: Difference between revisions
Jump to navigation
Jump to search
Cryebunnie (talk | contribs) No edit summary |
Erin Umbreon (talk | contribs) Replaced content with "→New font for headers & navigation to replace EasonPro: @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&display=swap'); :root { --text-color: #36414f; --font-family-body: "IBM Plex Sans JP", sans-serif; --font-family-heading: "IBM Plex Sans JP", sans-serif; } →Adjust padding on sidebar to account for white background: #mw-panel .portal { font-family: "IBM Plex Sans JP", sans-serif; margin-bo..." Tag: Replaced |
||
| Line 1: | Line 1: | ||
/* New font for headers & navigation to replace EasonPro */ | /* New font for headers & navigation to replace EasonPro */ | ||
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&display=swap'); | ||
:root { | :root { | ||
--text-color: #36414f; | --text-color: #36414f; | ||
--font-family-body: "IBM Plex Sans JP", sans-serif; | |||
--font-family-heading: "IBM Plex Sans JP", sans-serif; | |||
} | } | ||
/* Adjust padding on sidebar to account for white background */ | /* Adjust padding on sidebar to account for white background */ | ||
#mw-panel .portal { | #mw-panel .portal { | ||
font-family: "IBM Plex Sans JP", sans-serif; | font-family: "IBM Plex Sans JP", sans-serif; | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
padding: 0. | padding: 0.5rem 0; | ||
direction: ltr; | direction: ltr; | ||
background: white; | background: white; | ||
border-radius: 6px; | border-radius: 6px; | ||
padding: 10px; | padding: 10px; | ||
font-weight:normal; | font-weight: normal; | ||
} | } | ||
/* Remove bold from sidebar links */ | /* Remove bold from sidebar links */ | ||
div#mw-panel ul.vector-menu-content-list > li > a { | div#mw-panel ul.vector-menu-content-list > li > a { | ||
font-weight: normal; | |||
font-weight:normal; | |||
} | } | ||
/* Change personal navigation menu text to white */ | /* Change personal navigation menu text and icons to white */ | ||
#p-personal { | |||
color: #FFFFFF; | |||
} | |||
#p-personal a { | #p-personal a { | ||
color: | color: inherit; | ||
} | } | ||
/* Change color and borders of head */ | /* Change color and borders of head */ | ||
:root { | |||
--mw-head-height: 40px; | |||
} | |||
#mw-head-base { | #mw-head-base { | ||
background: #535353; | background: #535353; | ||
| Line 103: | Line 45: | ||
border-bottom: 0px; | border-bottom: 0px; | ||
bottom: 0; | bottom: 0; | ||
height: | height: var(--mw-head-height); | ||
margin-top: - | margin-top: calc(-1 * var(--mw-head-height)); | ||
} | } | ||
/* Change font color and weight in head */ | /* Change font color and weight in head */ | ||
div#mw-head .vector-menu-tabs li a { | div#mw-head .vector-menu-tabs li a, | ||
color:#ffffff; | .vector-menu-dropdown .vector-menu-heading { | ||
font-weight:400; | color: #ffffff; | ||
font-weight: 400; | |||
/* Center tab text vertically */ | |||
height: var(--mw-head-height); | |||
padding-block: 0; | |||
display: flex; | |||
align-items: center; | |||
} | } | ||
| Line 122: | Line 71: | ||
/* Change selected tab color and font color in head */ | /* Change selected tab color and font color in head */ | ||
div#mw-head ul.vector-menu-content-list > li.selected { | div#mw-head ul.vector-menu-content-list > li.selected { | ||
background-color:#FFFFFF; | background-color: #FFFFFF; | ||
color:#000000; | color: #000000; | ||
font-weight:600; | font-weight: 600; | ||
} | |||
/* fix watchlink icon overlapping with hidden label text */ | |||
div#mw-head .vector-menu-tabs .mw-watchlink.icon a { | |||
text-indent: 9999px; | |||
} | } | ||
/* Remove left padding of tab menu */ | /* Remove left padding of tab menu */ | ||
.vector-menu-tabs-legacy { | .vector-menu-tabs-legacy { | ||
padding-left: 0px; | |||
} | } | ||
| Line 145: | Line 99: | ||
/* Change font color of 'More' tab to white */ | /* Change font color of 'More' tab to white */ | ||
.vector-menu-dropdown .vector-menu-heading { | .vector-menu-dropdown .vector-menu-heading { | ||
color:white; | |||
} | } | ||
body { | body { | ||
background-color: rgb(218,232,247); | background-color: rgb(218,232,247); | ||
background-position-x: 0%, 0%; | background-position-x: 0%, 0%; | ||
| Line 3,389: | Line 117: | ||
background-origin: padding-box, padding-box; | background-origin: padding-box, padding-box; | ||
background-clip: border-box, border-box; | background-clip: border-box, border-box; | ||
font-family: | font-family: var(--font-family-body); | ||
} | } | ||
.mw-body h1, | |||
.mw-body h2 { | |||
font-family: var(--font-family-heading); | |||
font-weight: 500; | |||
.mw- | |||
} | } | ||
Revision as of 21:34, 16 March 2026
/* New font for headers & navigation to replace EasonPro */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&display=swap');
:root {
--text-color: #36414f;
--font-family-body: "IBM Plex Sans JP", sans-serif;
--font-family-heading: "IBM Plex Sans JP", sans-serif;
}
/* Adjust padding on sidebar to account for white background */
#mw-panel .portal {
font-family: "IBM Plex Sans JP", sans-serif;
margin-bottom: 10px;
padding: 0.5rem 0;
direction: ltr;
background: white;
border-radius: 6px;
padding: 10px;
font-weight: normal;
}
/* Remove bold from sidebar links */
div#mw-panel ul.vector-menu-content-list > li > a {
font-weight: normal;
}
/* Change personal navigation menu text and icons to white */
#p-personal {
color: #FFFFFF;
}
#p-personal a {
color: inherit;
}
/* Change color and borders of head */
:root {
--mw-head-height: 40px;
}
#mw-head-base {
background: #535353;
border-top: 0px;
border-left: 0px;
border-right: 0px;
border-bottom: 0px;
bottom: 0;
height: var(--mw-head-height);
margin-top: calc(-1 * var(--mw-head-height));
}
/* Change font color and weight in head */
div#mw-head .vector-menu-tabs li a,
.vector-menu-dropdown .vector-menu-heading {
color: #ffffff;
font-weight: 400;
/* Center tab text vertically */
height: var(--mw-head-height);
padding-block: 0;
display: flex;
align-items: center;
}
/* Change font color and weight of selected tab */
div#mw-head .vector-menu-tabs-legacy .selected a,
div#mw-head .vector-menu-tabs-legacy .selected a:visited {
color:#000;
font-weight:600;
}
/* Change selected tab color and font color in head */
div#mw-head ul.vector-menu-content-list > li.selected {
background-color: #FFFFFF;
color: #000000;
font-weight: 600;
}
/* fix watchlink icon overlapping with hidden label text */
div#mw-head .vector-menu-tabs .mw-watchlink.icon a {
text-indent: 9999px;
}
/* Remove left padding of tab menu */
.vector-menu-tabs-legacy {
padding-left: 0px;
}
/* Remove border from body and add dropshadow*/
@media screen {
.mw-body {
color:var(--text-color);
margin-top: 0px;
border: 0px;
border-right-width: 0px;
box-shadow: 0 4px 16px #0003;
}
}
/* Change font color of 'More' tab to white */
.vector-menu-dropdown .vector-menu-heading {
color:white;
}
body {
background-color: rgb(218,232,247);
background-position-x: 0%, 0%;
background-position-y: 0%, 0%;
background-attachment: scroll, scroll;
background-image: linear-gradient(
to bottom,
rgb(55, 91, 153) 0px,
rgb(54, 103, 175) 100px,
rgb(59, 124, 190) 400px,
rgb(218,232,247) 900px
);
background-size: auto, auto;
background-origin: padding-box, padding-box;
background-clip: border-box, border-box;
font-family: var(--font-family-body);
}
.mw-body h1,
.mw-body h2 {
font-family: var(--font-family-heading);
font-weight: 500;
}