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:
/* Layout wrapper */
/* Main container */
.mechaGrid {
.mechaGrid {
   width: 100%;
   width: 100%;
   border-spacing: 18px;
 
   border-spacing: 20px;
 
}
}


/* Columns */
/* Columns */
.mechaCol {
.mechaCol {
   vertical-align: top;
   vertical-align: top;
   width: 25%;
 
   background: var(--color-surface-2);
 
  border: 1px solid var(--color-border);
 
  border-radius: 14px;
 
  padding: 20px;
 
}
}


/* Center column wider */
 
/* Centre column container */
 
.mechaColCenter {
.mechaColCenter {
  width: 50%;
}


/* Headings spacing */
  background: transparent;
.mechaCol h2 {
 
   margin-top: 0;
   border: none;
 
  padding: 0;
 
}
}


/* Card-like surfaces using Citizen variables (dark mode safe) */
.mechaCol,
.mechaTile,
.mechaStackItem,
.mechaStats {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}


/* Column padding */
/* Proper tile grid */
.mechaCol {
  padding: 18px;
}


/* Tiles grid */
.mechaTiles {
.mechaTiles {
   width: 100%;
   width: 100%;
   border-spacing: 14px;
 
   border-spacing: 16px;
 
}
}
/* Individual tiles */


.mechaTile {
.mechaTile {
   padding: 18px;
 
   line-height: 1.35;
  background: var(--color-surface-2);
 
  border: 1px solid var(--color-border);
 
  border-radius: 12px;
 
   padding: 16px;
 
  height: 80px;
 
   vertical-align: top;
 
}
}


.mechaTile b,
 
.mechaTile strong {
/* Fix giant left column height */
   font-size: 1.05em;
 
.mechaCol:first-child {
 
   height: fit-content;
 
}
}


/* Right column stacked buttons/cards */
 
.mechaStack {
/* Fix giant right column */
   width: 100%;
 
  border-spacing: 10px;
.mechaCol:last-child {
  margin-bottom: 14px;
 
   height: fit-content;
 
}
}
/* Developer resource buttons */


.mechaStackItem {
.mechaStackItem {
   padding: 12px 14px;
 
   font-weight: 600;
  background: var(--color-surface-2);
 
  border: 1px solid var(--color-border);
 
  border-radius: 10px;
 
   padding: 10px;
 
   margin-bottom: 8px;
 
}
}


/* Stats table */
 
.mechaStats {
/* Stats table spacing */
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}


.mechaStats td {
.mechaStats td {
   padding: 10px 12px;
 
  border-top: 1px solid var(--color-border-subtle);
   padding: 6px;
 
}
}


.mechaStats tr:first-child td {
  border-top: 0;
}


/* Responsive: stack columns on mobile */
/* Headings fix */
@media (max-width: 900px) {
 
  .mechaGrid, .mechaGrid > tbody, .mechaGrid > tbody > tr, .mechaGrid > tbody > tr > td {
.mechaCol h2 {
    display: block;
 
    width: 100% !important;
  margin-top: 0;
  }
 
   .mechaGrid {
   margin-bottom: 10px;
    border-spacing: 0;
 
  }
   font-size: 20px;
   .mechaCol {
 
    margin-bottom: 16px;
  }
}
}

Revision as of 13:40, 21 February 2026

/* Main container */
.mechaGrid {

  width: 100%;

  border-spacing: 20px;

}


/* Columns */

.mechaCol {

  vertical-align: top;

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

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

  border-radius: 14px;

  padding: 20px;

}


/* Centre column container */

.mechaColCenter {

  background: transparent;

  border: none;

  padding: 0;

}


/* Proper tile grid */

.mechaTiles {

  width: 100%;

  border-spacing: 16px;

}


/* Individual tiles */

.mechaTile {

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

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

  border-radius: 12px;

  padding: 16px;

  height: 80px;

  vertical-align: top;

}


/* Fix giant left column height */

.mechaCol:first-child {

  height: fit-content;

}


/* Fix giant right column */

.mechaCol:last-child {

  height: fit-content;

}


/* Developer resource buttons */

.mechaStackItem {

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

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

  border-radius: 10px;

  padding: 10px;

  margin-bottom: 8px;

}


/* Stats table spacing */

.mechaStats td {

  padding: 6px;

}


/* Headings fix */

.mechaCol h2 {

  margin-top: 0;

  margin-bottom: 10px;

  font-size: 20px;

}