MediaWiki:Common.css: Difference between revisions

From Runnina
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* === Global Dark Theme for CountryGame: Runnina === */
/* === Global Dark for the CountryGame Wikidex === */


/* == Fonts == */
:root {
@font-face {
  --runnina-red: #900603;
   font-family: "Copperplate Gothic";
   --runnina-hover: #ff1a1a;
   src: url("https://db.onlinewebfonts.com/t/483f8a5e2868222491b8baed78121c3a.woff2") format("woff2");
   --onyx-black: #030104;
  --white: #ffffff;
}
}
@font-face {
 
  font-family: "Lexend";
body, #content, .mw-body, .mw-body-content {
  src: url("https://db.onlinewebfonts.com/t/252412eb53593c5afb3e30b6a88ca910.woff2") format("woff2");
   background-color: var(--onyx-black) !important;
}
   color: var(--white) !important;
@font-face {
   font-family: "Lexend SemiBold";
  src: url("https://db.onlinewebfonts.com/t/3474c885518969e3f7178ad88f489c78.woff2") format("woff2");
}
@font-face {
  font-family: "Helvetica";
   src: url("https://db.onlinewebfonts.com/t/5c5a257758cff0acee4d28ff555f3bc5.woff2") format("woff2");
}
}


/* == Base Colors == */
/* === Head Banner === */
body, #content, .mw-body, .mw-body-content, #footer, .mw-footer, .printfooter {
#mw-head {
   background-color: #030104 !important;
  background: url("/images/1/12/Background_0001.png") repeat-x top center;
   color: #ffffff !important;
   background-size: auto 80px;
   height: 80px;
}
}


/* == Links == */
/* === Link Styles === */
a, a:visited {
a, a:visited {
   color: #900603 !important;
   color: var(--runnina-red) !important;
   text-decoration: none;
   text-decoration: none;
}
}
a:hover, a:active {
a:hover, a:active {
   color: #ff1a1a !important;
   color: var(--runnina-hover) !important;
   text-decoration: underline;
   text-decoration: underline;
}
}


/* == Banner & Header == */
/* === Vector Tabs === */
#mw-head {
.vectorTabs li {
   background: url("/images/1/12/Background_0001.png") repeat-x center top;
   margin: 0 !important;
   background-size: auto 80px;
   padding: 0 !important;
   height: 80px;
   list-style: none;
}
}


#firstHeading {
.vectorTabs li:empty {
   font-family: "Lexend SemiBold", sans-serif !important;
   display: none !important;
}
}


/* == Search == */
.vectorTabs li a {
#searchInput {
  padding: 6px 12px !important;
   background: #1a1a1a;
   background: var(--white) !important;
   border: 1px solid #900603;
   border: 1px solid var(--runnina-red) !important;
   color: white;
   color: var(--runnina-red) !important;
   margin-left: -5px !important;
   font-weight: bold;
}
  text-shadow: none !important;
#searchButton {
   box-sizing: border-box;
   margin-right: 5px !important;
   display: inline-block;
   color: white;
}
}


/* == Selection Highlight == */
.vectorTabs li.selected a {
::selection, ::-moz-selection {
  border-bottom: 2px solid var(--runnina-red) !important;
  background: #900603;
  color: white;
}
}


/* == Sidebar & Navigation == */
/* === More Tab === */
#mw-panel a {
#ca-more {
   color: #900603 !important;
   display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--white) !important;
  border: 1px solid var(--runnina-red) !important;
  height: 100% !important;
  min-height: 36px;
  box-sizing: border-box !important;
  padding: 0 12px !important;
}
}


.vector-menu h3, .mw-portlet, .portlet, .vector-menu-content {
#ca-more > a {
   background: #030104 !important;
  color: var(--runnina-red) !important;
   border: none !important;
  font-weight: bold;
   color: #900603;
   text-shadow: none !important;
   line-height: 36px !important;
   text-align: center;
}
}


/* == Tab Styling == */
#ca-more:hover, #ca-more:focus {
#p-views li a, #ca-edit a, #ca-viewsource a, #ca-history a,
   background-color: var(--white) !important;
#ca-watch a, #ca-unwatch a, #ca-talk a, #p-cactions .vector-menu-heading {
   background: white !important;
  color: #900603 !important;
  font-weight: bold;
  text-shadow: 0 0 4px #900603;
  border: 1px solid #900603;
  border-radius: 0;
}
}


#p-views li.selected a,
#ca-more.selected {
#ca-more.selected {
   border-bottom: 2px solid #900603;
   border-bottom: 2px solid var(--runnina-red) !important;
}
}


#p-views a:hover, #p-cactions a:hover {
/* === Watch Star Icon === */
   color: #ff1a1a !important;
#ca-watch a, #ca-unwatch a {
   text-shadow: 0 0 6px #ff1a1a;
  display: inline-block !important;
  width: 40px;
  height: 36px;
  background: var(--white) url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important;
  background-size: 18px 18px !important;
   border: 1px solid var(--runnina-red) !important;
   text-indent: -9999px;
}
}


/* == Star Watch Icon == */
/* === Personal Portlet (Top-Right) === */
#ca-watch.icon a, #ca-unwatch.icon a {
  background-image: url("https://i.imgur.com/eHOwynZ.png") !important;
  background-repeat: no-repeat;
  background-position: center 16px !important;
  background-size: 16px 16px;
  padding-left: 20px;
}
#ca-watch.icon a::before, #ca-unwatch.icon a::before {
  content: none !important;
}
 
/* == Personal Bar (User Commands) == */
#p-personal {
#p-personal {
   display: flex !important;
   border: 3px solid var(--runnina-red) !important;
   align-items: center;
   background-color: var(--onyx-black) !important;
   padding: 3px 10px 7px 122px !important;
   padding: 3px 10px 7px 122px !important;
  background: #030104 !important;
  border: 3px solid #900603 !important;
   margin: -3px 0 0 60px !important;
   margin: -3px 0 0 60px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
}
#p-personal li {
#p-personal li {
   margin-right: 0.8em !important;
   margin-right: 0.8em !important;
}
}


#pt-mytalk, #pt-mytalk a, #pt-mytalk span, #pt-talk {
/* === Search Box === */
   display: none !important;
#searchInput {
   visibility: hidden !important;
  background-color: #1a1a1a;
  border: 1px solid var(--runnina-red);
   color: white;
   margin-left: -5px !important;
}
}


/* == More Dropdown Menu == */
#searchButton {
#p-cactions {
   margin-right: 5px !important;
  background: #f8f9fa !important;
  padding: 0 0.5em;
}
#p-cactions .vector-menu-heading a {
  color: #900603 !important;
  font-weight: bold;
  text-shadow: 0 0 4px #900603;
}
#p-cactions:hover, #p-cactions .vector-menu-heading:hover {
   background-color: #ffffff !important;
  color: #ff1a1a !important;
  text-shadow: 0 0 6px #ff1a1a !important;
}
}


/* == Notifications == */
/* === Notification Icons === */
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
#pt-notifications-notice .mw-echo-notifications-badge {
   filter: brightness(0) saturate(100%) invert(14%) sepia(94%) saturate(7159%) hue-rotate(357deg) brightness(92%) contrast(118%) !important;
   filter: brightness(0) saturate(100%) invert(14%) sepia(94%) saturate(7159%) hue-rotate(357deg) brightness(92%) contrast(118%) !important;
  vertical-align: middle !important;
   position: relative !important;
   position: relative !important;
   top: 8px;
   top: 8px;
  vertical-align: middle !important;
}
}
.mw-echo-unseen-notifications {
 
.mw-echo-notifications-badge .mw-echo-unseen-notifications {
   background-color: #6a0dad !important;
   background-color: #6a0dad !important;
   color: white !important;
   color: white !important;
}
}


/* == Footer == */
/* === Footer === */
#footer, .mw-footer, .printfooter {
  background-color: var(--onyx-black) !important;
  color: var(--white) !important;
  border-top: none !important;
}
 
#footer-icons .footer-icon {
#footer-icons .footer-icon {
   display: inline-block;
   display: inline-block;
   padding: 4px 6px;
   padding: 4px 6px;
   margin: 2px;
   margin: 2px;
   background: #f8f9fa;
   background: var(--white);
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
   border-radius: 2px;
   border-radius: 2px;
}
}
#footer-icons {
#footer-icons {
   text-align: center;
   text-align: center;
}
}


/* == Main Page Content == */
/* === Page Headings === */
.main-page-content {
#firstHeading {
   max-width: 1600px;
   font-family: "Lexend SemiBold", sans-serif !important;
  margin: 0 auto;
  padding: 20px;
  background: url("https://i.imgur.com/ZSV3OlG.jpeg") no-repeat center top;
  background-size: cover;
  border-radius: 8px;
}
}


/* == Infobox == */
.mw-body h1, .mw-body h2, .mw-body h3,
.mw-body h4, .mw-body h5, .mw-body h6 {
  color: white !important;
}
 
/* === Infobox === */
.infobox {
.infobox {
   border-collapse: collapse;
   border-collapse: collapse;
Line 187: Line 177:
   border: 1px solid #aaa;
   border: 1px solid #aaa;
}
}
.infobox th, .infobox td {
.infobox th, .infobox td {
   border: 1px solid #aaa;
   border: 1px solid #aaa;
   padding: 4px;
   padding: 4px;
}
}
.infobox th {
.infobox th {
   background: #eeeeee;
   background: #eeeeee;
Line 196: Line 188:
   font-weight: bold;
   font-weight: bold;
}
}
.infobox caption {
.infobox caption {
   background: #ccccff;
   background: #ccccff;
Line 201: Line 194:
}
}


/* == Sidebar Icons == */
/* === Font Faces === */
#p-navigation li a[href="https://discord.gg/pfUFqxDrdC"]::before {
@font-face {
   content: "";
   font-family: "Lexend SemiBold";
   display: inline-block;
   src: url("https://db.onlinewebfonts.com/t/3474c885518969e3f7178ad88f489c78.woff2") format("woff2");
  width: 16px;
  height: 16px;
  background: url("https://countrygame.net/images/3/3a/Pixelated_discord_icon.png") no-repeat center center;
  background-size: contain;
  margin-right: 4px;
  vertical-align: text-bottom;
}
#p-navigation li a[href="https://www.nationstates.net/region=countrygame"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/images/6/62/Nationstates.png") no-repeat center center;
  background-size: contain;
  margin-right: 4px;
  vertical-align: text-bottom;
}
}


/* == Horizontal List Formatting == */
@font-face {
.hlist dl, .hlist ol, .hlist ul {
   font-family: "Lexend";
   margin: 0;
   src: url("https://db.onlinewebfonts.com/t/252412eb53593c5afb3e30b6a88ca910.woff2") format("woff2");
  padding: 0;
}
.hlist dd, .hlist dt, .hlist li {
  display: inline;
  margin: 0;
}
.hlist.hnum li {
  counter-increment: list-item;
}
.hlist.hnum li::before {
   content: counter(list-item) " ";
  font-weight: bold;
}
.hlist ol {
  counter-reset: list-item;
}
.hlist dd::after, .hlist dt::after, .hlist li::after {
  content: " ·";
  padding: 0 .2em;
}
.hlist dd:last-child::after,
.hlist dt:last-child::after,
.hlist li:last-child::after {
  content: none;
}
}


/* Style the watch/unwatch star properly */
@font-face {
#ca-watch a, #ca-unwatch a {
   font-family: "Helvetica";
   display: inline-block !important;
   src: url("https://db.onlinewebfonts.com/t/5c5a257758cff0acee4d28ff555f3bc5.woff2") format("woff2");
   background: url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important;
  background-size: 16px 16px !important;
  width: 40px;
  height: 24px;
  text-indent: -9999px; /* Hide the label */
  border: 1px solid #900603 !important;
  background-color: white !important;
  vertical-align: middle;
}
}

Revision as of 19:33, 28 July 2025

/* === Global Dark for the CountryGame Wikidex === */

:root {
  --runnina-red: #900603;
  --runnina-hover: #ff1a1a;
  --onyx-black: #030104;
  --white: #ffffff;
}

body, #content, .mw-body, .mw-body-content {
  background-color: var(--onyx-black) !important;
  color: var(--white) !important;
}

/* === Head Banner === */
#mw-head {
  background: url("/images/1/12/Background_0001.png") repeat-x top center;
  background-size: auto 80px;
  height: 80px;
}

/* === Link Styles === */
a, a:visited {
  color: var(--runnina-red) !important;
  text-decoration: none;
}

a:hover, a:active {
  color: var(--runnina-hover) !important;
  text-decoration: underline;
}

/* === Vector Tabs === */
.vectorTabs li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.vectorTabs li:empty {
  display: none !important;
}

.vectorTabs li a {
  padding: 6px 12px !important;
  background: var(--white) !important;
  border: 1px solid var(--runnina-red) !important;
  color: var(--runnina-red) !important;
  font-weight: bold;
  text-shadow: none !important;
  box-sizing: border-box;
  display: inline-block;
}

.vectorTabs li.selected a {
  border-bottom: 2px solid var(--runnina-red) !important;
}

/* === More Tab === */
#ca-more {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--white) !important;
  border: 1px solid var(--runnina-red) !important;
  height: 100% !important;
  min-height: 36px;
  box-sizing: border-box !important;
  padding: 0 12px !important;
}

#ca-more > a {
  color: var(--runnina-red) !important;
  font-weight: bold;
  text-shadow: none !important;
  line-height: 36px !important;
  text-align: center;
}

#ca-more:hover, #ca-more:focus {
  background-color: var(--white) !important;
}

#ca-more.selected {
  border-bottom: 2px solid var(--runnina-red) !important;
}

/* === Watch Star Icon === */
#ca-watch a, #ca-unwatch a {
  display: inline-block !important;
  width: 40px;
  height: 36px;
  background: var(--white) url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important;
  background-size: 18px 18px !important;
  border: 1px solid var(--runnina-red) !important;
  text-indent: -9999px;
}

/* === Personal Portlet (Top-Right) === */
#p-personal {
  border: 3px solid var(--runnina-red) !important;
  background-color: var(--onyx-black) !important;
  padding: 3px 10px 7px 122px !important;
  margin: -3px 0 0 60px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

#p-personal li {
  margin-right: 0.8em !important;
}

/* === Search Box === */
#searchInput {
  background-color: #1a1a1a;
  border: 1px solid var(--runnina-red);
  color: white;
  margin-left: -5px !important;
}

#searchButton {
  margin-right: 5px !important;
}

/* === Notification Icons === */
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
  filter: brightness(0) saturate(100%) invert(14%) sepia(94%) saturate(7159%) hue-rotate(357deg) brightness(92%) contrast(118%) !important;
  vertical-align: middle !important;
  position: relative !important;
  top: 8px;
}

.mw-echo-notifications-badge .mw-echo-unseen-notifications {
  background-color: #6a0dad !important;
  color: white !important;
}

/* === Footer === */
#footer, .mw-footer, .printfooter {
  background-color: var(--onyx-black) !important;
  color: var(--white) !important;
  border-top: none !important;
}

#footer-icons .footer-icon {
  display: inline-block;
  padding: 4px 6px;
  margin: 2px;
  background: var(--white);
  border: 1px solid #a2a9b1;
  border-radius: 2px;
}

#footer-icons {
  text-align: center;
}

/* === Page Headings === */
#firstHeading {
  font-family: "Lexend SemiBold", sans-serif !important;
}

.mw-body h1, .mw-body h2, .mw-body h3,
.mw-body h4, .mw-body h5, .mw-body h6 {
  color: white !important;
}

/* === Infobox === */
.infobox {
  border-collapse: collapse;
  width: 300px;
  font-size: 90%;
  line-height: 1.4em;
  background: #f9f9f9;
  border: 1px solid #aaa;
}

.infobox th, .infobox td {
  border: 1px solid #aaa;
  padding: 4px;
}

.infobox th {
  background: #eeeeee;
  text-align: left;
  font-weight: bold;
}

.infobox caption {
  background: #ccccff;
  font-weight: bold;
}

/* === Font Faces === */
@font-face {
  font-family: "Lexend SemiBold";
  src: url("https://db.onlinewebfonts.com/t/3474c885518969e3f7178ad88f489c78.woff2") format("woff2");
}

@font-face {
  font-family: "Lexend";
  src: url("https://db.onlinewebfonts.com/t/252412eb53593c5afb3e30b6a88ca910.woff2") format("woff2");
}

@font-face {
  font-family: "Helvetica";
  src: url("https://db.onlinewebfonts.com/t/5c5a257758cff0acee4d28ff555f3bc5.woff2") format("woff2");
}