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.so TRUE card recreation for Citizen */
/* Layout wrapper */
 
.mechaGrid {
.mecha-card {
  width: 100%;
 
  border-spacing: 18px;
    position: relative;
 
    border-radius: 18px;
 
    overflow: hidden;
 
    border: 1px solid var(--color-border);
 
    background: transparent;
 
}
}


 
/* Columns */
/* TOP SECTION */
.mechaCol {
 
  vertical-align: top;
.mecha-card-top {
  width: 25%;
 
    background: var(--color-surface-2);
 
    padding: 24px;
 
}
}


 
/* Center column wider */
/* BOTTOM SECTION */
.mechaColCenter {
 
  width: 50%;
.mecha-card-bottom {
 
    background: var(--color-surface-1);
 
    padding: 14px 24px;
 
    border-top: 1px solid var(--color-border-subtle);
 
}
}


 
/* Headings spacing */
/* THE CUT TAB */
.mechaCol h2 {
 
  margin-top: 0;
.mecha-card-bottom::before {
 
    content: "";
 
    position: absolute;
 
    top: -12px;
 
    left: 40px;
 
    width: 80px;
 
    height: 24px;
 
    background: var(--color-surface-1);
 
    border-left: 1px solid var(--color-border-subtle);
 
    border-right: 1px solid var(--color-border-subtle);
 
    border-top: 1px solid var(--color-border-subtle);
 
    border-radius: 0 0 12px 12px;
 
}
}


 
/* Card-like surfaces using Citizen variables (dark mode safe) */
/* Title */
.mechaCol,
 
.mechaTile,
.mecha-card-title {
.mechaStackItem,
 
.mechaStats {
    font-size: 18px;
  background: var(--color-surface-2);
 
  border: 1px solid var(--color-border);
    font-weight: 600;
  border-radius: 16px;
 
    margin-bottom: 6px;
 
}
}


 
/* Column padding */
/* Description */
.mechaCol {
 
  padding: 18px;
.mecha-card-desc {
 
    font-size: 14px;
 
    color: var(--color-base-subtle);
 
}
}


 
/* Tiles grid */
/* Bottom label */
.mechaTiles {
 
  width: 100%;
.mecha-card-label {
  border-spacing: 14px;
 
    font-size: 13px;
 
    font-weight: 500;
 
}
}


 
.mechaTile {
/* Grid */
  padding: 18px;
 
  line-height: 1.35;
.mecha-grid {
 
    display: grid;
 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 
    gap: 18px;
 
}
}


 
.mechaTile b,
.mecha-home {
.mechaTile strong {
 
  font-size: 1.05em;
max-width: 1400px;
 
margin: auto;
 
}
}


 
/* Right column stacked buttons/cards */
 
.mechaStack {
.mecha-hero {
  width: 100%;
 
  border-spacing: 10px;
text-align: center;
  margin-bottom: 14px;
 
padding: 40px;
 
}
}


 
.mechaStackItem {
 
  padding: 12px 14px;
.mecha-buttons a {
  font-weight: 600;
 
margin: 6px;
 
padding: 10px 16px;
 
background: var(--color-progressive);
 
color: white;
 
border-radius: 8px;
 
text-decoration: none;
 
display: inline-block;
 
}
}


 
/* Stats table */
 
.mechaStats {
.mecha-grid {
  width: 100%;
 
  border-collapse: separate;
display: grid;
  border-spacing: 0;
 
  overflow: hidden;
grid-template-columns: 1fr 2fr 1fr;
 
gap: 20px;
 
}
}


 
.mechaStats td {
 
  padding: 10px 12px;
.mecha-column {
  border-top: 1px solid var(--color-border-subtle);
 
display: flex;
 
flex-direction: column;
 
gap: 16px;
 
}
}


 
.mechaStats tr:first-child td {
 
  border-top: 0;
.mecha-card {
 
background: var(--color-surface-2);
 
padding: 16px;
 
border-radius: 12px;
 
border: 1px solid var(--color-border);
 
}
}


 
/* Responsive: stack columns on mobile */
 
@media (max-width: 900px) {
.mecha-center .mecha-card {
  .mechaGrid, .mechaGrid > tbody, .mechaGrid > tbody > tr, .mechaGrid > tbody > tr > td {
 
    display: block;
padding: 24px;
    width: 100% !important;
 
  }
  .mechaGrid {
    border-spacing: 0;
  }
  .mechaCol {
    margin-bottom: 16px;
  }
}
}

Revision as of 13:35, 21 February 2026

/* Layout wrapper */
.mechaGrid {
  width: 100%;
  border-spacing: 18px;
}

/* Columns */
.mechaCol {
  vertical-align: top;
  width: 25%;
}

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

/* Headings spacing */
.mechaCol h2 {
  margin-top: 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 */
.mechaCol {
  padding: 18px;
}

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

.mechaTile {
  padding: 18px;
  line-height: 1.35;
}

.mechaTile b,
.mechaTile strong {
  font-size: 1.05em;
}

/* Right column stacked buttons/cards */
.mechaStack {
  width: 100%;
  border-spacing: 10px;
  margin-bottom: 14px;
}

.mechaStackItem {
  padding: 12px 14px;
  font-weight: 600;
}

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

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

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

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