Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | /* | + | /* Styles for tables with the class 'wikitable' */ |
− | + | table.wikitable { | |
− | + | background-color: #252525; /* Match body background color */ | |
− | + | color: #e6e6e6; /* Match body text color */ | |
− | background: #252525; | + | border: 1px solid #444241; /* Border color */ |
− | color: #e6e6e6 | + | border-collapse: collapse; /* Collapse borders */ |
− | + | width: 100%; /* Full width of the container */ | |
− | |||
− | /* | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | /* | ||
− | |||
− | |||
} | } | ||
− | /* | + | /* Styles for table headers */ |
− | + | table.wikitable th { | |
− | background-color: # | + | 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: # | + | background-color: #252525; /* Match body background color */ |
− | border: | + | 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 { | |
− | color: # | + | background-color: #343434; /* Match content background color */ |
} | } | ||
− | /* | + | /* Styles for links within the table */ |
− | a { | + | table.wikitable a { |
− | color: #90b7f9; | + | color: #90b7f9; /* Match link color */ |
− | |||
− | |||
− | |||
} | } | ||
− | + | table.wikitable a:visited { | |
− | + | color: #7a94bf; /* Adjusted for contrast */ | |
− | |||
− | |||
− | |||
− | color: # | ||
} | } | ||
− | + | table.wikitable a:hover { | |
− | + | color: #c70039; /* Match hover link color */ | |
− | + | text-decoration: underline; /* Underline links on hover */ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } |
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 */ }