MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
:root { | |||
--wiki-accent: #7dbdff; | |||
--wiki-navy: #152a46; | |||
--wiki-surface: var(--color-surface-1, #fff); | |||
--wiki-surface-alt: var(--color-surface-2, #eaecf0); | |||
--wiki-border: var(--border-color-base, #a2a9b1); | |||
--wiki-text: var(--color-base, #202122); | |||
--wiki-subtle: var(--color-subtle, #54595d); | |||
} | |||
.weapon-infobox { | .weapon-infobox { | ||
float: right; | float: right; | ||
| Line 7: | Line 16: | ||
margin: 0 0 1.5rem 1.75rem; | margin: 0 0 1.5rem 1.75rem; | ||
overflow: hidden; | overflow: hidden; | ||
color: var(-- | color: var(--wiki-text); | ||
background: var(-- | background: var(--wiki-surface); | ||
border: 1px solid var(--border | border: 1px solid var(--wiki-border); | ||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); | box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); | ||
} | |||
.weapon-infobox-title, | |||
.weapon-infobox-heading { | |||
font-weight: 700; | |||
background: var(--wiki-surface-alt); | |||
} | } | ||
| Line 17: | Line 32: | ||
padding: 0.9rem 1rem; | padding: 0.9rem 1rem; | ||
font-size: 1.25rem; | font-size: 1.25rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 40: | Line 53: | ||
padding: 0.45rem 0.75rem; | padding: 0.45rem 0.75rem; | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
letter-spacing: 0.06em; | letter-spacing: 0.06em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
border-block: 1px solid var(--wiki-border); | |||
border- | |||
} | } | ||
| Line 60: | Line 70: | ||
} | } | ||
.weapon-infobox-row span { | .weapon-infobox-row span, | ||
color: var(-- | .cw-card-description, | ||
.wiki-home-card-description, | |||
.wiki-home-info, | |||
.wiki-home-links { | |||
color: var(--wiki-subtle); | |||
} | } | ||
| Line 72: | Line 86: | ||
} | } | ||
.cw-hero, | |||
.wiki-home-hero { | |||
overflow: hidden; | |||
color: #fff; | |||
border: 1px solid rgba(125, 189, 255, 0.25); | |||
border-radius: 16px; | |||
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2); | |||
} | } | ||
| Line 84: | Line 98: | ||
margin-bottom: 2rem; | margin-bottom: 2rem; | ||
padding: 3.5rem 3rem; | padding: 3.5rem 3rem; | ||
background: | background: | ||
radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%), | radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%), | ||
linear-gradient(135deg, #0c1524 | linear-gradient(135deg, #0c1524, #162b47 55%, #244f75); | ||
} | |||
.wiki-home-hero { | |||
padding: 4rem 3rem; | |||
background: | |||
radial-gradient(circle at 82% 20%, rgba(75, 160, 255, 0.3), transparent 30%), | |||
radial-gradient(circle at 10% 90%, rgba(89, 89, 255, 0.18), transparent 35%), | |||
linear-gradient(135deg, #08111f, #152a46 55%, #214f77); | |||
} | } | ||
.cw-hero-eyebrow, | .cw-hero-eyebrow, | ||
.cw-section-label { | .cw-section-label, | ||
color: | .wikiiki-home-badge, | ||
font-size: 0. | .wiki-home-eyebrow, | ||
.wiki-home-card-tag { | |||
color: var(--wiki-accent); | |||
font-size: 0.72rem; | |||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 0.14em; | letter-spacing: 0.14em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | |||
.cw-hero-title, | |||
.wiki-home-title { | |||
font-weight: 800; | |||
line-height: 1; | |||
letter-spacing: -0.05em; | |||
} | } | ||
| Line 106: | Line 133: | ||
margin: 0.3rem 0 0.6rem; | margin: 0.3rem 0 0.6rem; | ||
font-size: clamp(2.5rem, 7vw, 4.5rem); | font-size: clamp(2.5rem, 7vw, 4.5rem); | ||
font- | } | ||
.wiki-home-title { | |||
margin: 0.4rem 0 0.75rem; | |||
font-size: clamp(2.8rem, 8vw, 5rem); | |||
} | |||
.cw-hero-description, | |||
.wiki-home-subtitle { | |||
color: rgba(255, 255, 255, 0.76); | |||
line-height: 1.6; | |||
} | } | ||
.cw-hero-description { | .cw-hero-description { | ||
max-width: 650px; | max-width: 650px; | ||
font-size: 1.05rem; | font-size: 1.05rem; | ||
} | } | ||
.cw-hero-actions { | .wiki-home-subtitle { | ||
max-width: 720px; | |||
font-size: 1.08rem; | |||
} | |||
.cw-hero-actions, | |||
.wiki-home-actions { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| Line 125: | Line 164: | ||
} | } | ||
.cw-button { | .cw-hero-actions a, | ||
.cw-community a, | |||
.wiki-home-actions a { | |||
color: inherit; | |||
text-decoration: none; | |||
} | |||
.cw-button, | |||
.wiki-home-button { | |||
display: inline-block; | display: inline-block; | ||
padding: 0. | padding: 0.7rem 1rem; | ||
color: inherit; | color: inherit; | ||
font-weight: 600; | font-weight: 600; | ||
| Line 136: | Line 183: | ||
} | } | ||
.cw-button-primary { | .cw-button-primary, | ||
.wiki-home-button-primary { | |||
color: #07111e; | color: #07111e; | ||
background: | background: var(--wiki-accent); | ||
border-color: | border-color: var(--wiki-accent); | ||
} | } | ||
.cw- | .cw-section-heading, | ||
. | .wiki-home-heading { | ||
margin: 2rem 0 1rem; | |||
} | } | ||
| Line 152: | Line 199: | ||
align-items: end; | align-items: end; | ||
justify-content: space-between; | justify-content: space-between; | ||
} | } | ||
.cw-section-heading h2 { | .cw-section-heading h2, | ||
.wiki-home-heading h2 { | |||
margin: 0.15rem 0 0; | margin: 0.15rem 0 0; | ||
border: 0; | border: 0; | ||
} | } | ||
.cw-grid { | .cw-grid, | ||
.wiki-home-grid, | |||
.wiki-home-info-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); | ||
gap: 1rem; | gap: 1rem; | ||
} | |||
.cw-grid { | |||
margin-bottom: 2rem; | margin-bottom: 2rem; | ||
} | |||
.cw-card, | |||
.wiki-home-card { | |||
padding: 1.2rem; | |||
background: var(--wiki-surface); | |||
border: 1px solid var(--wiki-border); | |||
border-radius: 10px; | |||
transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; | |||
} | } | ||
.cw-card { | .cw-card { | ||
min-height: 105px; | min-height: 105px; | ||
} | } | ||
.cw-card:hover { | .cw-card:hover, | ||
.wiki-home-card:hover { | |||
transform: translateY(-2px); | transform: translateY(-2px); | ||
border-color: #579ee5; | border-color: #579ee5; | ||
| Line 182: | Line 239: | ||
} | } | ||
. | .wiki-home-card-featured { | ||
background: | |||
linear-gradient(rgba(75, 150, 230, 0.08), rgba(75, 150, 230, 0.08)), | |||
var(--wiki-surface); | |||
border-color: #579ee5; | |||
} | |||
.cw-card-title, | |||
.wiki-home-card-title, | |||
.wiki-home-info-title { | |||
color: var(--wiki-text); | |||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.cw-card-title a { | .cw-card-title, | ||
.wiki-home-card-title { | |||
margin-bottom: 0.45rem; | |||
font-size: 1.1rem; | |||
} | |||
.cw-card-title a, | |||
.wiki-home-card-title a, | |||
.wiki-home-card-link a { | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.cw-card-description | .cw-card-description, | ||
.wiki-home-card-description { | |||
font-size: 0. | font-size: 0.92rem; | ||
line-height: 1.5; | line-height: 1.5; | ||
} | |||
.wiki-home-card-description { | |||
min-height: 4.2rem; | |||
} | |||
.wiki-home-card-link { | |||
margin-top: 1rem; | |||
font-weight: 650; | |||
} | } | ||
| Line 205: | Line 287: | ||
padding: 1.25rem; | padding: 1.25rem; | ||
color: #fff; | color: #fff; | ||
background: | background: var(--wiki-navy); | ||
border-radius: 10px; | border-radius: 10px; | ||
} | } | ||
| Line 217: | Line 299: | ||
margin-top: 0.2rem; | margin-top: 0.2rem; | ||
color: rgba(255, 255, 255, 0.7); | color: rgba(255, 255, 255, 0.7); | ||
} | |||
.wiki-home-notice { | |||
margin: 1.25rem 0 2.25rem; | |||
padding: 1rem 1.15rem; | |||
color: var(--wiki-subtle); | |||
background: var(--wiki-surface-alt); | |||
border-left: 4px solid var(--wiki-accent); | |||
border-radius: 6px; | |||
} | |||
.wiki-home-notice-title { | |||
margin-bottom: 0.2rem; | |||
color: var(--wiki-text); | |||
font-weight: 700; | |||
} | |||
.wiki-home-info { | |||
padding: 1rem 0; | |||
line-height: 1.55; | |||
} | |||
.wiki-home-info-title { | |||
margin-bottom: 0.35rem; | |||
font-size: 1.05rem; | |||
} | |||
.wiki-home-stats { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
margin-top: 2rem; | |||
overflow: hidden; | |||
text-align: center; | |||
background: var(--wiki-navy); | |||
border-radius: 11px; | |||
} | |||
.wiki-home-stats div { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 0.15rem; | |||
padding: 1.25rem; | |||
border-right: 1px solid rgba(255, 255, 255, 0.12); | |||
} | |||
.wiki-home-stats div:last-child { | |||
border-right: 0; | |||
} | |||
.wiki-home-stats strong { | |||
color: #fff; | |||
font-size: 1.45rem; | |||
} | |||
.wiki-home-stats span { | |||
color: rgba(255, 255, 255, 0.65); | |||
font-size: 0.8rem; | |||
text-transform: uppercase; | |||
} | |||
.wiki-home-links { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.65rem; | |||
justify-content: center; | |||
margin-top: 1.5rem; | |||
padding: 1rem; | |||
} | |||
.wiki-home-links-title { | |||
width: 100%; | |||
color: var(--wiki-text); | |||
font-weight: 700; | |||
text-align: center; | |||
} | } | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.cw-hero { | .weapon-infobox { | ||
float: none; | |||
width: auto; | |||
max-width: none; | |||
margin: 0 0 1.5rem; | |||
} | |||
.cw-hero, | |||
.wiki-home-hero { | |||
padding: 2.25rem 1.5rem; | padding: 2.25rem 1.5rem; | ||
} | } | ||
| Line 227: | Line 391: | ||
align-items: flex-start; | align-items: flex-start; | ||
flex-direction: column; | flex-direction: column; | ||
} | |||
.wiki-home-card-description { | |||
min-height: 0; | |||
} | |||
.wiki-home-stats { | |||
grid-template-columns: 1fr; | |||
} | |||
.wiki-home-stats div { | |||
border-right: 0; | |||
border-bottom: 1px solid rgba(255, 255, 255, 0.12); | |||
} | |||
.wiki-home-stats div:last-child { | |||
border-bottom: 0; | |||
} | } | ||
} | } | ||
Revision as of 00:34, 6 September 2026
:root {
--wiki-accent: #7dbdff;
--wiki-navy: #152a46;
--wiki-surface: var(--color-surface-1, #fff);
--wiki-surface-alt: var(--color-surface-2, #eaecf0);
--wiki-border: var(--border-color-base, #a2a9b1);
--wiki-text: var(--color-base, #202122);
--wiki-subtle: var(--color-subtle, #54595d);
}
.weapon-infobox {
float: right;
clear: right;
width: 320px;
max-width: 42%;
margin: 0 0 1.5rem 1.75rem;
overflow: hidden;
color: var(--wiki-text);
background: var(--wiki-surface);
border: 1px solid var(--wiki-border);
border-radius: 12px;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.weapon-infobox-title,
.weapon-infobox-heading {
font-weight: 700;
background: var(--wiki-surface-alt);
}
.weapon-infobox-title {
padding: 0.9rem 1rem;
font-size: 1.25rem;
text-align: center;
}
.weapon-infobox-image {
min-height: 120px;
padding: 1rem;
text-align: center;
background: rgba(127, 127, 127, 0.06);
}
.weapon-infobox-image img {
width: auto;
max-width: 100%;
height: auto;
max-height: 260px;
object-fit: contain;
}
.weapon-infobox-heading {
padding: 0.45rem 0.75rem;
font-size: 0.8rem;
letter-spacing: 0.06em;
text-transform: uppercase;
border-block: 1px solid var(--wiki-border);
}
.weapon-infobox-row {
display: flex;
gap: 1rem;
justify-content: space-between;
padding: 0.55rem 0.75rem;
border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}
.weapon-infobox-row:last-child {
border-bottom: 0;
}
.weapon-infobox-row span,
.cw-card-description,
.wiki-home-card-description,
.wiki-home-info,
.wiki-home-links {
color: var(--wiki-subtle);
}
.weapon-infobox-row strong {
text-align: right;
}
.weapon-page-clear {
clear: both;
}
.cw-hero,
.wiki-home-hero {
overflow: hidden;
color: #fff;
border: 1px solid rgba(125, 189, 255, 0.25);
border-radius: 16px;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.cw-hero {
margin-bottom: 2rem;
padding: 3.5rem 3rem;
background:
radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%),
linear-gradient(135deg, #0c1524, #162b47 55%, #244f75);
}
.wiki-home-hero {
padding: 4rem 3rem;
background:
radial-gradient(circle at 82% 20%, rgba(75, 160, 255, 0.3), transparent 30%),
radial-gradient(circle at 10% 90%, rgba(89, 89, 255, 0.18), transparent 35%),
linear-gradient(135deg, #08111f, #152a46 55%, #214f77);
}
.cw-hero-eyebrow,
.cw-section-label,
.wikiiki-home-badge,
.wiki-home-eyebrow,
.wiki-home-card-tag {
color: var(--wiki-accent);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.cw-hero-title,
.wiki-home-title {
font-weight: 800;
line-height: 1;
letter-spacing: -0.05em;
}
.cw-hero-title {
margin: 0.3rem 0 0.6rem;
font-size: clamp(2.5rem, 7vw, 4.5rem);
}
.wiki-home-title {
margin: 0.4rem 0 0.75rem;
font-size: clamp(2.8rem, 8vw, 5rem);
}
.cw-hero-description,
.wiki-home-subtitle {
color: rgba(255, 255, 255, 0.76);
line-height: 1.6;
}
.cw-hero-description {
max-width: 650px;
font-size: 1.05rem;
}
.wiki-home-subtitle {
max-width: 720px;
font-size: 1.08rem;
}
.cw-hero-actions,
.wiki-home-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
.cw-hero-actions a,
.cw-community a,
.wiki-home-actions a {
color: inherit;
text-decoration: none;
}
.cw-button,
.wiki-home-button {
display: inline-block;
padding: 0.7rem 1rem;
color: inherit;
font-weight: 600;
text-decoration: none;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.24);
border-radius: 8px;
}
.cw-button-primary,
.wiki-home-button-primary {
color: #07111e;
background: var(--wiki-accent);
border-color: var(--wiki-accent);
}
.cw-section-heading,
.wiki-home-heading {
margin: 2rem 0 1rem;
}
.cw-section-heading {
display: flex;
align-items: end;
justify-content: space-between;
}
.cw-section-heading h2,
.wiki-home-heading h2 {
margin: 0.15rem 0 0;
border: 0;
}
.cw-grid,
.wiki-home-grid,
.wiki-home-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 1rem;
}
.cw-grid {
margin-bottom: 2rem;
}
.cw-card,
.wiki-home-card {
padding: 1.2rem;
background: var(--wiki-surface);
border: 1px solid var(--wiki-border);
border-radius: 10px;
transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.cw-card {
min-height: 105px;
}
.cw-card:hover,
.wiki-home-card:hover {
transform: translateY(-2px);
border-color: #579ee5;
box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}
.wiki-home-card-featured {
background:
linear-gradient(rgba(75, 150, 230, 0.08), rgba(75, 150, 230, 0.08)),
var(--wiki-surface);
border-color: #579ee5;
}
.cw-card-title,
.wiki-home-card-title,
.wiki-home-info-title {
color: var(--wiki-text);
font-weight: 700;
}
.cw-card-title,
.wiki-home-card-title {
margin-bottom: 0.45rem;
font-size: 1.1rem;
}
.cw-card-title a,
.wiki-home-card-title a,
.wiki-home-card-link a {
text-decoration: none;
}
.cw-card-description,
.wiki-home-card-description {
font-size: 0.92rem;
line-height: 1.5;
}
.wiki-home-card-description {
min-height: 4.2rem;
}
.wiki-home-card-link {
margin-top: 1rem;
font-weight: 650;
}
.cw-community {
display: flex;
gap: 1.5rem;
align-items: center;
justify-content: space-between;
padding: 1.25rem;
color: #fff;
background: var(--wiki-navy);
border-radius: 10px;
}
.cw-community-title {
font-size: 1.05rem;
font-weight: 700;
}
.cw-community-description {
margin-top: 0.2rem;
color: rgba(255, 255, 255, 0.7);
}
.wiki-home-notice {
margin: 1.25rem 0 2.25rem;
padding: 1rem 1.15rem;
color: var(--wiki-subtle);
background: var(--wiki-surface-alt);
border-left: 4px solid var(--wiki-accent);
border-radius: 6px;
}
.wiki-home-notice-title {
margin-bottom: 0.2rem;
color: var(--wiki-text);
font-weight: 700;
}
.wiki-home-info {
padding: 1rem 0;
line-height: 1.55;
}
.wiki-home-info-title {
margin-bottom: 0.35rem;
font-size: 1.05rem;
}
.wiki-home-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
margin-top: 2rem;
overflow: hidden;
text-align: center;
background: var(--wiki-navy);
border-radius: 11px;
}
.wiki-home-stats div {
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: 1.25rem;
border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.wiki-home-stats div:last-child {
border-right: 0;
}
.wiki-home-stats strong {
color: #fff;
font-size: 1.45rem;
}
.wiki-home-stats span {
color: rgba(255, 255, 255, 0.65);
font-size: 0.8rem;
text-transform: uppercase;
}
.wiki-home-links {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
justify-content: center;
margin-top: 1.5rem;
padding: 1rem;
}
.wiki-home-links-title {
width: 100%;
color: var(--wiki-text);
font-weight: 700;
text-align: center;
}
@media screen and (max-width: 720px) {
.weapon-infobox {
float: none;
width: auto;
max-width: none;
margin: 0 0 1.5rem;
}
.cw-hero,
.wiki-home-hero {
padding: 2.25rem 1.5rem;
}
.cw-community {
align-items: flex-start;
flex-direction: column;
}
.wiki-home-card-description {
min-height: 0;
}
.wiki-home-stats {
grid-template-columns: 1fr;
}
.wiki-home-stats div {
border-right: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wiki-home-stats div:last-child {
border-bottom: 0;
}
}