Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiHikmah
No edit summary
No edit summary
 
(7 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 {
/* =========================================================
  --wk-bg: #FCFAF6;        /* parchment / ivory */
  Mobile fixes
  --wk-text: #262421;      /* deep charcoal */
  Prevent infoboxes / series boxes from crushing article text
  --wk-green: #2F4F46;      /* dark green */
  ========================================================= */
  --wk-lapis: #355C8C;      /* lapis blue */
  --wk-gold: #B08D57;      /* muted gold */
  --wk-bronze: #8C6A43;    /* bronze */
  --wk-link: #2C5D63;      /* dark blue-green */
  --wk-link-hover: #1F4448; /* darker hover */
}


@media screen and (max-width: 768px) {


/* Overall page background and text */
  .infobox,
body,
  .navbox,
.mw-page-container,
  .vertical-navbox,
.vector-body,
  .metadata,
.mw-body,
  table.infobox,
#content {
  table.navbox,
  background-color: var(--wk-bg);
  table[style*="float:right"],
  color: var(--wk-text);
  table[style*="float: right"],
}
  div[style*="float:right"],
  div[style*="float: right"] {
    float: none !important;
    clear: both !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 34rem !important;
    min-width: 0 !important;
    margin: 1.25em auto !important;
    box-sizing: border-box !important;
    border-left: 4px solid var(--wk-green) !important;
  }


/* Main content area */
  .infobox img,
.mw-parser-output {
  .navbox img,
  color: var(--wk-text);
  table.infobox img,
}
  table.navbox img {
    max-width: 80% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }


/* Headings */
  .mw-parser-output > p,
.mw-body h1,
  .mw-parser-output > ul,
.mw-body h2,
  .mw-parser-output > ol {
.mw-body h3,
    clear: both;
.mw-body h4,
   }
.mw-body h5,
.mw-body h6 {
  color: var(--wk-green);
  border-bottom: 1px solid var(--wk-gold);
   padding-bottom: 0.2em;
}


/* Links */
  .mw-body,
a,
  #content,
.mw-parser-output a {
  .vector-body,
  color: var(--wk-link);
  .mw-parser-output {
}
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
  }


a:visited,
  .mw-body h1,
.mw-parser-output a:visited {
  .mw-parser-output h1 {
  color: var(--wk-lapis);
    font-size: 2.4rem;
}
    line-height: 1.12;
    margin-top: 0.6em;
    margin-bottom: 0.55em;
  }


a:hover,
  .mw-body h2,
.mw-parser-output a:hover {
  .mw-parser-output h2 {
  color: var(--wk-link-hover);
    font-size: 1.55rem;
  text-decoration: underline;
    line-height: 1.2;
}
  }


/* Table of contents */
   .infobox ul,
.toc,
  .navbox ul,
#toc {
  table.infobox ul,
  background-color: #FBF7EF;
   table.navbox ul {
   border: 1px solid var(--wk-gold);
    padding-left: 1.3em;
  color: var(--wk-text);
   }
}
 
/* Infoboxes, tables, navboxes */
.infobox,
.wikitable,
.navbox,
table {
  background-color: #FBF7EF;
  color: var(--wk-text);
  border: 1px solid var(--wk-bronze);
}
 
/* Table headers */
.wikitable th,
.infobox th,
.navbox-title {
  background-color: #EFE4C8;
  color: var(--wk-green);
   border: 1px solid var(--wk-gold);
}
 
/* Standard table cells */
.wikitable td,
.infobox td,
.navbox td {
  border: 1px solid #D6C4A3;
}
 
/* Top page tabs / interface elements */
.vector-page-toolbar,
.vector-sticky-header,
.vector-user-links,
.vector-column-start,
.vector-column-end {
  background-color: #F3EAD8;
  color: var(--wk-text);
}
 
/* Search box / inputs */
input,
textarea,
select {
  background-color: #FFFDF8;
  color: var(--wk-text);
  border: 1px solid var(--wk-bronze);
}
 
/* Buttons */
button,
input[type="submit"] {
  background-color: var(--wk-green);
   color: #ffffff;
  border: 1px solid var(--wk-gold);
}
 
button:hover,
input[type="submit"]:hover {
  background-color: var(--wk-link);
}
}

Latest revision as of 21:16, 25 April 2026

/* CSS placed here will be applied to all skins */

/* =========================================================
   Mobile fixes
   Prevent infoboxes / series boxes from crushing article text
   ========================================================= */

@media screen and (max-width: 768px) {

  .infobox,
  .navbox,
  .vertical-navbox,
  .metadata,
  table.infobox,
  table.navbox,
  table[style*="float:right"],
  table[style*="float: right"],
  div[style*="float:right"],
  div[style*="float: right"] {
    float: none !important;
    clear: both !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 34rem !important;
    min-width: 0 !important;
    margin: 1.25em auto !important;
    box-sizing: border-box !important;
    border-left: 4px solid var(--wk-green) !important;
  }

  .infobox img,
  .navbox img,
  table.infobox img,
  table.navbox img {
    max-width: 80% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .mw-parser-output > p,
  .mw-parser-output > ul,
  .mw-parser-output > ol {
    clear: both;
  }

  .mw-body,
  #content,
  .vector-body,
  .mw-parser-output {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
  }

  .mw-body h1,
  .mw-parser-output h1 {
    font-size: 2.4rem;
    line-height: 1.12;
    margin-top: 0.6em;
    margin-bottom: 0.55em;
  }

  .mw-body h2,
  .mw-parser-output h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .infobox ul,
  .navbox ul,
  table.infobox ul,
  table.navbox ul {
    padding-left: 1.3em;
  }
}