MediaWiki:Common.css
From EQOA Sandstorm Wiki
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.
/* CSS placed here will be applied to all skins */
/* Apply styles to the main content area of all special pages */
.ns--1 #content {
font-size: 16px; /* Adjust font size */
font-family: Arial, sans-serif; /* Adjust font type */
color: #FFD700; /* Adjust font color */
font-style: normal; /* Adjust font style */
background-color: #c4c4c4; /* Adjust background color */
}
/* Exclude Content Header box */
.ns--1 #content .content-header {
color: inherit; /* Keep default font color for content header */
background-color: inherit; /* Keep default background color for content header */
}
/* Ensure links in the main content area of special pages follow the same styling */
.ns--1 #content > :not(.content-header) a {
font-size: 16px; /* Adjust font size for links */
font-family: Arial, sans-serif; /* Adjust font type for links */
color: #FFD700 !important; /* Adjust font color for links */
font-style: normal; /* Adjust font style for links */
text-decoration: none; /* Remove underline from links */
}
/* Ensure visited links in the main content area of special pages follow the same styling */
.ns--1 #content > :not(.content-header) a:visited {
color: #FFD700 !important; /* Adjust font color for visited links */
}
/* Ensure links in the main content area of special pages follow the same styling on hover */
.ns--1 #content > :not(.content-header) a:hover {
color: #8e2631 !important; /* Adjust font color for links on hover */
text-decoration: underline; /* Underline links on hover */
}
/* Apply the same style for URL text or any external links */
.ns--1 #content > :not(.content-header) a.external {
font-size: 16px; /* Adjust font size for external links */
font-family: Arial, sans-serif; /* Adjust font type for external links */
color: #8e2631 !important; /* Adjust font color for external links */
font-style: normal; /* Adjust font style for external links */
text-decoration: none; /* Remove underline from external links */
}
/* Ensure external links in the main content area follow the same styling on hover */
.ns--1 #content > :not(.content-header) a.external:hover {
color: #8e2631 !important; /* Adjust font color for external links on hover */
text-decoration: underline; /* Underline external links on hover */
}
/* Style headers in the main content area of special pages */
.ns--1 #content > :not(.content-header) h1,
.ns--1 #content > :not(.content-header) h2,
.ns--1 #content > :not(.content-header) h3,
.ns--1 #content > :not(.content-header) h4,
.ns--1 #content > :not(.content-header) h5,
.ns--1 #content > :not(.content-header) h6 {
font-size: 24px; /* Adjust font size for headers */
font-family: Arial, sans-serif; /* Adjust font type for headers */
color: #8e2631; /* Adjust font color for headers */
font-style: normal; /* Adjust font style for headers */
}
/* Style headers in the main content area of special pages on hover */
.ns--1 #content > :not(.content-header) h1:hover,
.ns--1 #content > :not(.content-header) h2:hover,
.ns--1 #content > :not(.content-header) h3:hover,
.ns--1 #content > :not(.content-header) h4:hover,
.ns--1 #content > :not(.content-header) h5:hover,
.ns--1 #content > :not(.content-header) h6:hover {
color: #8e2631; /* Adjust font color for headers on hover */
}
/* === GLOBAL BACKGROUND THEME WITH TRANSPARENT LOGO SUPPORT === */
/* Set the base background color across the entire site */
html, body {
background-color: #405b74 !important;
background-image: none !important;
}
/* Apply background to major MediaWiki structural areas */
#mw-page-base,
#mw-head-base,
#mw-head,
#mw-panel,
#mw-sidebar,
#content,
#footer,
#mw-footer,
#mw-data-after-content {
background-color: #405b74 !important;
background-image: none !important;
border: none !important;
}
/* Sidebar text styling */
#mw-panel,
#mw-panel a,
#mw-panel h3 {
color: #ffffff !important;
}
/* Sidebar link hover color to match orange accent */
#mw-panel a:hover {
color: #f68825 !important;
text-decoration: underline;
}
/* Remove white background behind content area */
#mw-content-text,
#contentSub,
#siteSub,
#bodyContent {
background: none !important;
}
/* Keep body text dark for contrast inside content boxes */
.mw-body,
#mw-content-text {
color: #000000;
}
/* === LOGO AREA FIX === */
/* Keep the logo area background transparent so the image shows */
#p-logo,
#p-logo a {
background: none !important; /* Remove forced blue background */
border: none !important;
}
/* Ensure the transparent logo displays fully and centers correctly */
#p-logo a {
display: block;
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
/* Optional: match background color behind transparent areas of the logo */
#p-logo {
background-color: #405b74 !important; /* Keeps blue behind transparency */
}