MediaWiki:Common.css
From Hidden Mickey Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* 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 where class="d-flex flex-row" or class="flex-row d-flex", which removes "Page / Action / Tools" dropdowns */
div[class="d-flex flex-row"], div[class="flex-row d-flex"] { display: none !important; }
/* Shrink top gap in main content page */
#content,.mw-body,.mw-body-content { margin-top: -15px !important; padding-top: 0 !important; line-height: 1.5 !important; }
/* Medik sidebar shrink */
body.skin-medik #mw-navigation { width: 280px; min-width: 280px; } /* enforce minimum width */
body.skin-medik #mw-panel { max-width: 280px; } /* ensure panel items don’t overflow */
/* Center sidebar items in Medik skin */
#mw-navigation { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Optional: adjust individual links if needed */
#mw-navigation li { width: 100%; /* let links fill the available width */ }
/* Make sidebar items centered and highlighted */
#mw-navigation li {
background-color: #f0f0f0; /* light gray */
border-radius: 5px;
margin: 4px 0;
padding: 6px 10px;
display: inline-block; /* make the box shrink to content */
text-align: center;
cursor: pointer;
transition: background-color 0.2s;
font-weight: bold; /* bold text */
}
/* Center the li boxes in the sidebar */
#mw-navigation ul {
display: flex;
flex-direction: column;
align-items: center; /* center the inline-block li elements */
padding: 0; /* remove default UL padding */
list-style: none; /* optional: remove bullets */
}
/* Hover effect */
#mw-navigation li:hover { background-color: #dcdcdc; }
@media (min-width: 992px) {
/* 1) kill the bootstrap gutter for Medik container rows (forceful) */
.skin-medik .mw-body .container > .row,
.skin-medik .container > .row {
--bs-gutter-x: 0 !important;
}
/* 2) remove extra column padding that creates the visual gap */
.skin-medik .mw-body .container > .row > [class*="col-"] {
padding-left: .25rem !important;
padding-right: .25rem !important;
}
/* 3) allow visible overflow so transforms aren't clipped */
.skin-medik .container,
.skin-medik .mw-body,
.skin-medik .mw-body .container > .row {
overflow: visible !important;
}
/* 4) visual nudge of content (adjust -8 / -12 px to taste) */
.mw-body-content,
#mw-content-text {
position: relative;
transform: translateX(-10px);
will-change: transform;
z-index: 5; /* sit above any decorative element */
}
/* 5) make sure the sidebar stays behind visually */
.skin-medik .sidebar,
.skin-medik .mw-sidebar {
position: relative;
z-index: 2;
}
}
@media (min-width: 992px) {
/* shift the page header/title to match content */
.skin-medik .mw-body .page-header,
.skin-medik .mw-body .firstHeading {
position: relative;
transform: translateX(-10px); /* match the same shift you used for content */
will-change: transform;
z-index: 5;
}
}