MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Esportsamaze (talk | contribs) No edit summary |
Esportsamaze (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* --- 1. | /* --- CITIZEN SKIN INFOBOX --- */ | ||
/* 1. Base Layout & Shape */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
| Line 5: | Line 7: | ||
width: 300px; | width: 300px; | ||
padding: 0; | padding: 0; | ||
margin-left: | margin-left: 1rem; | ||
margin-bottom: | margin-bottom: 1rem; | ||
font-size: | font-size: 0.9rem; | ||
border-radius: var(--border-radius-base, 4px); /* Matches Citizen rounded corners */ | |||
overflow: hidden; | overflow: hidden; | ||
box-shadow: var(--box-shadow-card, 0 2px 8px rgba(0,0,0,0.1)); /* Uses Citizen shadow if available */ | |||
/* | /* Variable Fallbacks for seamless integration */ | ||
background-color: # | background-color: var(--background-color-surface, #ffffff); | ||
border: 1px solid # | border: 1px solid var(--border-color-base, #eaecf0); | ||
color: #202122; | color: var(--color-base, #202122); | ||
} | } | ||
/* 2. Header (Liquipedia Blue) */ | |||
.infobox-header { | .infobox-header { | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
padding: | padding: 12px; | ||
font-size: 1. | font-size: 1.1rem; | ||
/* | /* Force Liquipedia Blue in Light Mode */ | ||
background-color: #2b7bb9; | background-color: #2b7bb9; | ||
color: #ffffff; | color: #ffffff; | ||
} | } | ||
/* 3. Image Area */ | |||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
padding: 15px 0; | padding: 15px 0; | ||
background-color: var(--background-color-base, #ffffff); | |||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | |||
background-color: #ffffff; | |||
border-bottom: 1px solid #eaecf0; | |||
} | } | ||
/* 4. Rows & Text */ | |||
.infobox-row { | .infobox-row { | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
padding: | padding: 10px 12px; | ||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | |||
line-height: 1.5; | |||
border-bottom: 1px solid #eaecf0; | |||
} | } | ||
| Line 51: | Line 52: | ||
width: 90px; | width: 90px; | ||
min-width: 90px; | min-width: 90px; | ||
padding-right: | padding-right: 12px; | ||
font-weight: | font-weight: 600; | ||
opacity: 0. | opacity: 0.8; | ||
} | } | ||
/* --- | /* --- CITIZEN DARK MODE OVERRIDES --- */ | ||
/* Citizen uses this specific class on the HTML tag */ | |||
/* | html.skin-citizen-dark .infobox-header { | ||
html.skin- | background-color: #3a6c8e; /* Muted Blue for Dark Mode */ | ||
color: #ffffff; | |||
border-bottom: 1px solid var(--border-color-base); | |||
background-color: #3a6c8e | |||
color: #ffffff | |||
border-bottom: 1px solid | |||
} | } | ||
/* | /* Optional: Make the image background match the card in dark mode */ | ||
html.skin-citizen-dark .infobox-image { | |||
background-color: transparent; | |||
} | } | ||
Revision as of 01:37, 29 December 2025
/* --- CITIZEN SKIN INFOBOX --- */
/* 1. Base Layout & Shape */
.infobox {
float: right;
clear: right;
width: 300px;
padding: 0;
margin-left: 1rem;
margin-bottom: 1rem;
font-size: 0.9rem;
border-radius: var(--border-radius-base, 4px); /* Matches Citizen rounded corners */
overflow: hidden;
box-shadow: var(--box-shadow-card, 0 2px 8px rgba(0,0,0,0.1)); /* Uses Citizen shadow if available */
/* Variable Fallbacks for seamless integration */
background-color: var(--background-color-surface, #ffffff);
border: 1px solid var(--border-color-base, #eaecf0);
color: var(--color-base, #202122);
}
/* 2. Header (Liquipedia Blue) */
.infobox-header {
text-align: center;
font-weight: bold;
padding: 12px;
font-size: 1.1rem;
/* Force Liquipedia Blue in Light Mode */
background-color: #2b7bb9;
color: #ffffff;
}
/* 3. Image Area */
.infobox-image {
text-align: center;
padding: 15px 0;
background-color: var(--background-color-base, #ffffff);
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
}
/* 4. Rows & Text */
.infobox-row {
display: flex;
flex-direction: row;
padding: 10px 12px;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
line-height: 1.5;
}
.infobox-label {
width: 90px;
min-width: 90px;
padding-right: 12px;
font-weight: 600;
opacity: 0.8;
}
/* --- CITIZEN DARK MODE OVERRIDES --- */
/* Citizen uses this specific class on the HTML tag */
html.skin-citizen-dark .infobox-header {
background-color: #3a6c8e; /* Muted Blue for Dark Mode */
color: #ffffff;
border-bottom: 1px solid var(--border-color-base);
}
/* Optional: Make the image background match the card in dark mode */
html.skin-citizen-dark .infobox-image {
background-color: transparent;
}