MediaWiki:Common.css

From Official Kynseed Wiki from PixelCount Studios
Revision as of 10:53, 7 July 2025 by Nick (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");

:root {
  --side-panel-width: 342px;
  --side-panel-width-subtract: 370px;
  --heading-color: #000;
  --heading-underline-color: #bb2748;
  --table-heading-color: #d8b885;
  --table-border-color: #a06f32;
  --table-empty-color: #d8b885;
  --dark-text-color: #3c2913;
}

@media only screen and (max-width: 1024px) {
  :root {
    --side-panel-width: 250px;
    --side-panel-width-subtract: 278px;
  }
}

/* Global styles */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: #4288ff url(/resources/assets/Wikibg_x3.png) repeat no-repeat fixed center bottom;
}

a:link, a:visited, a:active {
  color: #1462b6;
}
a:hover {
  color: #1a6bc5;
}

/* Layout */
.hidden { display: none; }
.no-padding { padding: 0; }
.center { text-align: center; }
.mobileOnly { display: none; }
.desktopOnly { display: block; }

@media (min-width: 769px) {
  .mobileOnly { display: none; }
}
@media (max-width: 768px) {
  .desktopOnly { display: none; }
}

/* Box and table containers */
.box-right {
  float: right;
  clear: right;
}
.box-right.border-box {
  display: inline-block;
  float: initial;
}
.border-box,
#main-page-logo-wrapper {
  box-shadow: 1px 1px 2px rgba(0,0,0,0.75);
  border-radius: 5px;
}
.border-box-inner,
#main-page-logo-container {
  box-shadow: inset 1px 0 1px rgba(255,255,255,0.5),
              inset 0 1px 1px rgba(255,255,255,0.5),
              inset -1px 0 1px rgba(255,255,255,0.2),
              inset 0 -1px 1px rgba(255,255,255,0.2);
  border-radius: 5px;
}
.border-box-inner {
  overflow: hidden;
  position: relative;
}
.border-box-inner table {
  margin: 0 auto;
  min-width: 50%;
  text-align: center;
}
.border-box-inner.no-padding { padding: 0; }

/* Headings */
h1 {
  color: var(--heading-color);
  font-family: inherit !important;
  text-align: center;
  padding-bottom: 10px;
  position: relative;
  display: block;
  border-image: url(/resources/assets/h1underline.png);
  border-image-slice: 100% 50% fill;
  border-image-repeat: stretch stretch;
  border-width: 0 32px 16px 32px;
  height: 26px;
  border-style: solid;
}
h1::after {
  content: '';
  display: block;
  border-bottom: 2px solid var(--heading-underline-color);
}

h2 {
  background-image: url(/resources/assets/h2underline.png);
  background-position: 0 24px;
  background-repeat: no-repeat;
  text-indent: 12px;
  height: 32px;
  margin-bottom: 16px !important;
  font-family: inherit !important;
}

h3 {
  height: 32px;
  font-size: 1.25em !important;
  font-weight: normal !important;
  font-family: inherit !important;
}
body:not(:has(.spoiler-hidden)) h3 {
  text-decoration: underline;
  text-decoration-color: var(--heading-underline-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Sections */
.section-text {
  margin-bottom: 25px;
}
.section-text ul {
  font-size: 1.15em;
}
.section-text p,
.mw-body-content p {
  font-size: 1.15em;
  max-width: 1000px;
  width: calc(100% - var(--side-panel-width-subtract));
}
.mw-body-content td p {
  font-size: 1em;
  width: initial;
}

/* Styled Table */
.styled-table {
  width: 100%;
  border: 2px solid var(--table-border-color);
  border-radius: 5px;
  background-color: var(--table-heading-color);
  border-collapse: separate;
  box-shadow:
    1px 1px 2px rgba(0,0,0,0.75),
    inset 1px 0 1px rgba(255,255,255,0.5),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset -1px 0 1px rgba(255,255,255,0.25),
    inset 0 -1px 1px rgba(255,255,255,0.25);
  margin-bottom: 16px;
  padding: 1px;
  table-layout: fixed;
}
.styled-table th,
.info-box th {
  background-color: var(--table-heading-color);
  padding: 6px;
  color: var(--dark-text-color);
}
.styled-table td {
  width: 0;
  border-radius: 2px;
  padding: 4px;
}
.styled-table ul {
  list-style: none;
  margin: 0;
}
.table-header th {
  min-width: 100px;
}
.table-row td {
  padding: 5px;
}
.fullwidth-table {
  width: 100%;
  table-layout: fixed;
}
.fullwidth-table td,
.fullwidth-table tr {
  background-color: transparent;
  text-align: left;
  width: 0;
}

/* Info Box */
.info-box,
.conditionsBox,
.proverbsBox {
  width: var(--side-panel-width);
  float: right;
  clear: right;
}
.info-box td {
  padding: 8px;
  text-align: center;
  border-radius: 2px;
}
.info-box ul,
ul.no-bullet {
  list-style: none;
  padding: 0;
  margin: 0;
}
.infobox {
  width: var(--side-panel-width);
  margin: 0 0 30px 25px;
}
.infobox .infobox-top {
  height: 54px;
  background-image: url(/resources/assets/InfoBoxTop_x2.png);
}
.infobox .infobox-top .infobox-name {
  padding-top: 13px;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  height: 100%;
}
.infobox .infobox-middle {
  background-image: url(/resources/assets/InfoBoxMiddle_x2.png);
  background-repeat: repeat-y;
}
.infobox .infobox-middle .infobox-content {
  width: 292px;
  padding: 5px 25px 1px;
}
.infobox .infobox-bottom {
  height: 28px;
  background-image: url(/resources/assets/InfoBoxBottom_x2.png);
}
.infobox table {
  width: 100%;
}
.infobox table td.heading {
  background-color: rgba(160,111,50,0.5);
  font-weight: bold;
  min-width: 100px;
  text-align: center;
}

/* Misc */
img {
  max-width: 100%;
  max-height: 100%;
}
.image img:not([src*="gif"]),
#main-page-logo-container img {
  border-radius: 5px;
  height: 100%;
  left: 0;
  position: relative;
  top: 0;
  z-index: -1;
}

.item-price-box {
  float: right;
  clear: right;
  width: 334px;
  margin-left: 15px;
  font-size: 1.15em;
}

.item-description {
  font-style: italic;
  padding-top: 8px;
}

.spoiler-hidden {
  background-color: #4288ff;
  padding: 15px;
  max-width: 1000px;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

#toc {
  background: none;
  border: none;
  float: right;
  clear: right;
  margin: 0;
  padding: 0;
  width: var(--side-panel-width);
  z-index: -100;
}
#toc ul::before {
  content: "Contents";
  display: block;
  background-color: #d8b885;
  padding: 6px;
  color: var(--dark-text-color);
  text-align: center;
  font-weight: bold;
  font-size: 1.15em;
}
#toc li {
  border-radius: 2px;
  margin: 2px;
  padding: 4px;
}
#toc .toctitle {
  display: none;
}
#toc .toclevel-1 ul {
  display: none;
}

.selflink {
  color: #1c71c9 !important;
  font-weight: normal !important;
}

/* Footer */
#footer {
  background-color: rgba(200,200,230,0.45);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.25), 2px 2px 10px rgba(0,0,0,0.5);
  margin-left: 20%;
  max-width: 1000px;
  padding: 16px 0 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 10;
}
#footer-places {
  height: 16px;
}
#footer-icons {
  height: 150px;
  margin-top: -24px;
}

/* Media Queries */
@media only screen and (max-width: 1024px) {
  #mw-panel {
    width: 15%;
  }
  #footer {
    margin-left: 18%;
    width: 76%;
    height: 128px;
  }
}

@media only screen and (max-width: 768px) {
  #footer {
    width: 96%;
    margin: 0;
    height: 128px;
  }
  #footer li {
    display: block;
    float: none;
  }
  #footer-icons {
    height: 0;
  }
  .mw-body {
    margin-left: 0;
    padding: 0.5em;
  }
  #toc,
  .info-box,
  .conditionsBox,
  .proverbsBox,
  .styled-table {
    margin-left: 0;
    float: none;
    width: 100% !important;
  }
}