Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Initial Theme
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
:root {
/* =========================================
   --wiki-bg: #0f1720;
  HarvestWiki Basic Page Layout
   --wiki-bg-soft: #162231;
  Keeps Citizen skin styling intact
   --wiki-card: #1d2b3a;
  ========================================= */
   --wiki-card-border: #2f465c;
 
  --wiki-accent: #46c2ff;
/* Let pages breathe a bit */
   --wiki-accent-2: #7be0ff;
.mw-parser-output {
   --wiki-text: #eef8ff;
  max-width: 1200px;
   --wiki-muted: #a9bed0;
}
  --wiki-link: #64d2ff;
 
   --wiki-radius: 14px;
/* Clear helper */
.hw-clear {
   clear: both;
}
 
/* Tables used in game pages */
.hw-table {
  width: 100%;
}
 
/* =========================================
  Basic right-side game infobox
  ========================================= */
 
.hw-infobox {
  float: right;
  clear: right;
  width: 320px;
   max-width: 320px;
  margin: 0 0 1.25rem 1.5rem;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 12px;
   overflow: hidden;
}
 
/* Infobox title */
.hw-infobox-title {
  text-align: center;
   font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
 
/* Infobox section heading, like “Information” */
.hw-infobox-heading {
  text-align: center;
   font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.75rem 0;
   padding: 0.5rem;
  border-radius: 8px;
}
 
/* Image area */
.hw-infobox-image {
  text-align: center;
   margin-bottom: 0.75rem;
}
 
.hw-infobox-image img {
  max-width: 100%;
   height: auto;
}
}


/* Overall page */
/* Label/value rows */
body {
.hw-infobox-row {
   background:
   display: grid;
    radial-gradient(circle at top, rgba(70, 194, 255, 0.16), transparent 35%),
  grid-template-columns: 42% 58%;
    var(--wiki-bg);
  gap: 0.75rem;
   color: var(--wiki-text);
  align-items: start;
   padding: 0.4rem 0;
}
}


/* Main content area - selectors vary by skin */
.hw-infobox-label {
.mw-body,
   font-weight: 800;
#content,
.citizen-body {
   background: rgba(29, 43, 58, 0.92);
  border: 1px solid var(--wiki-card-border);
  border-radius: var(--wiki-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
}


/* Headings */
.hw-infobox-value {
.mw-parser-output h1,
   overflow-wrap: anywhere;
.mw-parser-output h2,
.mw-parser-output h3,
.firstHeading {
   color: var(--wiki-text);
  border-bottom: 1px solid var(--wiki-card-border);
}
}


/* Links */
/* Location blurb */
a {
.hw-infobox-blurb {
   color: var(--wiki-link);
   text-align: center;
  margin-bottom: 0.75rem;
}
}


a:hover {
/* Prevent content from wrapping badly around the infobox after long sections */
   color: var(--wiki-accent-2);
.hw-section-clear {
   clear: both;
}
}


/* Tables */
/* Mobile layout */
.wikitable {
@media screen and (max-width: 800px) {
   background: var(--wiki-card);
  .hw-infobox {
   color: var(--wiki-text);
    float: none;
  border: 1px solid var(--wiki-card-border);
    clear: both;
   border-radius: var(--wiki-radius);
    width: auto;
   overflow: hidden;
    max-width: none;
    margin: 0 0 1rem 0;
  }
}
 
/* Stronger basic infobox card */
.hw-infobox {
   border: 1px solid var(--border-color-base, #a2a9b1);
   background: var(--color-surface-1, var(--background-color-base, #ffffff));
   border-radius: 12px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
}


.wikitable th {
/* Center the title inside the infobox */
   background: #24384d;
.hw-infobox-title {
   color: var(--wiki-text);
   display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  margin: 0 0 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
   background: var(--color-surface-2, var(--background-color-neutral-subtle, rgba(0, 0, 0, 0.06)));
}
}


.wikitable td,
/* Center images too */
.wikitable th {
.hw-infobox-image {
   border-color: var(--wiki-card-border);
   text-align: center !important;
}
}


/* Infoboxes / portable infobox-like boxes */
.hw-infobox-image .mw-file-element,
.infobox,
.hw-infobox-image img {
.pi-theme,
   display: block;
.portable-infobox {
   margin-left: auto;
   background: var(--wiki-card);
   margin-right: auto;
  color: var(--wiki-text);
  border: 1px solid var(--wiki-card-border);
   border-radius: var(--wiki-radius);
   box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
}


/* Category links / small boxes */
/* Fix location infobox blurb: remove bubble/card styling */
.catlinks {
.hw-infobox-blurb {
   background: var(--wiki-bg-soft);
   background: transparent !important;
   border: 1px solid var(--wiki-card-border);
   border: 0 !important;
   border-radius: var(--wiki-radius);
  box-shadow: none !important;
   color: var(--wiki-muted);
   border-radius: 0 !important;
  padding: 0 0 0.75rem 0 !important;
  margin: 0 0 0.75rem 0 !important;
  text-align: center;
  font-family: inherit !important;
   color: inherit;
}
}

Latest revision as of 06:05, 31 May 2026

/* CSS placed here will be applied to all skins */
/* =========================================
   HarvestWiki Basic Page Layout
   Keeps Citizen skin styling intact
   ========================================= */

/* Let pages breathe a bit */
.mw-parser-output {
  max-width: 1200px;
}

/* Clear helper */
.hw-clear {
  clear: both;
}

/* Tables used in game pages */
.hw-table {
  width: 100%;
}

/* =========================================
   Basic right-side game infobox
   ========================================= */

.hw-infobox {
  float: right;
  clear: right;
  width: 320px;
  max-width: 320px;
  margin: 0 0 1.25rem 1.5rem;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
}

/* Infobox title */
.hw-infobox-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Infobox section heading, like “Information” */
.hw-infobox-heading {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.75rem 0;
  padding: 0.5rem;
  border-radius: 8px;
}

/* Image area */
.hw-infobox-image {
  text-align: center;
  margin-bottom: 0.75rem;
}

.hw-infobox-image img {
  max-width: 100%;
  height: auto;
}

/* Label/value rows */
.hw-infobox-row {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0.75rem;
  align-items: start;
  padding: 0.4rem 0;
}

.hw-infobox-label {
  font-weight: 800;
}

.hw-infobox-value {
  overflow-wrap: anywhere;
}

/* Location blurb */
.hw-infobox-blurb {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Prevent content from wrapping badly around the infobox after long sections */
.hw-section-clear {
  clear: both;
}

/* Mobile layout */
@media screen and (max-width: 800px) {
  .hw-infobox {
    float: none;
    clear: both;
    width: auto;
    max-width: none;
    margin: 0 0 1rem 0;
  }
}

/* Stronger basic infobox card */
.hw-infobox {
  border: 1px solid var(--border-color-base, #a2a9b1);
  background: var(--color-surface-1, var(--background-color-base, #ffffff));
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Center the title inside the infobox */
.hw-infobox-title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  margin: 0 0 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--color-surface-2, var(--background-color-neutral-subtle, rgba(0, 0, 0, 0.06)));
}

/* Center images too */
.hw-infobox-image {
  text-align: center !important;
}

.hw-infobox-image .mw-file-element,
.hw-infobox-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Fix location infobox blurb: remove bubble/card styling */
.hw-infobox-blurb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 0.75rem 0 !important;
  margin: 0 0 0.75rem 0 !important;
  text-align: center;
  font-family: inherit !important;
  color: inherit;
}