MediaWiki:Common.css: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | No edit summary | ||
| (229 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
| /* === Head Banner === */ | /* === Head Banner === */ | ||
| #mw-head { | #mw-head { | ||
|    background: url("/ |    background: url("https://i.imgur.com/VADF1Az.gif") repeat-x top center; | ||
|    background-size: auto 80px; |    background-size: auto 80px; | ||
|    height: 80px; |    height: 80px; | ||
| Line 29: | Line 29: | ||
|    color: var(--runnina-hover) !important; |    color: var(--runnina-hover) !important; | ||
|    text-decoration: underline; |    text-decoration: underline; | ||
| } | } | ||
| Line 73: | Line 47: | ||
|    color: var(--runnina-red) !important; |    color: var(--runnina-red) !important; | ||
|    font-weight: bold; |    font-weight: bold; | ||
|    line-height: 36px !important; |    line-height: 36px !important; | ||
|    text-align: center; |    text-align: center; | ||
| Line 89: | Line 62: | ||
| #ca-watch a, #ca-unwatch a { | #ca-watch a, #ca-unwatch a { | ||
|    display: inline-block !important; |    display: inline-block !important; | ||
|    width:  |    width: 30px; | ||
|    background: var(--white) url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important; |    background: var(--white) url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important; | ||
|    background-size: 18px 18px !important; |    background-size: 18px 18px !important; | ||
| } | } | ||
| /* === Personal  | /* === Personal Tabloid === */ | ||
| #p-personal { | #p-personal { | ||
|    border: 3px solid var(--runnina-red) !important; |    border: 3px solid var(--runnina-red) !important; | ||
| Line 118: | Line 88: | ||
|    color: white; |    color: white; | ||
|    margin-left: -5px !important; |    margin-left: -5px !important; | ||
| } | } | ||
| Line 158: | Line 124: | ||
| } | } | ||
| /* === Page  | /* === Page Title Heading (White) === */ | ||
| #firstHeading { | #firstHeading { | ||
|   color: #ffffff !important; | |||
|    font-family: "Lexend SemiBold", sans-serif !important; |    font-family: "Lexend SemiBold", sans-serif !important; | ||
| } | } | ||
| .mw-body h1 | /* === Body Headings (Black) === */ | ||
| .mw-body h4, .mw-body h5, .mw-body h6 { | .mw-body h1 { | ||
|    color:  |   color: #000000 !important; | ||
| } | |||
| /* === Body Headings (Descending) === */ | |||
| .mw-body h2, .mw-body h3 .mw-body h4, .mw-body h5, .mw-body h6 { | |||
|    color: #ffffff !important; | |||
| } | } | ||
| Line 194: | Line 166: | ||
| } | } | ||
| /*  | /* More Tab Container */ | ||
| #p-cactions { | #p-cactions { | ||
|    background-color: white !important; |    background-color: white !important; | ||
|    border-radius: 0 !important; |    border-radius: 0 !important; | ||
|    margin-left: 0 !important; |    margin-left: 0 !important; | ||
|    margin-right: 0 !important; |    margin-right: 0 !important; | ||
|    height:  |    height: 40px !important; | ||
|    display: flex !important; |    display: flex !important; | ||
|    align-items: center !important; |    align-items: center !important; | ||
|    justify-content: center !important; |    justify-content: center !important; | ||
|   padding: 0 !important; | |||
|   box-sizing: border-box; | |||
| } | } | ||
| /*  | /* Hover Box Click Space */ | ||
| #p-cactions .vector-menu-heading  | #p-cactions .vector-menu-heading { | ||
|    display: flex !important; |    display: flex !important; | ||
|    align-items: center !important; |    align-items: center !important; | ||
|    justify-content: center !important; |    justify-content: center !important; | ||
|   padding: 0 12px !important; | |||
|    height: 100% !important; |    height: 100% !important; | ||
|    width: 100% !important; |    width: 100% !important; | ||
|   cursor: pointer !important; | |||
| } | |||
| /* Text Stylization */ | |||
| #p-cactions .vector-menu-heading span { | |||
|   color: #900603 !important; | |||
|   font-weight: bold !important; | |||
|   font-size: 14px !important; | |||
|   line-height: 28px !important; | |||
|    text-align: center !important; |    text-align: center !important; | ||
|    width: 100%; | |||
| } | } | ||
| Line 243: | Line 222: | ||
| #p-navigation li a[href*="nationstates.net"]::before { | #p-navigation li a[href*="nationstates.net"]::before { | ||
|    background-image: url("/images/6/62/Nationstates.png"); |    background-image: url("/images/6/62/Nationstates.png"); | ||
| } | |||
| /* Universal Tab Styling */ | |||
| #p-views li a, | |||
| #ca-view a, | |||
| #ca-edit a, | |||
| #ca-history a, | |||
| #ca-talk a, | |||
| #ca-watch a, | |||
| #ca-unwatch a, | |||
| #p-cactions .vector-menu-heading a { | |||
|   color: #900603 !important; | |||
|   font-weight: bold !important; | |||
|   font-size: 14px !important; | |||
|   font-family: sans-serif !important; | |||
|   text-align: center !important; | |||
|   background-color: transparent !important; | |||
|   text-decoration: none !important; | |||
| } | |||
| /* Methodology */ | |||
| #p-views, .vectorTabs { | |||
|   display: flex; | |||
|   flex-wrap: nowrap; | |||
|   align-items: stretch; | |||
|   background: none; | |||
|   border: none; | |||
|   padding: 0; | |||
|   margin: 0; | |||
|   height: 40px; /* Adjustment Setting */ | |||
|   overflow: hidden; | |||
| } | |||
| /* Upscaling UI */ | |||
| #p-views li#ca-view a, | |||
| #p-views li#ca-edit a, | |||
| #p-views li#ca-editsource a, | |||
| #p-views li#ca-history a, | |||
| #p-cactions .vector-menu-heading a { | |||
|   font-size: 14px !important;  | |||
|   font-weight: bold !important; | |||
|   color: #900603 !important; | |||
|   line-height: 1.0 !important; | |||
|   text-align: center !important; | |||
|   padding: 24px 12px !important; | |||
|   display: flex !important; | |||
|   align-items: center !important; | |||
|   justify-content: center !important; | |||
|   height: 100% !important; | |||
|   box-sizing: border-box; | |||
| } | |||
| #p-namespaces li a { | |||
|   font-size: 14px !important; | |||
|   font-weight: bold !important; | |||
|   color: #900603 !important; | |||
|   line-height: 29px !important;   /* centers text vertically */ | |||
|   text-align: center !important; | |||
|   padding-top: 6px !important; | |||
|   padding-bottom: 0 !important; | |||
|   display: flex !important; | |||
|   align-items: center !important; | |||
|   justify-content: center !important; | |||
|   height: 40px !important;        /* match box height */ | |||
|   box-sizing: border-box; | |||
| } | |||
| #p-views li#ca-viewsource a { | |||
|   padding: 0 12px !important; | |||
|   line-height: 38px !important;  /* match your 40px tab height */ | |||
|   height: 47px !important; | |||
|   display: flex !important; | |||
|   align-items: center !important; | |||
|   justify-content: center !important; | |||
|   box-sizing: border-box; | |||
| } | |||
| #ca-ve-edit a { | |||
|   display: flex !important; | |||
|   align-items: center !important; | |||
|   justify-content: center !important; | |||
|   height: 47px !important; | |||
|   padding: 0 12px !important; | |||
|   font-size: 14px !important; | |||
|   font-weight: bold !important; | |||
|   color: #900603 !important; | |||
|   box-sizing: border-box !important; | |||
| } | |||
| #p-cactions .vector-menu-heading-label { | |||
|   color: #900603 !important; | |||
|   font-weight: bold !important; | |||
|   font-size: 14px !important; | |||
|   text-align: center !important; | |||
|   height: 100% !important; | |||
|   display: flex !important; | |||
|   align-items: center !important; | |||
|   justify-content: center !important; | |||
|   padding: 0 12px !important; | |||
|   box-sizing: border-box !important; | |||
| } | |||
| #p-cactions { | |||
|   margin-right: 0 !important; | |||
|   padding-right: 0 !important; | |||
| } | |||
| #p-cactions .vector-menu-heading { | |||
|   margin-right: 0 !important; | |||
|   padding-right: 0 !important; | |||
| } | |||
| #p-cactions .vector-menu-heading-label { | |||
|   margin-right: 0 !important; | |||
|   padding-right: 5px !important; | |||
| } | |||
| #p-cactions .vector-menu-heading-label { | |||
|   margin-left: 0 !important; | |||
|   padding-left: 5px !important; | |||
| } | |||
| #p-cactions .vector-menu-heading-label { | |||
|   padding-top: 7px !important; | |||
| } | |||
| #pt-userpage { | |||
|   position: relative; | |||
| } | |||
| #pt-userpage a::before { | |||
|   content: ""; | |||
|   position: absolute; | |||
|   left: -5px; | |||
|   top: 63%; | |||
|   transform: translateY(-50%); | |||
|   width: 16px; | |||
|   height: 16px; | |||
|   background-image: url("https://countrygame.net/images/8/81/User_icon.png"); | |||
|   background-size: contain; | |||
|   background-repeat: no-repeat; | |||
|   pointer-events: none; | |||
| } | |||
| /* === Page/Discussion Box */ | |||
| #p-namespaces .vector-menu-content-list { display:flex; align-items:stretch; gap:0; } | |||
| #p-namespaces .vector-menu-content-list > li { margin:0 !important; } | |||
| #p-namespaces .vector-menu-content-list > li > a { | |||
|   display:flex; align-items:center; justify-content:center; | |||
|   height:40px; padding:0 14px; box-sizing:border-box; border-bottom:0; | |||
| } | |||
| /* Glowing Effect for Profile Tabloid */ | |||
| #pt-userpage a:hover, | |||
| #pt-mytalk a:hover, | |||
| #pt-preferences a:hover, | |||
| #pt-watchlist a:hover, | |||
| #pt-mycontris a:hover, | |||
| #pt-logout a:hover { | |||
|   color: var(--runnina-hover) !important; | |||
|   text-shadow: 0 0 6px var(--runnina-hover) !important; | |||
| } | |||
| /* Glow Effect */ | |||
| #p-views li a:hover, | |||
| #ca-view a:hover, | |||
| #ca-talk a:hover, | |||
| #ca-edit a:hover, | |||
| #ca-editsource a:hover, | |||
| #ca-history a:hover, | |||
| #ca-watch a:hover, | |||
| #ca-unwatch a:hover, | |||
| #p-cactions .vector-menu-heading a:hover { | |||
|   text-shadow: | |||
|     0 0 2px #ff3b3b, | |||
|     0 0 4px #ff1a1a, | |||
|     0 0 8px #ff1a1a, | |||
|     0 0 12px #ff0000, | |||
|     0 0 16px #ff0000 !important; | |||
| } | |||
| /* Removal of Powered by MediaWiki Icon */ | |||
| #footer-poweredbyico picture, | |||
| #footer-poweredbyico img { | |||
|     display: none !important; | |||
| } | |||
| /*  Automated Links No Longer Pop Up */ | |||
| #footer-poweredbyico a { | |||
|     all: unset !important; | |||
|     display: block; | |||
|     width: fit-content; | |||
|     margin-left: auto; | |||
|     margin-right: auto; | |||
| } | |||
| /* Crystal-Clear Banner */ | |||
| #footer-poweredbyico { | |||
|     background-image: url("/images/5/5f/Powered_by_mediawiki_footer.png"); | |||
|     background-size: contain; | |||
|     background-repeat: no-repeat; | |||
|     background-position: center; | |||
|     width: 88px; | |||
|     height: 30px; | |||
|     position: absolute; | |||
|     bottom: -20px; | |||
|     right: 20px; | |||
| } | |||
| #footer { | |||
|     position: relative; | |||
| } | } | ||
Latest revision as of 21:59, 9 September 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("https://i.imgur.com/VADF1Az.gif") 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;
}
/* === 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;
  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: 30px;
  background: var(--white) url("https://i.imgur.com/eHOwynZ.png") no-repeat center center !important;
  background-size: 18px 18px !important;
}
/* === Personal Tabloid === */
#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;
}
/* === 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 Title Heading (White) === */
#firstHeading {
  color: #ffffff !important;
  font-family: "Lexend SemiBold", sans-serif !important;
}
/* === Body Headings (Black) === */
.mw-body h1 {
  color: #000000 !important;
}
/* === Body Headings (Descending) === */
.mw-body h2, .mw-body h3 .mw-body h4, .mw-body h5, .mw-body h6 {
  color: #ffffff !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;
}
/* More Tab Container */
#p-cactions {
  background-color: white !important;
  border-radius: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box;
}
/* Hover Box Click Space */
#p-cactions .vector-menu-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  height: 100% !important;
  width: 100% !important;
  cursor: pointer !important;
}
/* Text Stylization */
#p-cactions .vector-menu-heading span {
  color: #900603 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  line-height: 28px !important;
  text-align: center !important;
  width: 100%;
}
/* Sidebar Icons */
#p-navigation li a[href*="discord.gg"]::before,
#p-navigation li a[href*="nationstates.net"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: text-bottom;
}
/* Discord Icon */
#p-navigation li a[href*="discord.gg"]::before {
  background-image: url("https://countrygame.net/images/3/3a/Pixelated_discord_icon.png");
}
/* NationStates Icon */
#p-navigation li a[href*="nationstates.net"]::before {
  background-image: url("/images/6/62/Nationstates.png");
}
/* Universal Tab Styling */
#p-views li a,
#ca-view a,
#ca-edit a,
#ca-history a,
#ca-talk a,
#ca-watch a,
#ca-unwatch a,
#p-cactions .vector-menu-heading a {
  color: #900603 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  font-family: sans-serif !important;
  text-align: center !important;
  background-color: transparent !important;
  text-decoration: none !important;
}
/* Methodology */
#p-views, .vectorTabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  height: 40px; /* Adjustment Setting */
  overflow: hidden;
}
/* Upscaling UI */
#p-views li#ca-view a,
#p-views li#ca-edit a,
#p-views li#ca-editsource a,
#p-views li#ca-history a,
#p-cactions .vector-menu-heading a {
  font-size: 14px !important; 
  font-weight: bold !important;
  color: #900603 !important;
  line-height: 1.0 !important;
  text-align: center !important;
  padding: 24px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  box-sizing: border-box;
}
#p-namespaces li a {
  font-size: 14px !important;
  font-weight: bold !important;
  color: #900603 !important;
  line-height: 29px !important;   /* centers text vertically */
  text-align: center !important;
  padding-top: 6px !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;        /* match box height */
  box-sizing: border-box;
}
#p-views li#ca-viewsource a {
  padding: 0 12px !important;
  line-height: 38px !important;  /* match your 40px tab height */
  height: 47px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}
#ca-ve-edit a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 47px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #900603 !important;
  box-sizing: border-box !important;
}
#p-cactions .vector-menu-heading-label {
  color: #900603 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  text-align: center !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}
#p-cactions {
  margin-right: 0 !important;
  padding-right: 0 !important;
}
#p-cactions .vector-menu-heading {
  margin-right: 0 !important;
  padding-right: 0 !important;
}
#p-cactions .vector-menu-heading-label {
  margin-right: 0 !important;
  padding-right: 5px !important;
}
#p-cactions .vector-menu-heading-label {
  margin-left: 0 !important;
  padding-left: 5px !important;
}
#p-cactions .vector-menu-heading-label {
  padding-top: 7px !important;
}
#pt-userpage {
  position: relative;
}
#pt-userpage a::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 63%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("https://countrygame.net/images/8/81/User_icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
/* === Page/Discussion Box */
#p-namespaces .vector-menu-content-list { display:flex; align-items:stretch; gap:0; }
#p-namespaces .vector-menu-content-list > li { margin:0 !important; }
#p-namespaces .vector-menu-content-list > li > a {
  display:flex; align-items:center; justify-content:center;
  height:40px; padding:0 14px; box-sizing:border-box; border-bottom:0;
}
/* Glowing Effect for Profile Tabloid */
#pt-userpage a:hover,
#pt-mytalk a:hover,
#pt-preferences a:hover,
#pt-watchlist a:hover,
#pt-mycontris a:hover,
#pt-logout a:hover {
  color: var(--runnina-hover) !important;
  text-shadow: 0 0 6px var(--runnina-hover) !important;
}
/* Glow Effect */
#p-views li a:hover,
#ca-view a:hover,
#ca-talk a:hover,
#ca-edit a:hover,
#ca-editsource a:hover,
#ca-history a:hover,
#ca-watch a:hover,
#ca-unwatch a:hover,
#p-cactions .vector-menu-heading a:hover {
  text-shadow:
    0 0 2px #ff3b3b,
    0 0 4px #ff1a1a,
    0 0 8px #ff1a1a,
    0 0 12px #ff0000,
    0 0 16px #ff0000 !important;
}
/* Removal of Powered by MediaWiki Icon */
#footer-poweredbyico picture,
#footer-poweredbyico img {
    display: none !important;
}
/*  Automated Links No Longer Pop Up */
#footer-poweredbyico a {
    all: unset !important;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
/* Crystal-Clear Banner */
#footer-poweredbyico {
    background-image: url("/images/5/5f/Powered_by_mediawiki_footer.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 88px;
    height: 30px;
    position: absolute;
    bottom: -20px;
    right: 20px;
}
#footer {
    position: relative;
}
/* === 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");
}