MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================= | /* ========================================= | ||
MECHA | MECHA HOMEPAGE — SAFE VERSION | ||
========================= */ | DOES NOT BREAK CITIZEN | ||
========================================= */ | |||
| Line 10: | Line 11: | ||
max-width:1200px; | max-width:1200px; | ||
margin:auto; | margin:auto; | ||
padding: | padding:20px; | ||
} | } | ||
| Line 17: | Line 18: | ||
text-align:center; | text-align:center; | ||
margin- | margin-bottom:30px; | ||
} | } | ||
.mecha-logo { | .mecha-logo img { | ||
width: | width:140px; | ||
} | } | ||
/* | /* BUTTON ROW */ | ||
.mecha-actions { | .mecha-actions { | ||
| Line 35: | Line 35: | ||
display:flex; | display:flex; | ||
justify-content:center; | justify-content:center; | ||
gap: | gap:14px; | ||
flex-wrap:wrap; | flex-wrap:wrap; | ||
margin-top:20px; | margin-top:20px; | ||
| Line 43: | Line 43: | ||
.mecha-action { | .mecha-action { | ||
display: | display:flex; | ||
align-items:center; | align-items:center; | ||
gap:10px; | gap:10px; | ||
padding: | padding:10px 18px; | ||
border-radius:12px; | border-radius:12px; | ||
background:var(--color-progressive); | background:var(--color-progressive); | ||
color:white !important; | color:white !important; | ||
font-weight:600; | |||
text-decoration:none; | text-decoration:none; | ||
| Line 62: | Line 62: | ||
/* | /* ICONS — FIXED */ | ||
.mecha-action::before { | .mecha-action::before { | ||
| Line 74: | Line 74: | ||
background-repeat:no-repeat; | background-repeat:no-repeat; | ||
filter:invert(1); | filter:brightness(0) invert(1); | ||
} | } | ||
/* individual | /* individual */ | ||
.mecha-action--discord::before { | .mecha-action--discord::before { | ||
| Line 107: | Line 107: | ||
/* ========================= | /* ========================================= | ||
GRID | |||
========================= */ | ========================================= */ | ||
.mecha-grid { | |||
display:grid; | |||
grid-template-columns: | |||
1fr | |||
1.4fr | |||
1fr; | |||
gap:20px; | |||
margin-top:30px; | |||
} | } | ||
/* | /* CARDS */ | ||
.mecha-card { | |||
-- | background:var(--color-surface-2); | ||
padding:20px; | |||
border-radius:14px; | |||
border:1px solid var(--color-border); | |||
} | } | ||
/* ========================================= | |||
ECOSYSTEM GRID | |||
========================================= */ | |||
.mecha-ecosystem { | |||
display:grid; | |||
grid-template-columns:1fr 1fr; | |||
gap:14px; | |||
margin-top:10px; | |||
} | } | ||
.mecha-tile { | |||
display:block; | |||
padding:12px; | |||
border-radius:10px; | |||
background:var(--color-surface-1); | |||
text-decoration:none; | |||
font-weight:600; | |||
} | } | ||
/* ========================================= | |||
STATS GRID | |||
========================================= */ | |||
.mecha- | .mecha-stats { | ||
display:grid; | display:grid; | ||
grid-template-columns:1fr | |||
gap: | grid-template-columns:1fr 1fr; | ||
margin-top: | |||
gap:10px; | |||
margin-top:10px; | |||
} | } | ||
.mecha-stat { | |||
background:var(--color-surface-1); | |||
padding: | padding:10px; | ||
border: | border-radius:10px; | ||
} | } | ||
/* ========================= | /* ========================================= | ||
MOBILE | MOBILE | ||
========================= */ | ========================================= */ | ||
@media(max-width:900px){ | @media(max-width:900px){ | ||
.mecha-grid{ | .mecha-grid{ | ||
grid-template-columns:1fr; | |||
} | |||
.mecha-ecosystem{ | |||
grid-template-columns:1fr; | grid-template-columns:1fr; | ||
Revision as of 14:13, 21 February 2026
/* =========================================
MECHA HOMEPAGE — SAFE VERSION
DOES NOT BREAK CITIZEN
========================================= */
/* HERO */
.mecha-home {
max-width:1200px;
margin:auto;
padding:20px;
}
.mecha-hero {
text-align:center;
margin-bottom:30px;
}
.mecha-logo img {
width:140px;
}
/* BUTTON ROW */
.mecha-actions {
display:flex;
justify-content:center;
gap:14px;
flex-wrap:wrap;
margin-top:20px;
}
.mecha-action {
display:flex;
align-items:center;
gap:10px;
padding:10px 18px;
border-radius:12px;
background:var(--color-progressive);
color:white !important;
font-weight:600;
text-decoration:none;
}
/* ICONS — FIXED */
.mecha-action::before {
content:"";
width:18px;
height:18px;
background-size:contain;
background-repeat:no-repeat;
filter:brightness(0) invert(1);
}
/* individual */
.mecha-action--discord::before {
background-image:url("https://cdn.simpleicons.org/discord");
}
.mecha-action--matrix::before {
background-image:url("https://cdn.simpleicons.org/matrix");
}
.mecha-action--website::before {
background-image:url("https://cdn.simpleicons.org/firefoxbrowser");
}
.mecha-action--forums::before {
background-image:url("https://cdn.simpleicons.org/discourse");
}
/* =========================================
GRID
========================================= */
.mecha-grid {
display:grid;
grid-template-columns:
1fr
1.4fr
1fr;
gap:20px;
margin-top:30px;
}
/* CARDS */
.mecha-card {
background:var(--color-surface-2);
padding:20px;
border-radius:14px;
border:1px solid var(--color-border);
}
/* =========================================
ECOSYSTEM GRID
========================================= */
.mecha-ecosystem {
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
margin-top:10px;
}
.mecha-tile {
display:block;
padding:12px;
border-radius:10px;
background:var(--color-surface-1);
text-decoration:none;
font-weight:600;
}
/* =========================================
STATS GRID
========================================= */
.mecha-stats {
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-top:10px;
}
.mecha-stat {
background:var(--color-surface-1);
padding:10px;
border-radius:10px;
}
/* =========================================
MOBILE
========================================= */
@media(max-width:900px){
.mecha-grid{
grid-template-columns:1fr;
}
.mecha-ecosystem{
grid-template-columns:1fr;
}
}