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 COMET WIKI THEME
   FULL WIDTH FIX
   Citizen Theme Extension
   ====================== */
  ========================= */


.mw-body {


/* MAIN PAGE WIDTH */
max-width: 1400px !important;


.mecha-home {
margin: 0 auto;
 
max-width: 1100px;
margin: auto;
padding: 20px;


}
}




/* =========================
/* remove extra top spacing */
  HERO
  ========================= */


.mecha-hero {
.mecha-hero {
margin-top: 10px;
margin-bottom: 30px;


text-align: center;
text-align: center;


margin-top: 50px;
}
margin-bottom: 35px;


}
 
/* ======================
  HERO LOGO
  ====================== */


.mecha-logo {
.mecha-logo {
Line 33: Line 32:
width: 140px;
width: 140px;


margin-bottom: 16px;
margin-bottom: 10px;
 
transition: transform 0.15s ease;
 
}
 
.mecha-logo:hover {
 
transform: scale(1.05);


}
}


.mecha-hero h1 {


font-size: 34px;
/* ======================
  HERO BUTTONS
  ====================== */


font-weight: 700;
.mecha-buttons {


letter-spacing: -0.02em;
margin-top: 20px;
 
margin-bottom: 6px;


}
}


.mecha-hero p {
.mecha-buttons a {


font-size: 17px;
display: inline-flex;


color: var(--color-base-subtle);
align-items: center;


margin-top: 0;
gap: 8px;


}
background: var(--color-progressive);


color: white !important;


padding: 10px 16px;


/* =========================
margin: 6px;
  MAIN GRID LAYOUT
  ========================= */


.mecha-layout {
border-radius: 10px;


width: 100%;
text-decoration: none;


border-spacing: 20px;
font-weight: 500;


margin-top: 30px;
transition: 0.15s;


}
}


.mecha-buttons a:hover {


transform: translateY(-2px);


/* =========================
box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  COLUMNS
  ========================= */


.mecha-col {
}


width: 25%;


vertical-align: top;
/* ======================
  MAIN GRID
  ====================== */


}
.mecha-layout {


.mecha-col-wide {
width: 100%;


width: 50%;
border-spacing: 20px;
 
vertical-align: top;


}
}




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


.mecha-card {
.mecha-card {


background: var(--color-surface-2);
background: var(--color-surface-2);
border: 1px solid var(--color-border);


border-radius: 16px;
border-radius: 16px;
Line 121: Line 105:
padding: 20px;
padding: 20px;


transition: all 0.15s ease;
border: 1px solid var(--color-border);


}
}


/* hover animation */
.mecha-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}


 
/* ======================
 
/* headings */
 
.mecha-card h2 {
 
margin-top: 0;
 
margin-bottom: 12px;
 
font-size: 20px;
 
}
 
 
 
/* lists */
 
.mecha-card ul {
 
margin: 0;
 
padding-left: 18px;
 
line-height: 1.8;
 
}
 
 
 
/* =========================
   ECOSYSTEM GRID
   ECOSYSTEM GRID
   ========================= */
   ====================== */


.mecha-grid {
.mecha-grid {
Line 174: Line 119:


border-spacing: 14px;
border-spacing: 14px;
margin-top: 10px;


}
}
Line 182: Line 125:


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


border-radius: 12px;
border-radius: 12px;
Line 189: Line 130:
padding: 16px;
padding: 16px;


font-weight: 600;
transition: 0.15s;
 
transition: all 0.12s ease;


}
}
/* clickable hover */


.mecha-grid td:hover {
.mecha-grid td:hover {


background: var(--color-progressive-subtle);
background: var(--color-progressive-subtle);
border-color: var(--color-progressive);


transform: translateY(-2px);
transform: translateY(-2px);
cursor: pointer;


}
}




/* ecosystem icon */


/* links inside */
.mecha-ecosystem-icon {


.mecha-grid a {
width: 22px;


text-decoration: none;
margin-right: 8px;


display: block;
vertical-align: middle;


}
}




/* ======================
  MOBILE
  ====================== */


/* =========================
@media (max-width: 900px) {
  DEVELOPER LINKS
  ========================= */
 
.mecha-card a {
 
text-decoration: none;
 
font-weight: 500;
 
}
 
.mecha-card a:hover {
 
text-decoration: underline;
 
}
 
 
 
/* =========================
  STATS
  ========================= */
 
.mecha-stats li {
 
list-style: none;
 
padding: 4px 0;
 
}
 
 
 
/* =========================
  MOBILE RESPONSIVE
  ========================= */
 
@media (max-width: 1000px) {


.mecha-layout,
.mecha-layout,
Line 271: Line 168:


display: block;
display: block;
 
width: 100%;
width: 100% !important;
 
}
 
.mecha-col,
.mecha-col-wide {
 
margin-bottom: 20px;
 
}
 
}
 
 
 
/* MOBILE HERO */
 
@media (max-width: 700px) {
 
.mecha-logo {
 
width: 110px;
 
}
 
.mecha-hero h1 {
 
font-size: 24px;
 
}
 
.mecha-hero p {
 
font-size: 15px;
 
}
 
.mecha-card {
 
padding: 16px;


}
}
}
/* =========================
  CLEANER LOOK
  ========================= */
/* remove ugly category spacing */
#catlinks {
margin-top: 40px;
}
/* nicer hr */
hr {
border: none;
border-top: 1px solid var(--color-border-subtle);
margin: 30px 0;


}
}

Revision as of 13:56, 21 February 2026

/* ======================
   FULL WIDTH FIX
   ====================== */

.mw-body {

max-width: 1400px !important;

margin: 0 auto;

}


/* remove extra top spacing */

.mecha-hero {

margin-top: 10px;
margin-bottom: 30px;

text-align: center;

}


/* ======================
   HERO LOGO
   ====================== */

.mecha-logo {

width: 140px;

margin-bottom: 10px;

}


/* ======================
   HERO BUTTONS
   ====================== */

.mecha-buttons {

margin-top: 20px;

}

.mecha-buttons a {

display: inline-flex;

align-items: center;

gap: 8px;

background: var(--color-progressive);

color: white !important;

padding: 10px 16px;

margin: 6px;

border-radius: 10px;

text-decoration: none;

font-weight: 500;

transition: 0.15s;

}

.mecha-buttons a:hover {

transform: translateY(-2px);

box-shadow: 0 4px 14px rgba(0,0,0,0.15);

}


/* ======================
   MAIN GRID
   ====================== */

.mecha-layout {

width: 100%;

border-spacing: 20px;

}


/* cards */

.mecha-card {

background: var(--color-surface-2);

border-radius: 16px;

padding: 20px;

border: 1px solid var(--color-border);

}


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

.mecha-grid {

width: 100%;

border-spacing: 14px;

}

.mecha-grid td {

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

border-radius: 12px;

padding: 16px;

transition: 0.15s;

}

.mecha-grid td:hover {

background: var(--color-progressive-subtle);

transform: translateY(-2px);

}


/* ecosystem icon */

.mecha-ecosystem-icon {

width: 22px;

margin-right: 8px;

vertical-align: middle;

}


/* ======================
   MOBILE
   ====================== */

@media (max-width: 900px) {

.mecha-layout,
.mecha-layout tbody,
.mecha-layout tr,
.mecha-layout td {

display: block;
width: 100%;

}

}