MediaWiki:Common.css

From MediaWiki
Revision as of 11:39, 5 September 2025 by Admin (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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* === OPTIMALIZOVANÉ CSS PRE MEDIAWIKI CYBERPUNK WIKI === */

/* === CSS PREMENNÉ === */
:root {
  /* Základné farby */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #cfcfcf;

  /* Cyberpunk farby */
  --accent-yellow: #FCEE0A;
  --accent-cyan: #29FFFF;
  --link-color: #39d1ff;
  --link-visited: #a0a0ff;
  --border-color: #2b2b2b;

  /* Grafické assets */
  --h2-bg-image: url("/mediawiki/images/d/df/CP2077_header_bottom.svg");
  --main-box: url("/mediawiki/images/0/0e/Cyberpunk_2077_yellow_box.svg");
  --main-box-alt: url("/mediawiki/images/0/00/Cyberpunk_2077_dark_gray_box.svg");
  --infobox-bg: url("/mediawiki/images/e/e6/Cyberpunk_2077_vertical_edge.svg");

  /* Cyberpunk table farba */
  --cp-yellow: #ffff00; /* čistá žltá */
}

/* === FONT FACES === */
@font-face {
  font-family: "Rajdhani";
  font-weight: 400;
  font-display: swap;
  src: url('wiki/Special:FilePath/Rajdhani-Regular.ttf') format("opentype");
}
@font-face {
  font-family: "Orbitron";
  font-weight: 400;
  font-display: swap;
  src: url('wiki/Special:FilePath/Orbitron.ttf') format("opentype");
}
@font-face {
  font-family: "BlenderProBook";
  font-weight: 400;
  font-display: swap;
  src: url('wiki/Special:FilePath/BlenderPro-Book.ttf') format("opentype");
}
@font-face {
  font-family: "BlenderProBold";
  font-weight: 700;
  font-display: swap;
  src: url('wiki/Special:FilePath/BlenderPro-Bold.ttf') format("opentype");
}

/* === IMPORTS === */
@import url("/mediawiki/index.php?title=MediaWiki:CustomNavigation.css&action=raw&ctype=text/css");
@import url("/mediawiki/index.php?title=MediaWiki:CustomTables.css&action=raw&ctype=text/css");
@import url("/mediawiki/index.php?title=MediaWiki:CustomTemplates.css&action=raw&ctype=text/css");
@import url("/mediawiki/index.php?title=MediaWiki:Netpages2077.css&action=raw&ctype=text/css");

/* === ZÁKLADNÉ ŠTÝLY === */
html, body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}
.mw-body, .mw-body-content, #content {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding-left: 15px !important;
  box-shadow: 0 0 0 1px #222, 0 10px 40px rgba(0,0,0,.4);
}

/* === NAVIGÁCIA A PANELY === */
#mw-head, #left-navigation, #right-navigation,
#mw-page-base, #mw-head-base, #mw-navigation,
.vector-sticky-header {
  background: var(--bg-primary) !important;
  border-color: #222 !important;
}
#mw-panel, #mw-panel .portal, #mw-panel .portal .body,
#p-logo, #p-logo a {
  background: var(--bg-secondary) !important;
  color: var(--text-muted) !important;
}

/* === ODKAZY === */
a { color: var(--link-color) !important; text-decoration: none; transition: color .16s ease; }
a:visited { color: var(--link-visited) !important; }
.mw-body-content a:hover, .mw-body-content a:focus { color: var(--accent-yellow) !important; }

/* === NADPISY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent-yellow) !important;
  border-bottom: 1px solid #333 !important;
  font-family: BlenderProBold, sans-serif;
}
.firstHeading {
  background:
    var(--hero-image, url(/mediawiki/images/e/e6/Site-logo.png)) left center / 120px auto no-repeat,
    linear-gradient(90deg, var(--bg-primary) 0%, #171717 60%, var(--bg-tertiary) 100%);
  padding-left: 140px;
  margin: .25rem 0 1.0rem 0 !important;
  border-left: 4px solid var(--accent-yellow);
}
.page-content h2:not(.all-maps__empty-title), .pi-header {
  background-image: var(--h2-bg-image);
  background-repeat: no-repeat;
  background-position: 25% 105%;
  background-size: 100% 10px;
  line-height: 1.2;
  color: var(--accent-cyan);
  border-bottom: none;
  overflow: auto;
}

/* === TOC === */
#toc, .toc {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--accent-yellow) !important;
  border-radius: 4px;
  padding: .6rem .8rem !important;
}
.tocnumber { color: var(--accent-yellow) !important; }
#toc ul li:hover, .toc ul li:hover {
  background: rgba(255,204,0,.06);
  border-left: 1px solid var(--accent-yellow);
  transition: all .12s ease;
}

/* === PORTABLE INFOBOXES === */
.portable-infobox {
  position: relative;
  margin-right: 5px;
  margin-left: 15px !important;
  border: 1px solid var(--accent-yellow);
  border-radius: 10px 0 0 10px;
  background-color: var(--bg-secondary);
  padding-bottom: 4px;
}
.portable-infobox::after {
  content: "";
  position: absolute;
  width: 6%;
  height: 100%;
  top: 0; right: 0;
  background-image: var(--infobox-bg);
  background-repeat: repeat-y;
  background-size: 32px 1080px;
}
.pi-title {
  background-color: transparent;
  border-radius: 10px 10px 0 0;
  color: var(--accent-cyan);
  border-bottom: none;
  margin-top: 5px;
  text-align: center;
  font-family: BlenderProBold, sans-serif;
  font-size: 1.4em;
}
.pi-header {
  background-color: transparent;
  color: var(--accent-cyan);
  margin: 5px 15px !important;
  text-align: center;
  font-family: BlenderProBold, sans-serif !important;
  font-size: 1.2em !important;
  background-position: 0% 135% !important;
  text-transform: none !important;
}
.pi-data-label {
  padding: 3px 5px 3px 1px;
  text-align: right;
  border-right: 1px var(--accent-yellow) solid;
  color: var(--accent-cyan);
  text-transform: none !important;
}

/* === TABY A SELEKTORY === */
.wds-tabs, .wds-tabs__wrapper, .wds-tabs__tab,
.wds-tabs__tab-label, .wds-tabs__tab a,
.pi-tab-link, .pi-media-collection-tabs .pi-tab-link {
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid #333 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.wds-tabs__tab.wds-is-current .wds-tabs__tab-label,
.wds-tabs__tab[aria-selected="true"] .wds-tabs__tab-label,
.pi-tab-link.is-active, .pi-tab-link.current,
[role="tab"][aria-selected="true"] {
  background: var(--accent-yellow) !important;
  color: #111 !important;
  border: