MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 6: | Line 6: | ||
.mw-content-ltr ul,.mw-content-rtl .mw-content-ltr ul { | .mw-content-ltr ul,.mw-content-rtl .mw-content-ltr ul { | ||
margin: 0.3em 0 0 | margin: 0.3em 0 0 1.2em; | ||
} | |||
.mw-content-ltr ol,.mw-content-rtl .mw-content-ltr ol { | |||
margin: 0.3em 0 0 1.6em; | |||
padding: 0 | |||
} | } | ||
Latest revision as of 15:57, 18 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');
.mw-content-ltr ul,.mw-content-rtl .mw-content-ltr ul {
margin: 0.3em 0 0 1.2em;
}
.mw-content-ltr ol,.mw-content-rtl .mw-content-ltr ol {
margin: 0.3em 0 0 1.6em;
padding: 0
}
/* 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 */
}
/* visualClear CSS class definition for SocialProfile extension
because Vector does not include the definition anymore; see
https://phabricator.wikimedia.org/T328235 and
https://phabricator.wikimedia.org/T287962 */
.visualClear {
clear: both;
}