MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* hide-upv2-edit */
@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito+Sans:wght@400;600;700;800&display=swap");
:root,
html.skin-theme-clientpref-night,
html.skin-theme-clientpref-os {
--ab-bg: #18181c;
--ab-panel: #202026;
--ab-surface: #2a2a30;
--ab-border: #37373e;
--ab-border-hover: #46464e;
--ab-text: #f0f0f5;
--ab-muted: #a0a0aa;
--ab-link: #6496ff;
--ab-link-hover: #78aaff;
--ab-link-stroke: #4669b2;
--ab-font: "Nunito Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
--ab-display: "Fredoka One", cursive;
--ab-btn-text-size: 14px;
--color-surface-0: var(--ab-bg);
--color-surface-1: var(--ab-panel);
--color-surface-2: var(--ab-surface);
--color-surface-3: #32323a;
--color-surface-4: #3a3a44;
--color-base: var(--ab-text);
--color-subtle: var(--ab-muted);
--color-progressive: var(--ab-link);
--color-progressive--hover: var(--ab-link-hover);
--color-link: var(--ab-link);
--color-visited: #78aaff;
--border-color-base: var(--ab-border);
--font-family-base: var(--ab-font);
--font-family-heading: var(--ab-display);
--font-family-citizen-base: "Nunito Sans";
}
html {
color-scheme: dark;
background: var(--ab-bg);
}
body.skin-citizen {
font-family: var(--ab-font);
background: var(--ab-bg);
color: var(--ab-text);
}
.skin-citizen .mw-body h1,
.skin-citizen .firstHeading,
.skin-citizen h1,
.skin-citizen h2,
.skin-citizen h3,
.skin-citizen h4,
.skin-citizen h5,
.skin-citizen h6 {
font-family: var(--ab-display);
font-weight: 400;
}
.skin-citizen a {
color: var(--ab-link);
}
.skin-citizen a:hover {
color: var(--ab-link-hover);
}
.profile-header-attributes > h2,
.profile-avatar-edit-action,
.profile-header-actions,
#userProfileV2-edit,
.profile-externalLinks,
.profile-header-about {
display: none !important;
}
#ab-hide-upv2-edit {
display: none;
}
#ca-ab-central a span:last-child {
white-space: nowrap;
}
#ca-ab-central .ab-central-icon,
#ca-ab-central .ab-central-icon svg {
display: block;
width: 20px;
height: 20px;
flex-shrink: 0;
}
.portable-infobox.ab-infobox {
float: right;
clear: right;
width: 270px;
margin: 0 0 1.2em 1.2em;
background: var(--ab-panel);
border: 1px solid var(--ab-border);
color: var(--ab-text);
}
.portable-infobox.ab-infobox .pi-title {
font-family: var(--ab-display);
font-weight: 400;
text-align: center;
background: transparent;
margin: 0;
padding: 0.55em 0.75em;
border: 0;
}
.portable-infobox.ab-infobox .pi-image {
margin: 0;
background: var(--ab-surface);
}
.portable-infobox.ab-infobox .pi-data {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
gap: 0.5em;
padding: 0.35em 0.75em;
overflow: hidden;
}
.portable-infobox.ab-infobox .pi-data-label,
.portable-infobox.ab-infobox h3.pi-data-label,
.portable-infobox.ab-infobox .pi-data-value {
font-family: var(--ab-font);
font-size: 0.875rem;
font-weight: 600;
line-height: 1.3;
margin: 0;
padding: 0;
border: 0;
background: transparent;
}
.portable-infobox.ab-infobox .pi-data-label {
color: var(--ab-muted);
flex: 0 0 42%;
}
.portable-infobox.ab-infobox .pi-data-value {
flex: 1 1 auto;
text-align: right;
}
.portable-infobox.ab-infobox .pi-navigation {
text-align: center;
background: transparent;
margin: 0;
padding: 0.55em 0.75em;
}
.ab-level-thumb,
.ab-player-thumb {
display: block;
width: 100%;
height: auto;
background: var(--ab-surface);
}
.ab-player-infobox .pi-image {
aspect-ratio: 1 / 1;
overflow: hidden;
}
.ab-player-thumb {
height: 100%;
object-fit: cover;
}
.ab-infobox-central,
.ab-level-central {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4em;
color: var(--ab-link);
font-weight: 700;
text-decoration: none;
}
.ab-infobox-central:hover,
.ab-level-central:hover {
color: var(--ab-link-hover);
}
.ab-infobox-central .ab-central-icon,
.ab-infobox-central .ab-central-icon svg,
.ab-level-central .ab-central-icon,
.ab-level-central .ab-central-icon svg {
display: block;
width: 16px;
height: 16px;
flex-shrink: 0;
}
.ab-difficulty {
font-weight: 700;
}
.portable-infobox.ab-infobox .pi-data-value.ab-difficulty-1,
.ab-inline-level.ab-difficulty-1 {
color: #4caf50;
}
.portable-infobox.ab-infobox .pi-data-value.ab-difficulty-2,
.ab-inline-level.ab-difficulty-2 {
color: #e6aa14;
}
.portable-infobox.ab-infobox .pi-data-value.ab-difficulty-3,
.ab-inline-level.ab-difficulty-3 {
color: #f44336;
}
.portable-infobox.ab-infobox .pi-data-value.ab-difficulty-4,
.ab-inline-level.ab-difficulty-4 {
color: #9c27b0;
}
.roblox-asset {
margin: 0 0 1em;
max-width: 100%;
box-sizing: border-box;
}
.roblox-asset img,
.roblox-asset-img {
display: block;
max-width: 100%;
height: auto;
background: none;
object-fit: contain;
}
.roblox-asset:not(.roblox-asset--inline) .roblox-asset-img--pending {
min-width: 80px;
min-height: 80px;
background: var(--ab-surface);
}
.roblox-asset.roblox-asset--inline {
display: inline-block;
margin: 0 0.12em;
max-width: none;
vertical-align: middle;
line-height: 1;
}
.roblox-asset.roblox-asset--inline img,
.roblox-asset.roblox-asset--inline .roblox-asset-img {
display: inline-block;
vertical-align: middle;
background: none;
}
.roblox-asset--right {
float: right;
clear: right;
margin: 0 0 1em 1.2em;
}
.roblox-asset--left {
float: left;
clear: left;
margin: 0 1.2em 1em 0;
}
.roblox-asset--center {
display: block;
float: none;
margin: 0 auto 1em;
}
.roblox-asset figcaption {
margin: 0.35em 0 0;
padding: 0;
color: var(--ab-muted);
font-size: 0.75rem;
font-weight: 400;
line-height: 1.35;
text-align: center;
}
.roblox-asset-link {
display: block;
color: inherit;
text-decoration: none;
}
.roblox-asset.roblox-asset--inline .roblox-asset-link {
display: inline-block;
vertical-align: middle;
line-height: 0;
}
.ab-btn,
.ab-home-cats a {
--btn-fill: var(--ab-surface);
--btn-stroke: var(--ab-border);
--btn-fg: var(--ab-text);
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
isolation: isolate;
font-family: var(--ab-display);
font-weight: 400;
font-synthesis: none;
font-size: var(--ab-btn-text-size);
letter-spacing: 0.02em;
color: var(--btn-fg);
background: var(--btn-fill);
border: 3px solid var(--btn-stroke);
border-radius: 4px;
padding: 9px 16px;
line-height: 1;
white-space: nowrap;
overflow: hidden;
text-decoration: none;
transform: scale(1);
transition:
transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
filter 0.15s ease;
user-select: none;
-webkit-tap-highlight-color: transparent;
cursor: pointer;
}
.ab-btn::before,
.ab-home-cats a::before {
content: "";
position: absolute;
inset: 0;
border-radius: 1px;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.18) 0%,
rgba(255, 255, 255, 0) 42%,
rgba(0, 0, 0, 0.28) 100%
);
pointer-events: none;
z-index: 0;
}
.ab-btn > *,
.ab-home-cats a > * {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
gap: 6px;
color: inherit;
}
.ab-btn:hover,
.ab-home-cats a:hover {
transform: scale(1.03);
filter: brightness(1.06);
text-decoration: none;
}
.ab-btn:active,
.ab-home-cats a:active {
transform: scale(0.92);
transition-duration: 0.08s;
}
.ab-btn-secondary,
.ab-home-cats a {
--btn-fill: var(--ab-panel);
--btn-stroke: var(--ab-border);
--btn-fg: var(--ab-text);
}
.ab-btn-secondary:hover,
.ab-home-cats a:hover {
--btn-fill: var(--ab-surface);
--btn-stroke: var(--ab-border-hover);
}
.ab-btn-brand {
--btn-fill: var(--ab-link);
--btn-stroke: var(--ab-link-stroke);
--btn-fg: #ffffff;
}
.skin-citizen a.ab-btn,
.skin-citizen a.ab-btn:hover,
.skin-citizen a.ab-btn:visited,
.skin-citizen a.ab-btn.new,
.skin-citizen a.ab-btn.new:visited,
.skin-citizen .ab-home-cats a,
.skin-citizen .ab-home-cats a:hover,
.skin-citizen .ab-home-cats a:visited,
.skin-citizen .ab-home-cats a.new,
.skin-citizen .ab-home-cats a.new:visited {
color: var(--btn-fg) !important;
text-decoration: none !important;
background: var(--btn-fill);
}
.page-Main_Page .mw-body-header,
.page-Main_Page .firstHeading,
.page-Main_Page .citizen-page-header,
.page-Main_Page .citizen-page-heading,
.page-Main_Page #toc,
.page-Main_Page .toc,
.page-Main_Page .citizen-toc,
.page-Main_Page #ext-comments-container,
.page-Main_Page .ext-comments-comments-list,
.page-Main_Page .comment-list-toolbar {
display: none !important;
}
.ab-home {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
padding: 1.5rem 0 2.5rem;
}
.ab-home-logo {
width: min(540px, 92vw);
height: 180px;
background: url(/images/ab-home-logo.png) center / contain no-repeat;
}
.ab-home-cats {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
width: min(920px, 100%);
}
.ab-home-cats a {
width: 100%;
min-width: 0;
height: 100%;
box-sizing: border-box;
padding: 12px 8px;
font-size: 15px;
white-space: normal;
text-align: center;
line-height: 1.15;
}
@media (max-width: 720px) {
.ab-home-cats {
grid-template-columns: 1fr;
}
}