MediaWiki:Common.css: Difference between revisions
From Hidden Mickey Wiki
No edit summary |
No edit summary |
||
| Line 46: | Line 46: | ||
#mw-navigation li { | #mw-navigation li { | ||
width: 100%; /* let links fill the available width */ | width: 100%; /* let links fill the available width */ | ||
} | |||
/* Highlight sidebar items with gray boxes */ | |||
#mw-navigation li { | |||
background-color: #f0f0f0; /* light gray */ | |||
border-radius: 5px; /* rounded corners for nicer look */ | |||
margin: 4px 0; /* space between items */ | |||
padding: 6px 10px; /* padding inside the box */ | |||
width: 90%; /* optional: keeps boxes slightly narrower than full sidebar */ | |||
box-sizing: border-box; /* ensures padding doesn't break width */ | |||
text-align: center; /* keep text centered */ | |||
cursor: pointer; /* indicates clickable */ | |||
transition: background-color 0.2s; /* smooth hover effect */ | |||
} | |||
/* Optional: hover effect */ | |||
#mw-navigation li:hover { | |||
background-color: #dcdcdc; /* slightly darker gray on hover */ | |||
} | } | ||
Revision as of 10:30, 24 September 2025
/* CSS placed here will be applied to all skins */
/* Quote boxes */
blockquote { background-color: #e9ecef;padding: 5px;border-radius: 3px;font-style: italic;max-width: 860pt;word-wrap: break-word; }
blockquote cite { display: block;margin-top: 5px;font-size: 0.9em;color: #555;text-align: left; }
/* Disneyland fonts for the title bar; use larger font for desktop computers */
@font-face { font-family: 'Waltograph';src: url('/images/f/fb/Waltograph42.otf') format('opentype'); }
#p-logo a { font-family: 'Waltograph', sans-serif;font-size: 28px; }
@media (min-width: 768px) { #p-logo a { font-family: 'Waltograph', sans-serif;font-size: 42px; } }
/* Disable Discussion pages */
#ca-talk, .mw-indicator-talkpages { display: none !important; }
/* Hide DIVs whose class attribute is exactly "d-flex flex-row" or "flex-row d-flex"
This causes the "Page / Action / Tools" dropdowns to disappear */
div[class="d-flex flex-row"], div[class="flex-row d-flex"] { display: none !important; }
/* Shrink the top gap in main content page */
#content,
.mw-body,
.mw-body-content {
margin-top: -15px !important;
padding-top: 0 !important; /* don’t fight margin with padding */
line-height: 1.5 !important; /* ensure consistent vertical rhythm */
}
/* Medik sidebar shrink */
body.skin-medik #mw-navigation {
width: 250px; /* desired width */
min-width: 250px; /* enforce minimum width */
}
body.skin-medik #mw-panel {
max-width: 250px; /* ensure panel items don’t overflow */
}
/* Center sidebar items in Medik skin */
#mw-navigation {
display: flex;
flex-direction: column; /* keep items stacked vertically */
align-items: center; /* horizontally center items */
text-align: center; /* ensure text is centered too */
}
/* Optional: adjust individual links if needed */
#mw-navigation li {
width: 100%; /* let links fill the available width */
}
/* Highlight sidebar items with gray boxes */
#mw-navigation li {
background-color: #f0f0f0; /* light gray */
border-radius: 5px; /* rounded corners for nicer look */
margin: 4px 0; /* space between items */
padding: 6px 10px; /* padding inside the box */
width: 90%; /* optional: keeps boxes slightly narrower than full sidebar */
box-sizing: border-box; /* ensures padding doesn't break width */
text-align: center; /* keep text centered */
cursor: pointer; /* indicates clickable */
transition: background-color 0.2s; /* smooth hover effect */
}
/* Optional: hover effect */
#mw-navigation li:hover {
background-color: #dcdcdc; /* slightly darker gray on hover */
}