MediaWiki:Common.css: Difference between revisions

From Kintara
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
:root {
/* =============================================
  --wiki-bg: #f8f4e3;
  KINTARA WIKI — Main stylesheet
  --wiki-surface: #ece6d3;
  Brand color: #5fa1cf (Kintara blue)
  --wiki-border: #c8b89a;
  Style reference: OSRS wiki (light, functional)
  --wiki-accent: #8b6914;
  ============================================= */
  --wiki-text: #2c2416;
 
  --wiki-link: #4a3b8c;
/* --- Infobox base --- */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1.5em;
    padding: 0;
    border: 1px solid #a8c8e0;
    background: #f8fbfe;
    font-size: 0.88em;
    width: 270px;
    border-collapse: collapse;
    border-radius: 4px;
    overflow: hidden;
}
}


.infobox-title {
    background: #5fa1cf;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05em;
    text-align: center;
    padding: 7px 10px;
}


.infobox-image {
    background: #eaf4fb;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 1px solid #c8dcea;
}


body {
.infobox-image img {
  background-color: var(--wiki-bg);
    max-width: 150px;
  color: var(--wiki-text);
    /* keeps pixel art crisp */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
}


/* Navigation sidebar */
.infobox th {
#mw-panel {
    background: #daeaf5;
  background: var(--wiki-surface);
    color: #1a4060;
  border-right: 1px solid var(--wiki-border);
    padding: 4px 8px;
    width: 40%;
    font-weight: normal;
    vertical-align: top;
    border-top: 1px solid #c0d8ea;
    font-size: 0.9em;
}
}


/* Content area */
.infobox td {
#content {
    background: #f8fbfe;
  background: var(--wiki-bg);
    color: #222;
  border: 1px solid var(--wiki-border);
    padding: 4px 8px;
    vertical-align: top;
    border-top: 1px solid #c0d8ea;
}
}


#mw-head-base,
/* Category accent colors — just the title bar changes */
.mw-header {
.infobox-monster  .infobox-title { background: #7a3535; }
  background-image: url('https://pbs.twimg.com/profile_banners/2049672463005474816/1778779323');
.infobox-location .infobox-title { background: #2a5f3a; }
  background-size: cover;
.infobox-npc      .infobox-title { background: #4a4080; }
  background-position: top center;
.infobox-skill    .infobox-title { background: #1a6070; }
  height: 80px;
.infobox-mount    .infobox-title { background: #806020; }
 
/* Zone badges */
.zone-safe  { color: #1a7a1a; font-weight: bold; }
.zone-pvp  { color: #aa2222; font-weight: bold; }
.zone-calm  { color: #1a5a9a; font-weight: bold; }
 
/* --- Wikitables (drops, XP tables, etc.) --- */
.wikitable {
    border-collapse: collapse;
    background: #f8fbfe;
    margin: 1em 0;
    font-size: 0.9em;
}
.wikitable th {
    background: #daeaf5;
    border: 1px solid #a8c8e0;
    padding: 5px 10px;
    color: #1a3a50;
}
.wikitable td {
    border: 1px solid #c0d8ea;
    padding: 4px 8px;
}
.wikitable tr:nth-child(even) td {
    background: #f0f7fc;
}
}


/* --- Main page portal tiles (OSRS-style image+link grid) --- */
.mainpage-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1em 0;
}
.mainpage-tile {
    flex: 1 1 120px;
    min-width: 110px;
    max-width: 160px;
    border: 1px solid #a8c8e0;
    background: #eaf4fb;
    text-align: center;
    padding: 10px 6px;
    border-radius: 3px;
}
.mainpage-tile:hover {
    background: #d5eaf7;
    border-color: #5fa1cf;
}
.mainpage-tile a {
    color: #1a4060 !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95em;
}


#p-logo a {
/* --- Navbox (footer navigation) --- */
     display: block !important;
.navbox {
     width: 120px !important;       /* Change this value to resize the width */
    border: 1px solid #a8c8e0;
     height: 120px !important;     /* Change this value to resize the height */
    background: #f8fbfe;
     background-size: contain !important; /* Forces the image to scale perfectly without cutting off */
    font-size: 0.85em;
     background-position: center !important;
    margin: 1.5em 0 0;
     background-repeat: no-repeat !important;
     padding: 0;
     margin: 0 auto !important;    /* Centers the logo image inside the 160px column box */
     width: 100%;
     border-collapse: collapse;
}
.navbox-title {
     background: #5fa1cf;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 4px 8px;
}
.navbox-group {
     background: #daeaf5;
    color: #1a3a50;
    font-weight: bold;
    padding: 3px 8px;
    white-space: nowrap;
     border-top: 1px solid #c0d8ea;
    vertical-align: top;
}
.navbox-list {
     padding: 3px 8px;
     border-top: 1px solid #c0d8ea;
}
}

Revision as of 09:51, 18 June 2026

/* =============================================
   KINTARA WIKI — Main stylesheet
   Brand color: #5fa1cf (Kintara blue)
   Style reference: OSRS wiki (light, functional)
   ============================================= */

/* --- Infobox base --- */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1.5em;
    padding: 0;
    border: 1px solid #a8c8e0;
    background: #f8fbfe;
    font-size: 0.88em;
    width: 270px;
    border-collapse: collapse;
    border-radius: 4px;
    overflow: hidden;
}

.infobox-title {
    background: #5fa1cf;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05em;
    text-align: center;
    padding: 7px 10px;
}

.infobox-image {
    background: #eaf4fb;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 1px solid #c8dcea;
}

.infobox-image img {
    max-width: 150px;
    /* keeps pixel art crisp */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.infobox th {
    background: #daeaf5;
    color: #1a4060;
    padding: 4px 8px;
    width: 40%;
    font-weight: normal;
    vertical-align: top;
    border-top: 1px solid #c0d8ea;
    font-size: 0.9em;
}

.infobox td {
    background: #f8fbfe;
    color: #222;
    padding: 4px 8px;
    vertical-align: top;
    border-top: 1px solid #c0d8ea;
}

/* Category accent colors — just the title bar changes */
.infobox-monster  .infobox-title { background: #7a3535; }
.infobox-location .infobox-title { background: #2a5f3a; }
.infobox-npc      .infobox-title { background: #4a4080; }
.infobox-skill    .infobox-title { background: #1a6070; }
.infobox-mount    .infobox-title { background: #806020; }

/* Zone badges */
.zone-safe  { color: #1a7a1a; font-weight: bold; }
.zone-pvp   { color: #aa2222; font-weight: bold; }
.zone-calm  { color: #1a5a9a; font-weight: bold; }

/* --- Wikitables (drops, XP tables, etc.) --- */
.wikitable {
    border-collapse: collapse;
    background: #f8fbfe;
    margin: 1em 0;
    font-size: 0.9em;
}
.wikitable th {
    background: #daeaf5;
    border: 1px solid #a8c8e0;
    padding: 5px 10px;
    color: #1a3a50;
}
.wikitable td {
    border: 1px solid #c0d8ea;
    padding: 4px 8px;
}
.wikitable tr:nth-child(even) td {
    background: #f0f7fc;
}

/* --- Main page portal tiles (OSRS-style image+link grid) --- */
.mainpage-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1em 0;
}
.mainpage-tile {
    flex: 1 1 120px;
    min-width: 110px;
    max-width: 160px;
    border: 1px solid #a8c8e0;
    background: #eaf4fb;
    text-align: center;
    padding: 10px 6px;
    border-radius: 3px;
}
.mainpage-tile:hover {
    background: #d5eaf7;
    border-color: #5fa1cf;
}
.mainpage-tile a {
    color: #1a4060 !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95em;
}

/* --- Navbox (footer navigation) --- */
.navbox {
    border: 1px solid #a8c8e0;
    background: #f8fbfe;
    font-size: 0.85em;
    margin: 1.5em 0 0;
    padding: 0;
    width: 100%;
    border-collapse: collapse;
}
.navbox-title {
    background: #5fa1cf;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 4px 8px;
}
.navbox-group {
    background: #daeaf5;
    color: #1a3a50;
    font-weight: bold;
    padding: 3px 8px;
    white-space: nowrap;
    border-top: 1px solid #c0d8ea;
    vertical-align: top;
}
.navbox-list {
    padding: 3px 8px;
    border-top: 1px solid #c0d8ea;
}