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 */
/* =========================
  MECHA COMET FULL THEME
  ========================= */
 
 
/* PAGE WIDTH FIX */


.mw-body {
.mw-body {


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


}
}
Line 14: Line 20:
.mecha-home {
.mecha-home {


text-align:center;
text-align: center;
 
}
 
.mecha-hero {
 
margin-top: 20px;
 
margin-bottom: 40px;


}
}
Line 20: Line 34:
.mecha-logo {
.mecha-logo {


margin-bottom:15px;
margin-bottom: 10px;


}
}
Line 27: Line 41:


color: var(--color-base-subtle);
color: var(--color-base-subtle);
margin-top:5px;
 
margin-bottom:15px;
margin-top: 6px;
 
margin-bottom: 20px;
 
font-size: 16px;


}
}
Line 38: Line 56:
.mecha-buttons {
.mecha-buttons {


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


}
}
Line 50: Line 70:
background: var(--color-progressive);
background: var(--color-progressive);


color:white !important;
color: white !important;
 
padding: 10px 18px;


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


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


display:inline-flex;
text-decoration: none !important;


align-items:center;
display: inline-block;


gap:8px;
}


font-weight:600;
.mecha-btn:hover {


text-decoration:none !important;
transform: translateY(-2px);


}
}


.mecha-btn::before {


content:"";


width:16px;
/* MAIN GRID */
height:16px;


background-size:contain;
.mecha-layout {
background-repeat:no-repeat;
 
display:inline-block;
 
}


width: 100%;


/* button icons */
border-spacing: 24px;


.discord::before {
border-collapse: separate;


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


}
}


.matrix::before {
.mecha-layout td {
 
background-image:url("https://cdn.simpleicons.org/matrix/ffffff");
 
}


.website::before {
vertical-align: top;


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


}
}


.forums::before {


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


}
/* COLUMN WIDTHS */


.mecha-layout td:nth-child(1),


.mecha-layout td:nth-child(3) {


/* LAYOUT */
width: 25%;


.mecha-layout {
}


width:100%;
.mecha-layout td:nth-child(2) {


border-spacing:20px;
width: 50%;
 
margin-top:40px;


}
}
Line 131: Line 140:
background: var(--color-surface-2);
background: var(--color-surface-2);


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


padding:20px;
border-radius: 16px;


border:1px solid var(--color-border);
padding: 20px;
 
height: 100%;


}
}
Line 145: Line 156:
.mecha-grid {
.mecha-grid {


width:100%;
width: 100%;


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


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


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


/* ecosystem icons */
border-radius: 10px;


.mecha-eco {
text-align: center;


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


}
}


.mecha-eco::before {
.mecha-grid td:hover {
 
content:"";
 
width:18px;
height:18px;


background-size:contain;
background: var(--color-progressive-subtle);
background-repeat:no-repeat;


display:inline-block;
cursor: pointer;


}
}


.linux::before {


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


}
/* MOBILE */


.flutter::before {
@media (max-width: 900px) {


background-image:url("https://cdn.simpleicons.org/flutter");
.mecha-layout,
 
.mecha-layout tbody,
}
.mecha-layout tr,
.mecha-layout td {


.docker::before {
display: block;


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


}
}


.raspberry::before {
.mecha-card {


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


}
}


.github::before {
.mecha-buttons {


background-image:url("https://cdn.simpleicons.org/github");
flex-direction: column;
 
}
 
.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;
align-items: center;
width:100%;


}
}


}
}

Revision as of 14:03, 21 February 2026

/* =========================
   MECHA COMET FULL THEME
   ========================= */


/* PAGE WIDTH FIX */

.mw-body {

max-width: 1400px !important;

margin: auto !important;

}



/* HERO */

.mecha-home {

text-align: center;

}

.mecha-hero {

margin-top: 20px;

margin-bottom: 40px;

}

.mecha-logo {

margin-bottom: 10px;

}

.mecha-subtitle {

color: var(--color-base-subtle);

margin-top: 6px;

margin-bottom: 20px;

font-size: 16px;

}



/* BUTTONS */

.mecha-buttons {

display: flex;

justify-content: center;

gap: 14px;

flex-wrap: wrap;

}

.mecha-btn {

background: var(--color-progressive);

color: white !important;

padding: 10px 18px;

border-radius: 10px;

font-weight: 600;

text-decoration: none !important;

display: inline-block;

}

.mecha-btn:hover {

transform: translateY(-2px);

}



/* MAIN GRID */

.mecha-layout {

width: 100%;

border-spacing: 24px;

border-collapse: separate;

table-layout: fixed;

}

.mecha-layout td {

vertical-align: top;

padding: 0;

}



/* COLUMN WIDTHS */

.mecha-layout td:nth-child(1),

.mecha-layout td:nth-child(3) {

width: 25%;

}

.mecha-layout td:nth-child(2) {

width: 50%;

}



/* CARDS */

.mecha-card {

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

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

border-radius: 16px;

padding: 20px;

height: 100%;

}



/* ECOSYSTEM GRID */

.mecha-grid {

width: 100%;

border-spacing: 14px;

}

.mecha-grid td {

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

padding: 16px;

border-radius: 10px;

text-align: center;

font-weight: 600;

}

.mecha-grid td:hover {

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

cursor: pointer;

}



/* MOBILE */

@media (max-width: 900px) {

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

display: block;

width: 100% !important;

}

.mecha-card {

margin-bottom: 20px;

}

.mecha-buttons {

flex-direction: column;

align-items: center;

}

}