MediaWiki:Common.css: Difference between revisions
From Hidden Mickey Wiki
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
.col-12.col-md-9.col-xl-10.py-md-3.px-md-5 { | .col-12.col-md-9.col-xl-10.py-md-3.px-md-5 { | ||
flex: 0 0 calc(100% - | flex: 0 0 calc(100% - 200px) !important; /* 250px = sidebar width */ | ||
max-width: calc(100% - | max-width: calc(100% - 200px) !important; | ||
padding-left: 1rem !important; | padding-left: 1rem !important; | ||
padding-right: 1rem !important; | padding-right: 1rem !important; | ||
Revision as of 15:44, 28 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 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: -20px !important; padding-top: 0px !important; line-height: 1.5 !important; }
/* Medik sidebar shrink */
body.skin-medik #mw-navigation { width: 270px; min-width: 270px; } /* enforce minimum width */
body.skin-medik #mw-panel { max-width: 270px; } /* 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;
border-radius: 2px; margin: 2px 0; padding: 2px 4px; 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, and add a hover effect */
#mw-navigation ul { display: flex; flex-direction: column; align-items: center; padding: 0; list-style: none; }
#mw-navigation li:hover { background-color: #dcdcdc; }
.col-12.col-md-9.col-xl-10.py-md-3.px-md-5 {
flex: 0 0 calc(100% - 200px) !important; /* 250px = sidebar width */
max-width: calc(100% - 200px) !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
}
/* This CSS moved the content below the sidebar
.col-12.col-md-9.col-xl-10.py-md-3.px-md-5 {
flex: 0 0 100% !important;
max-width: 100% !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
} */