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:
/* ======================
/* FULL WIDTH */
  FULL WIDTH FIX
  ====================== */


.mw-body {
.mw-body {


max-width: 1400px !important;
max-width: 1400px;
margin: auto;


margin: 0 auto;
}
 
 
 
/* HERO */
 
.mecha-home {
 
text-align:center;


}
}


.mecha-logo {


/* remove extra top spacing */
margin-bottom:15px;


.mecha-hero {
}


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


text-align: center;
color: var(--color-base-subtle);
margin-top:5px;
margin-bottom:15px;


}
}




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


.mecha-logo {
/* BUTTONS */


width: 140px;
.mecha-buttons {


margin-bottom: 10px;
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap;
margin-top:20px;


}
}


.mecha-btn {
background: var(--color-progressive);


/* ======================
color:white !important;
  HERO BUTTONS
  ====================== */


.mecha-buttons {
padding:10px 16px;
 
border-radius:10px;
 
display:inline-flex;
 
align-items:center;
 
gap:8px;
 
font-weight:600;


margin-top: 20px;
text-decoration:none !important;


}
}


.mecha-buttons a {
.mecha-btn::before {


display: inline-flex;
content:"";


align-items: center;
width:16px;
height:16px;


gap: 8px;
background-size:contain;
background-repeat:no-repeat;


background: var(--color-progressive);
display:inline-block;
 
}


color: white !important;


padding: 10px 16px;
/* button icons */


margin: 6px;
.discord::before {


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


text-decoration: none;
}


font-weight: 500;
.matrix::before {


transition: 0.15s;
background-image:url("https://cdn.simpleicons.org/matrix/ffffff");


}
}


.mecha-buttons a:hover {
.website::before {
 
background-image:url("https://cdn.simpleicons.org/firefoxbrowser/ffffff");
 
}


transform: translateY(-2px);
.forums::before {


box-shadow: 0 4px 14px rgba(0,0,0,0.15);
background-image:url("https://cdn.simpleicons.org/discourse/ffffff");


}
}




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


.mecha-layout {
.mecha-layout {


width: 100%;
width:100%;


border-spacing: 20px;
border-spacing:20px;
 
margin-top:40px;


}
}




/* cards */
 
/* CARDS */


.mecha-card {
.mecha-card {
Line 101: Line 131:
background: var(--color-surface-2);
background: var(--color-surface-2);


border-radius: 16px;
border-radius:16px;


padding: 20px;
padding:20px;


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


}
}




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


.mecha-grid {
.mecha-grid {


width: 100%;
width:100%;


border-spacing: 14px;
border-spacing:15px;


}
}
Line 126: Line 155:
background: var(--color-surface-1);
background: var(--color-surface-1);


border-radius: 12px;
padding:15px;


padding: 16px;
border-radius:10px;
 
}


transition: 0.15s;


}


.mecha-grid td:hover {
/* ecosystem icons */


background: var(--color-progressive-subtle);
.mecha-eco {


transform: translateY(-2px);
display:inline-flex;
align-items:center;
gap:8px;


}
}


.mecha-eco::before {


/* ecosystem icon */
content:"";


.mecha-ecosystem-icon {
width:18px;
height:18px;


width: 22px;
background-size:contain;
background-repeat:no-repeat;


margin-right: 8px;
display:inline-block;


vertical-align: middle;
}
 
.linux::before {
 
background-image:url("https://cdn.simpleicons.org/linux");


}
}


.flutter::before {


/* ======================
background-image:url("https://cdn.simpleicons.org/flutter");
  MOBILE
  ====================== */


@media (max-width: 900px) {
}


.mecha-layout,
.docker::before {
.mecha-layout tbody,
.mecha-layout tr,
.mecha-layout td {


display: block;
background-image:url("https://cdn.simpleicons.org/docker");
width: 100%;


}
}
.raspberry::before {
background-image:url("https://cdn.simpleicons.org/raspberrypi");


}
}


/* Buttons row */
.github::before {
.mecha-buttons {
 
  display: flex;
background-image:url("https://cdn.simpleicons.org/github");
  justify-content: center;
 
  gap: 12px;
  flex-wrap: wrap; /* wraps nicely on mobile */
  margin-top: 18px;
}
}


/* Make the spans look like buttons */
.arch::before {
.mecha-btn a {
 
  display: inline-flex;
background-image:url("https://cdn.simpleicons.org/archlinux");
  align-items: center;
 
  gap: 8px;
  background: var(--color-progressive);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1;
}
}


.mecha-btn a:hover {
 
  transform: translateY(-1px);
 
/* MOBILE */
 
@media(max-width:900px){
 
.mecha-layout,
.mecha-layout tbody,
.mecha-layout tr,
.mecha-layout td {
 
display:block;
width:100%;
 
}
}


/* Icon sizing (external image) */
.mecha-btn img {
  width: 18px;
  height: 18px;
  display: inline-block;
}
}

Revision as of 14:00, 21 February 2026

/* FULL WIDTH */

.mw-body {

max-width: 1400px;
margin: auto;

}



/* HERO */

.mecha-home {

text-align:center;

}

.mecha-logo {

margin-bottom:15px;

}

.mecha-subtitle {

color: var(--color-base-subtle);
margin-top:5px;
margin-bottom:15px;

}



/* BUTTONS */

.mecha-buttons {

display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap;
margin-top:20px;

}

.mecha-btn {

background: var(--color-progressive);

color:white !important;

padding:10px 16px;

border-radius:10px;

display:inline-flex;

align-items:center;

gap:8px;

font-weight:600;

text-decoration:none !important;

}

.mecha-btn::before {

content:"";

width:16px;
height:16px;

background-size:contain;
background-repeat:no-repeat;

display:inline-block;

}


/* button icons */

.discord::before {

background-image:url("https://cdn.simpleicons.org/discord/ffffff");

}

.matrix::before {

background-image:url("https://cdn.simpleicons.org/matrix/ffffff");

}

.website::before {

background-image:url("https://cdn.simpleicons.org/firefoxbrowser/ffffff");

}

.forums::before {

background-image:url("https://cdn.simpleicons.org/discourse/ffffff");

}



/* LAYOUT */

.mecha-layout {

width:100%;

border-spacing:20px;

margin-top:40px;

}



/* 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:15px;

}

.mecha-grid td {

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

padding:15px;

border-radius:10px;

}



/* ecosystem icons */

.mecha-eco {

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

}

.mecha-eco::before {

content:"";

width:18px;
height:18px;

background-size:contain;
background-repeat:no-repeat;

display:inline-block;

}

.linux::before {

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

}

.flutter::before {

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

}

.docker::before {

background-image:url("https://cdn.simpleicons.org/docker");

}

.raspberry::before {

background-image:url("https://cdn.simpleicons.org/raspberrypi");

}

.github::before {

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

}

.arch::before {

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

}



/* MOBILE */

@media(max-width:900px){

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

display:block;
width:100%;

}

}