MediaWiki:Common.css: Difference between revisions
mNo edit summary Tag: Manual revert |
mNo edit summary Tag: Reverted |
||
| Line 38: | Line 38: | ||
/* === CategoryTree Container === */ | /* === CategoryTree Container === */ | ||
.CategoryTreeTag { | .CategoryTreeTag { | ||
font-family: "Courier New", monospace; | /*font-family: "Courier New", monospace;*/ | ||
font-size: 14px; | /*font-size: 14px;*/ | ||
color: #333333; /* dark gray for readability */ | /*color: #333333;*/ /* dark gray for readability */ | ||
margin: 10px 0; | margin: 10px 0; | ||
} | } | ||
Revision as of 02:11, 16 November 2025
/* CSS placed here will be applied to all skins */
/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto&display=swap');
/* Apply background to the whole page wrapper */
.mw-page-container {
background-color: #ffffff; /* base white */
background-image: linear-gradient(90deg, #e0e0e0 1px, transparent 1px),
linear-gradient(#e0e0e0 1px, transparent 1px);
background-size: 20px 20px; /* grid size */
}
/* Keep the content readable with a solid background */
#content {
background-color: #ffffff;
border: 2px solid #007acc; /* accent border */
padding: 20px;
}
#mw-panel {
background-color: #fafafa;
border-right: 2px solid #007acc;
}
a.mw-logo:link,
a.mw-logo:visited {
color: #0645ad; /* MediaWiki default blue */
}
/* === CategoryTree Container === */
.CategoryTreeTag {
/*font-family: "Courier New", monospace;*/
/*font-size: 14px;*/
/*color: #333333;*/ /* dark gray for readability */
margin: 10px 0;
}
/* === Tree Items === */
.CategoryTreeItem {
list-style-type: none; /* remove default bullets */
margin: 4px 0;
padding: 4px 8px;
border-left: 2px solid #007acc; /* blue accent line */
transition: background-color 0.2s ease;
}
.CategoryTreeItem:hover {
background-color: #f0f8ff; /* very light blue highlight */
color: #cc3300; /* warm red accent on hover */
}
/* === Links inside Tree === */
.CategoryTreeItem a:link,
.CategoryTreeItem a:visited {
color: #007acc; /* consistent blue links */
text-decoration: none;
font-weight: bold;
}
.CategoryTreeItem a:hover {
color: #cc3300; /* red hover */
text-decoration: underline;
}
/* === Nested Children === */
.CategoryTreeChildren {
margin-left: 20px; /* indent child categories */
border-left: 1px dashed #cccccc; /* subtle gray divider */
padding-left: 10px;
}
/* === Expand/Collapse Icons === */
.CategoryTreeToggle {
cursor: pointer;
color: #007acc; /* blue toggle */
font-weight: bold;
}
.CategoryTreeToggle:hover {
color: #cc3300; /* red hover */
}