MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Created page with "→CSS placed here will be applied to all skins: .weapon-infobox { float: right; clear: right; width: 320px; max-width: 42%; margin: 0 0 1.5rem 1.75rem; overflow: hidden; color: var(--color-base, #202122); background: var(--color-surface-1, #fff); border: 1px solid var(--border-color-base, #a2a9b1); border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); } .weapon-infobox-title { padding: 0.9rem 1rem; font-s..." |
No edit summary |
||
| Line 78: | Line 78: | ||
max-width: none; | max-width: none; | ||
margin: 0 0 1.5rem; | margin: 0 0 1.5rem; | ||
} | |||
} | |||
.cw-hero { | |||
margin-bottom: 2rem; | |||
padding: 3.5rem 3rem; | |||
overflow: hidden; | |||
color: #fff; | |||
background: | |||
radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%), | |||
linear-gradient(135deg, #0c1524 0%, #162b47 55%, #244f75 100%); | |||
border: 1px solid rgba(120, 180, 255, 0.25); | |||
border-radius: 16px; | |||
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2); | |||
} | |||
.cw-hero-eyebrow, | |||
.cw-section-label { | |||
color: #7dbdff; | |||
font-size: 0.75rem; | |||
font-weight: 700; | |||
letter-spacing: 0.14em; | |||
text-transform: uppercase; | |||
} | |||
.cw-hero-title { | |||
margin: 0.3rem 0 0.6rem; | |||
font-size: clamp(2.5rem, 7vw, 4.5rem); | |||
font-weight: 800; | |||
line-height: 1; | |||
letter-spacing: -0.04em; | |||
} | |||
.cw-hero-description { | |||
max-width: 650px; | |||
color: rgba(255, 255, 255, 0.78); | |||
font-size: 1.05rem; | |||
line-height: 1.6; | |||
} | |||
.cw-hero-actions { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.75rem; | |||
margin-top: 1.5rem; | |||
} | |||
.cw-button { | |||
display: inline-block; | |||
padding: 0.65rem 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 { | |||
color: #07111e; | |||
background: #7dbdff; | |||
border-color: #7dbdff; | |||
} | |||
.cw-hero-actions a, | |||
.cw-community a { | |||
color: inherit; | |||
text-decoration: none; | |||
} | |||
.cw-section-heading { | |||
display: flex; | |||
align-items: end; | |||
justify-content: space-between; | |||
margin-bottom: 1rem; | |||
} | |||
.cw-section-heading h2 { | |||
margin: 0.15rem 0 0; | |||
border: 0; | |||
} | |||
.cw-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); | |||
gap: 1rem; | |||
margin-bottom: 2rem; | |||
} | |||
.cw-card { | |||
min-height: 105px; | |||
padding: 1.15rem; | |||
background: var(--color-surface-1, #fff); | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 10px; | |||
transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; | |||
} | |||
.cw-card:hover { | |||
transform: translateY(-2px); | |||
border-color: #579ee5; | |||
box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12); | |||
} | |||
.cw-card-title { | |||
margin-bottom: 0.4rem; | |||
font-size: 1.05rem; | |||
font-weight: 700; | |||
} | |||
.cw-card-title a { | |||
text-decoration: none; | |||
} | |||
.cw-card-description { | |||
color: var(--color-subtle, #54595d); | |||
font-size: 0.9rem; | |||
line-height: 1.5; | |||
} | |||
.cw-community { | |||
display: flex; | |||
gap: 1.5rem; | |||
align-items: center; | |||
justify-content: space-between; | |||
padding: 1.25rem; | |||
color: #fff; | |||
background: #162b47; | |||
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); | |||
} | |||
@media screen and (max-width: 720px) { | |||
.cw-hero { | |||
padding: 2.25rem 1.5rem; | |||
} | |||
.cw-community { | |||
align-items: flex-start; | |||
flex-direction: column; | |||
} | } | ||
} | } | ||
Revision as of 00:23, 6 September 2026
/* CSS placed here will be applied to all skins */
.weapon-infobox {
float: right;
clear: right;
width: 320px;
max-width: 42%;
margin: 0 0 1.5rem 1.75rem;
overflow: hidden;
color: var(--color-base, #202122);
background: var(--color-surface-1, #fff);
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 12px;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.weapon-infobox-title {
padding: 0.9rem 1rem;
font-size: 1.25rem;
font-weight: 700;
text-align: center;
background: var(--color-surface-2, #eaecf0);
}
.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;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
background: var(--color-surface-2, #eaecf0);
border-top: 1px solid var(--border-color-base, #a2a9b1);
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
}
.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 {
color: var(--color-subtle, #54595d);
}
.weapon-infobox-row strong {
text-align: right;
}
.weapon-page-clear {
clear: both;
}
@media screen and (max-width: 720px) {
.weapon-infobox {
float: none;
width: auto;
max-width: none;
margin: 0 0 1.5rem;
}
}
.cw-hero {
margin-bottom: 2rem;
padding: 3.5rem 3rem;
overflow: hidden;
color: #fff;
background:
radial-gradient(circle at 85% 20%, rgba(73, 155, 255, 0.35), transparent 32%),
linear-gradient(135deg, #0c1524 0%, #162b47 55%, #244f75 100%);
border: 1px solid rgba(120, 180, 255, 0.25);
border-radius: 16px;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.cw-hero-eyebrow,
.cw-section-label {
color: #7dbdff;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.cw-hero-title {
margin: 0.3rem 0 0.6rem;
font-size: clamp(2.5rem, 7vw, 4.5rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
}
.cw-hero-description {
max-width: 650px;
color: rgba(255, 255, 255, 0.78);
font-size: 1.05rem;
line-height: 1.6;
}
.cw-hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
.cw-button {
display: inline-block;
padding: 0.65rem 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 {
color: #07111e;
background: #7dbdff;
border-color: #7dbdff;
}
.cw-hero-actions a,
.cw-community a {
color: inherit;
text-decoration: none;
}
.cw-section-heading {
display: flex;
align-items: end;
justify-content: space-between;
margin-bottom: 1rem;
}
.cw-section-heading h2 {
margin: 0.15rem 0 0;
border: 0;
}
.cw-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.cw-card {
min-height: 105px;
padding: 1.15rem;
background: var(--color-surface-1, #fff);
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 10px;
transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.cw-card:hover {
transform: translateY(-2px);
border-color: #579ee5;
box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}
.cw-card-title {
margin-bottom: 0.4rem;
font-size: 1.05rem;
font-weight: 700;
}
.cw-card-title a {
text-decoration: none;
}
.cw-card-description {
color: var(--color-subtle, #54595d);
font-size: 0.9rem;
line-height: 1.5;
}
.cw-community {
display: flex;
gap: 1.5rem;
align-items: center;
justify-content: space-between;
padding: 1.25rem;
color: #fff;
background: #162b47;
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);
}
@media screen and (max-width: 720px) {
.cw-hero {
padding: 2.25rem 1.5rem;
}
.cw-community {
align-items: flex-start;
flex-direction: column;
}
}