Toggle menu
4
4
2
384
MechaWiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* =========================
/* =========================================
   MECHA ICON FIXED VERSION
   MECHA HOMEPAGE — SAFE VERSION
   ========================= */
   DOES NOT BREAK CITIZEN
  ========================================= */




Line 10: Line 11:
max-width:1200px;
max-width:1200px;
margin:auto;
margin:auto;
padding:10px 20px 40px;
padding:20px;


}
}
Line 17: Line 18:


text-align:center;
text-align:center;
margin-top:20px;
margin-bottom:30px;


}
}


.mecha-logo {
.mecha-logo img {


width:150px;
width:140px;
margin-bottom:10px;


}
}




/* BUTTONS */
/* BUTTON ROW */


.mecha-actions {
.mecha-actions {
Line 35: Line 35:
display:flex;
display:flex;
justify-content:center;
justify-content:center;
gap:12px;
gap:14px;
flex-wrap:wrap;
flex-wrap:wrap;
margin-top:20px;
margin-top:20px;
Line 43: Line 43:
.mecha-action {
.mecha-action {


display:inline-flex;
display:flex;
align-items:center;
align-items:center;
gap:10px;
gap:10px;


padding:12px 18px;
padding:10px 18px;


border-radius:12px;
border-radius:12px;
font-weight:600;


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:




/* BUTTON ICONS */
/* 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 icons */
/* individual */


.mecha-action--discord::before {
.mecha-action--discord::before {
Line 107: Line 107:




/* =========================
/* =========================================
   ECOSYSTEM ICONS
   GRID
   ========================= */
   ========================================= */


.mecha-i::before {


content:"";
.mecha-grid {
 
display:grid;


width:18px;
grid-template-columns:
height:18px;


background-size:contain;
1fr
background-repeat:no-repeat;
1.4fr
1fr;


margin-right:8px;
gap:20px;


filter:var(--mecha-icon-filter);
margin-top:30px;


}
}




/* auto dark/light */
/* CARDS */


:root {
.mecha-card {


--mecha-icon-filter:invert(0);
background:var(--color-surface-2);
 
padding:20px;
 
border-radius:14px;
 
border:1px solid var(--color-border);


}
}


.skin-theme-clientpref-night {


--mecha-icon-filter:invert(1);
/* =========================================
  ECOSYSTEM GRID
  ========================================= */


}


.mecha-ecosystem {
display:grid;


/* ecosystem icons */
grid-template-columns:1fr 1fr;


.mecha-i--linux::before {
gap:14px;


background-image:url("https://cdn.simpleicons.org/linux");
margin-top:10px;


}
}


.mecha-i--flutter::before {


background-image:url("https://cdn.simpleicons.org/flutter");
.mecha-tile {


}
display:block;


.mecha-i--github::before {
padding:12px;


background-image:url("https://cdn.simpleicons.org/github");
border-radius:10px;


}
background:var(--color-surface-1);


.mecha-i--arch::before {
text-decoration:none;


background-image:url("https://cdn.simpleicons.org/archlinux");
font-weight:600;


}
}




/* =========================================
  STATS GRID
  ========================================= */


/* =========================
  CARDS
  ========================= */


.mecha-grid {
.mecha-stats {


display:grid;
display:grid;
grid-template-columns:1fr 1.5fr 1fr;
 
gap:20px;
grid-template-columns:1fr 1fr;
margin-top:40px;
 
gap:10px;
 
margin-top:10px;


}
}


.mecha-card {


background:var(--color-surface-2);
.mecha-stat {


border-radius:16px;
background:var(--color-surface-1);


padding:20px;
padding:10px;


border:1px solid var(--color-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;

}

}