MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================= | /* ========================= | ||
Mecha Comet Wiki Homepage | |||
Citizen-compatible (dark mode safe) | |||
========================= */ | ========================= */ | ||
/* Keep Citizen background. Control width + spacing. */ | |||
/* | .mecha-home { | ||
max-width: 1200px; | |||
. | margin: 0 auto; | ||
padding: 8px 18px 30px; | |||
max-width: | |||
margin: auto | |||
} | } | ||
/* HERO */ | /* HERO */ | ||
.mecha-hero { | .mecha-hero { | ||
text-align: center; | |||
padding: 24px 0 6px; | |||
} | } | ||
.mecha-logo { | .mecha-logo { | ||
width: 160px; | |||
height: auto; | |||
display: inline-block; | |||
} | |||
margin- | .mecha-title { | ||
margin: 16px 0 6px; | |||
font-size: 34px; | |||
font-weight: 800; | |||
letter-spacing: -0.02em; | |||
} | } | ||
.mecha-subtitle { | .mecha-subtitle { | ||
margin: 0; | |||
color: var(--color-base-subtle); | |||
font-size: 16px; | |||
} | |||
/* ACTION BUTTONS */ | |||
.mecha-actions { | |||
display: flex; | |||
justify-content: center; | |||
gap: 14px; | |||
flex-wrap: wrap; | |||
margin-top: 18px; | |||
} | } | ||
.mecha-action { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 10px; | |||
.mecha- | background: var(--color-progressive); | ||
color: #fff !important; | |||
display: flex; | padding: 12px 16px; | ||
border-radius: 12px; | |||
font-weight: 700; | |||
text-decoration: none !important; | |||
transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease; | |||
} | } | ||
.mecha- | .mecha-action:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 10px 22px rgba(0,0,0,0.10); | |||
filter: brightness(1.02); | |||
} | } | ||
.mecha- | .mecha-action::before { | ||
content: ""; | |||
width: 18px; | |||
height: 18px; | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
display: inline-block; | |||
} | } | ||
/* Button icons (SimpleIcons) */ | |||
.mecha-action--discord::before { background-image: url("https://cdn.simpleicons.org/discord/ffffff"); } | |||
.mecha-action--matrix::before { background-image: url("https://cdn.simpleicons.org/matrix/ffffff"); } | |||
.mecha-action--website::before { background-image: url("https://cdn.simpleicons.org/firefoxbrowser/ffffff"); } | |||
.mecha-action--forums::before { background-image: url("https://cdn.simpleicons.org/discourse/ffffff"); } | |||
/* MAIN GRID */ | /* MAIN GRID */ | ||
.mecha-grid { | |||
display: grid; | |||
grid-template-columns: 1fr 1.45fr 1fr; | |||
gap: 22px; | |||
margin-top: 34px; | |||
align-items: start; | |||
} | |||
.mecha- | /* Cards */ | ||
.mecha-card { | |||
background: var(--color-surface-2); | |||
border: 1px solid var(--color-border); | |||
border-radius: 18px; | |||
padding: 18px; | |||
} | |||
.mecha-cardHead h2 { | |||
margin: 0; | |||
font-size: 20px; | |||
font-weight: 800; | |||
} | |||
.mecha-cardHead p { | |||
margin: 6px 0 0; | |||
color: var(--color-base-subtle); | |||
font-size: 14px; | |||
} | |||
/* Wide middle card */ | |||
.mecha-card--wide { | |||
padding: 18px; | |||
} | |||
/* List items */ | |||
.mecha-list { | |||
margin-top: 14px; | |||
display: grid; | |||
gap: 10px; | |||
} | |||
.mecha-listItem { | |||
background: var(--color-surface-1); | |||
border: 1px solid var(--color-border); | |||
border-radius: 12px; | |||
padding: 12px 12px; | |||
text-decoration: none !important; | |||
font-weight: 650; | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
} | } | ||
.mecha- | .mecha-listItem:hover { | ||
background: var(--color-progressive-subtle); | |||
border-color: var(--color-progressive); | |||
} | |||
/* Tiles */ | |||
.mecha-tiles { | |||
margin-top: 14px; | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 12px; | |||
} | |||
padding: | .mecha-tile { | ||
background: var(--color-surface-1); | |||
border: 1px solid var(--color-border); | |||
border-radius: 14px; | |||
padding: 14px; | |||
text-decoration: none !important; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 6px; | |||
min-height: 78px; | |||
} | |||
.mecha-tile:hover { | |||
background: var(--color-progressive-subtle); | |||
border-color: var(--color-progressive); | |||
transform: translateY(-1px); | |||
} | } | ||
.mecha-tileTitle { | |||
font-weight: 800; | |||
.mecha- | |||
} | } | ||
.mecha- | .mecha-tileSub { | ||
color: var(--color-base-subtle); | |||
font-size: 13px; | |||
} | } | ||
/* Stats */ | |||
.mecha-stats { | |||
/* | margin-top: 16px; | ||
display: grid; | |||
.mecha- | grid-template-columns: 1fr 1fr; | ||
gap: 10px; | |||
} | } | ||
.mecha-stat { | |||
background: var(--color-surface-1); | |||
border: 1px solid var(--color-border); | |||
border-radius: 12px; | |||
.mecha- | padding: 10px 12px; | ||
display: flex; | |||
justify-content: space-between; | |||
gap: 10px; | |||
align-items: center; | |||
} | } | ||
.mecha- | .mecha-stat span { | ||
color: var(--color-base-subtle); | |||
font-size: 13px; | |||
font- | |||
} | } | ||
.mecha- | .mecha-stat b { | ||
font-size: 14px; | |||
} | } | ||
/* ICON SYSTEM (used for lists + tiles) */ | |||
.mecha-i::before { | |||
/* | content: ""; | ||
width: 18px; | |||
height: 18px; | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
display: inline-block; | |||
flex: 0 0 auto; | |||
display: block; | |||
} | } | ||
.mecha- | /* Ecosystem + nav icons */ | ||
.mecha-i--rocket::before { background-image: url("https://cdn.simpleicons.org/rocket/111111"); } | |||
.mecha-i--code::before { background-image: url("https://cdn.simpleicons.org/code/111111"); } | |||
.mecha-i--book::before { background-image: url("https://cdn.simpleicons.org/bookstack/111111"); } | |||
.mecha-i--chip::before { background-image: url("https://cdn.simpleicons.org/microchip/111111"); } | |||
.mecha-i--puzzle::before { background-image: url("https://cdn.simpleicons.org/puzzles/111111"); } | |||
.mecha-i--linux::before { background-image: url("https://cdn.simpleicons.org/linux/111111"); } | |||
.mecha-i--flutter::before{ background-image: url("https://cdn.simpleicons.org/flutter/111111"); } | |||
.mecha-i--box::before { background-image: url("https://cdn.simpleicons.org/docker/111111"); } | |||
.mecha-i--github::before { background-image: url("https://cdn.simpleicons.org/github/111111"); } | |||
.mecha-i--arch::before { background-image: url("https://cdn.simpleicons.org/archlinux/111111"); } | |||
.mecha-i--discord::before{ background-image: url("https://cdn.simpleicons.org/discord/111111"); } | |||
.mecha-i--matrix::before { background-image: url("https://cdn.simpleicons.org/matrix/111111"); } | |||
/* Dark mode icon inversion */ | |||
@media (prefers-color-scheme: dark) { | |||
.mecha-i--rocket::before, | |||
.mecha-i--code::before, | |||
.mecha-i--book::before, | |||
.mecha-i--chip::before, | |||
.mecha-i--puzzle::before, | |||
.mecha-i--linux::before, | |||
.mecha-i--flutter::before, | |||
.mecha-i--box::before, | |||
.mecha-i--github::before, | |||
.mecha-i--arch::before, | |||
.mecha-i--discord::before, | |||
.mecha-i--matrix::before { | |||
filter: invert(1); | |||
} | |||
} | } | ||
.mecha- | /* RESPONSIVE */ | ||
@media (max-width: 980px) { | |||
.mecha-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.mecha-tiles { | |||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
@media (max-width: 650px) { | |||
.mecha-title { font-size: 24px; } | |||
.mecha-action { width: 100%; justify-content: center; } | |||
.mecha-home { padding: 8px 12px 24px; } | |||
} | } | ||
Revision as of 14:10, 21 February 2026
/* =========================
Mecha Comet Wiki Homepage
Citizen-compatible (dark mode safe)
========================= */
/* Keep Citizen background. Control width + spacing. */
.mecha-home {
max-width: 1200px;
margin: 0 auto;
padding: 8px 18px 30px;
}
/* HERO */
.mecha-hero {
text-align: center;
padding: 24px 0 6px;
}
.mecha-logo {
width: 160px;
height: auto;
display: inline-block;
}
.mecha-title {
margin: 16px 0 6px;
font-size: 34px;
font-weight: 800;
letter-spacing: -0.02em;
}
.mecha-subtitle {
margin: 0;
color: var(--color-base-subtle);
font-size: 16px;
}
/* ACTION BUTTONS */
.mecha-actions {
display: flex;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
margin-top: 18px;
}
.mecha-action {
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--color-progressive);
color: #fff !important;
padding: 12px 16px;
border-radius: 12px;
font-weight: 700;
text-decoration: none !important;
transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.mecha-action:hover {
transform: translateY(-2px);
box-shadow: 0 10px 22px rgba(0,0,0,0.10);
filter: brightness(1.02);
}
.mecha-action::before {
content: "";
width: 18px;
height: 18px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: inline-block;
}
/* Button icons (SimpleIcons) */
.mecha-action--discord::before { background-image: url("https://cdn.simpleicons.org/discord/ffffff"); }
.mecha-action--matrix::before { background-image: url("https://cdn.simpleicons.org/matrix/ffffff"); }
.mecha-action--website::before { background-image: url("https://cdn.simpleicons.org/firefoxbrowser/ffffff"); }
.mecha-action--forums::before { background-image: url("https://cdn.simpleicons.org/discourse/ffffff"); }
/* MAIN GRID */
.mecha-grid {
display: grid;
grid-template-columns: 1fr 1.45fr 1fr;
gap: 22px;
margin-top: 34px;
align-items: start;
}
/* Cards */
.mecha-card {
background: var(--color-surface-2);
border: 1px solid var(--color-border);
border-radius: 18px;
padding: 18px;
}
.mecha-cardHead h2 {
margin: 0;
font-size: 20px;
font-weight: 800;
}
.mecha-cardHead p {
margin: 6px 0 0;
color: var(--color-base-subtle);
font-size: 14px;
}
/* Wide middle card */
.mecha-card--wide {
padding: 18px;
}
/* List items */
.mecha-list {
margin-top: 14px;
display: grid;
gap: 10px;
}
.mecha-listItem {
background: var(--color-surface-1);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 12px 12px;
text-decoration: none !important;
font-weight: 650;
display: flex;
align-items: center;
gap: 10px;
}
.mecha-listItem:hover {
background: var(--color-progressive-subtle);
border-color: var(--color-progressive);
}
/* Tiles */
.mecha-tiles {
margin-top: 14px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.mecha-tile {
background: var(--color-surface-1);
border: 1px solid var(--color-border);
border-radius: 14px;
padding: 14px;
text-decoration: none !important;
display: flex;
flex-direction: column;
gap: 6px;
min-height: 78px;
}
.mecha-tile:hover {
background: var(--color-progressive-subtle);
border-color: var(--color-progressive);
transform: translateY(-1px);
}
.mecha-tileTitle {
font-weight: 800;
}
.mecha-tileSub {
color: var(--color-base-subtle);
font-size: 13px;
}
/* Stats */
.mecha-stats {
margin-top: 16px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.mecha-stat {
background: var(--color-surface-1);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 10px 12px;
display: flex;
justify-content: space-between;
gap: 10px;
align-items: center;
}
.mecha-stat span {
color: var(--color-base-subtle);
font-size: 13px;
}
.mecha-stat b {
font-size: 14px;
}
/* ICON SYSTEM (used for lists + tiles) */
.mecha-i::before {
content: "";
width: 18px;
height: 18px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: inline-block;
flex: 0 0 auto;
}
/* Ecosystem + nav icons */
.mecha-i--rocket::before { background-image: url("https://cdn.simpleicons.org/rocket/111111"); }
.mecha-i--code::before { background-image: url("https://cdn.simpleicons.org/code/111111"); }
.mecha-i--book::before { background-image: url("https://cdn.simpleicons.org/bookstack/111111"); }
.mecha-i--chip::before { background-image: url("https://cdn.simpleicons.org/microchip/111111"); }
.mecha-i--puzzle::before { background-image: url("https://cdn.simpleicons.org/puzzles/111111"); }
.mecha-i--linux::before { background-image: url("https://cdn.simpleicons.org/linux/111111"); }
.mecha-i--flutter::before{ background-image: url("https://cdn.simpleicons.org/flutter/111111"); }
.mecha-i--box::before { background-image: url("https://cdn.simpleicons.org/docker/111111"); }
.mecha-i--github::before { background-image: url("https://cdn.simpleicons.org/github/111111"); }
.mecha-i--arch::before { background-image: url("https://cdn.simpleicons.org/archlinux/111111"); }
.mecha-i--discord::before{ background-image: url("https://cdn.simpleicons.org/discord/111111"); }
.mecha-i--matrix::before { background-image: url("https://cdn.simpleicons.org/matrix/111111"); }
/* Dark mode icon inversion */
@media (prefers-color-scheme: dark) {
.mecha-i--rocket::before,
.mecha-i--code::before,
.mecha-i--book::before,
.mecha-i--chip::before,
.mecha-i--puzzle::before,
.mecha-i--linux::before,
.mecha-i--flutter::before,
.mecha-i--box::before,
.mecha-i--github::before,
.mecha-i--arch::before,
.mecha-i--discord::before,
.mecha-i--matrix::before {
filter: invert(1);
}
}
/* RESPONSIVE */
@media (max-width: 980px) {
.mecha-grid {
grid-template-columns: 1fr;
}
.mecha-tiles {
grid-template-columns: 1fr;
}
}
@media (max-width: 650px) {
.mecha-title { font-size: 24px; }
.mecha-action { width: 100%; justify-content: center; }
.mecha-home { padding: 8px 12px 24px; }
}