MediaWiki:Citizen.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================
MECHA ICON FIXED VERSION
========================= */
/* HERO */
.mecha-home {
max-width:1200px;
margin:auto;
padding:10px 20px 40px;
}
.mecha-hero {
text-align:center;
margin-top:20px;
}
.mecha-logo {
width:150px;
margin-bottom:10px;
}
/* BUTTONS */
.mecha-actions {
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap;
margin-top:20px;
}
.mecha-action {
display:inline-flex;
align-items:center;
gap:10px;
padding:12px 18px;
border-radius:12px;
font-weight:600;
background:var(--color-progressive);
color:white !important;
text-decoration:none;
}
/* BUTTON ICONS */
.mecha-action::before {
content:"";
width:18px;
height:18px;
background-size:contain;
background-repeat:no-repeat;
filter:invert(1);
}
/* individual icons */
.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");
}
/* =========================
ECOSYSTEM ICONS
========================= */
.mecha-i::before {
content:"";
width:18px;
height:18px;
background-size:contain;
background-repeat:no-repeat;
margin-right:8px;
filter:var(--mecha-icon-filter);
}
/* auto dark/light */
:root {
--mecha-icon-filter:invert(0);
}
.skin-theme-clientpref-night {
--mecha-icon-filter:invert(1);
}
/* ecosystem icons */
.mecha-i--linux::before {
background-image:url("https://cdn.simpleicons.org/linux");
}
.mecha-i--flutter::before {
background-image:url("https://cdn.simpleicons.org/flutter");
}
.mecha-i--github::before {
background-image:url("https://cdn.simpleicons.org/github");
}
.mecha-i--arch::before {
background-image:url("https://cdn.simpleicons.org/archlinux");
}
/* =========================
CARDS
========================= */
.mecha-grid {
display:grid;
grid-template-columns:1fr 1.5fr 1fr;
gap:20px;
margin-top:40px;
}
.mecha-card {
background:var(--color-surface-2);
border-radius:16px;
padding:20px;
border:1px solid var(--color-border);
}
/* =========================
MOBILE
========================= */
@media(max-width:900px){
.mecha-grid{
grid-template-columns:1fr;
}
}