Difference between revisions of "MediaWiki:Common.css"

From Filtered, Archived, Gaslit Wiki
Jump to navigation Jump to search
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
+
/* Styles for tables with the class 'wikitable' */
 
+
table.wikitable {
/* Set body text color */
+
     background-color: #252525; /* Match body background color */
body {  
+
     color: #e6e6e6; /* Match body text color */
     background: #252525;  
+
    border: 1px solid #444241; /* Border color */
     color: #e6e6e6 !important; /* Force text color */
+
     border-collapse: collapse; /* Collapse borders */
}
+
    width: 100%; /* Full width of the container */
 
 
/* Background color of the content and title of pages */
 
#content {
 
     background-color: #252525;
 
    color: #e6e6e6 !important; /* Force text color */
 
}
 
 
 
/* Sets background color of the logo area  */
 
#p-logo {
 
    background-color: #252525;
 
 
}
 
}
  
/* Navigation menu */
+
/* Styles for table headers */
#p-navigation {  
+
table.wikitable th {
     background-color: #252525;  
+
     background-color: #343434; /* Match content background color */
 +
    color: #e6e6e6; /* Match text color */
 +
    border: 2px solid #e6e6e6; /* Border color for headers */
 +
    padding: 8px; /* Padding inside header cells */
 +
    text-align: left; /* Align text to the left */
 
}
 
}
  
/* Table of contents */
+
/* Styles for table data cells */
.mw-parser-output .toc {
+
table.wikitable td {
     background-color: #343434;  
+
     background-color: #252525; /* Match body background color */
     border: 1px solid #444241;  
+
    color: #e6e6e6; /* Match text color */
 +
     border: 2px solid #e6e6e6; /* Border color for data cells */
 +
    padding: 8px; /* Padding inside data cells */
 
}
 
}
  
/* Headings */
+
/* Styles for even table rows */
h1, h2, h3 {
+
table.wikitable tr:nth-child(even) td {
     color: #e6e6e6 !important; /* Force heading colors */
+
     background-color: #343434; /* Match content background color */
 
}
 
}
  
/* Links */
+
/* Styles for links within the table */
a {
+
table.wikitable a {
     color: #90b7f9;  
+
     color: #90b7f9; /* Match link color */
}
 
a:hover {
 
    color: #c70039;
 
 
}
 
}
  
/* Top bar */
+
table.wikitable a:visited {
#mw-head {
+
     color: #7a94bf; /* Adjusted for contrast */
    background-color: #252525;
 
}
 
#mw-head a {
 
     color: #e6e6e6 !important; /* Force link color in top bar */
 
 
}
 
}
  
/* View, edit, history bar */
+
table.wikitable a:hover {
#ca-view,
+
     color: #c70039; /* Match hover link color */
#ca-edit,
+
     text-decoration: underline; /* Underline links on hover */
#ca-history {
 
     background-color: #7f7f7f;
 
    color: #e6e6e6 !important; /* Force text color */
 
}
 
 
 
/* Notable members table */
 
.notable-members {
 
     background-color: #343434 !important;
 
    color: #e6e6e6 !important;
 
}
 
.notable-members th, .notable-members td {
 
    border: 2px solid #e6e6e6;
 
    color: #e6e6e6 !important; /* Force cell text color */
 
 
}
 
}

Revision as of 19:54, 4 May 2025

/* Styles for tables with the class 'wikitable' */
table.wikitable {
    background-color: #252525; /* Match body background color */
    color: #e6e6e6; /* Match body text color */
    border: 1px solid #444241; /* Border color */
    border-collapse: collapse; /* Collapse borders */
    width: 100%; /* Full width of the container */
}

/* Styles for table headers */
table.wikitable th {
    background-color: #343434; /* Match content background color */
    color: #e6e6e6; /* Match text color */
    border: 2px solid #e6e6e6; /* Border color for headers */
    padding: 8px; /* Padding inside header cells */
    text-align: left; /* Align text to the left */
}

/* Styles for table data cells */
table.wikitable td {
    background-color: #252525; /* Match body background color */
    color: #e6e6e6; /* Match text color */
    border: 2px solid #e6e6e6; /* Border color for data cells */
    padding: 8px; /* Padding inside data cells */
}

/* Styles for even table rows */
table.wikitable tr:nth-child(even) td {
    background-color: #343434; /* Match content background color */
}

/* Styles for links within the table */
table.wikitable a {
    color: #90b7f9; /* Match link color */
}

table.wikitable a:visited {
    color: #7a94bf; /* Adjusted for contrast */
}

table.wikitable a:hover {
    color: #c70039; /* Match hover link color */
    text-decoration: underline; /* Underline links on hover */
}