MediaWiki:Common.css: Difference between revisions
From Hidden Mickey Wiki
No edit summary |
No edit summary |
||
| Line 41: | Line 41: | ||
} | } | ||
/* Make | /* Make every link inside any sidebar easier to click */ | ||
div[id*="panel"] a, | |||
div[class*="sidebar"] a, | |||
div[class*="portlet"] a, | |||
display: block; | nav a, | ||
padding: 12px 16px; | ul a, | ||
margin: 2px 0; | li a { | ||
border-radius: 4px; | display: block; /* whole area clickable */ | ||
text-decoration: none; | padding: 12px 16px; /* increase tap area */ | ||
margin: 2px 0; /* optional spacing */ | |||
border-radius: 4px; /* optional styling */ | |||
text-decoration: none; /* remove underline */ | |||
} | } | ||
div[id*="panel"] a:hover, | |||
div[class*="sidebar"] a:hover, | |||
div[class*="portlet"] a:hover, | |||
background-color: #e0e0e0; /* | nav a:hover, | ||
ul a:hover, | |||
li a:hover { | |||
background-color: #e0e0e0; /* highlight on hover/tap */ | |||
} | |||
/* Optional: increase size on small screens */ | |||
@media (max-width: 768px) { | |||
div[id*="panel"] a, | |||
div[class*="sidebar"] a, | |||
div[class*="portlet"] a, | |||
nav a, | |||
ul a, | |||
li a { | |||
font-size: 1.2em; | |||
padding: 16px 20px; | |||
} | |||
} | } | ||
Revision as of 18:46, 21 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; }
/* Change title bar, enables <title> to be different from display
@media (min-width: 768px) { .mw-desktop-sitename { visibility: hidden; position: relative; } }
@media (min-width: 768px) { .mw-desktop-sitename::after { content: "Hidden Mickey Wiki"; visibility: visible; position: absolute; top: 0; left: 0; } }
*/
/* Hide DIVs whose class attribute is exactly "d-flex flex-row" or "flex-row d-flex" */
div[class="d-flex flex-row"],
div[class="flex-row d-flex"] {
display: none !important;
}
/* Pull main content up while keeping page title just below navbar */
#content,
.mw-body,
.mw-body-content,
#mw-content {
margin-top: -20px !important; /* adjust to move content closer */
padding-top: 0 !important;
}
#firstHeading {
margin-top: 0 !important; /* keeps page title under navbar */
padding-top: 0 !important;
}
/* Add gap between page title horizontal line and Table of Contents */
.toc {
margin-top: 10px !important; /* adjust number to control gap */
}
/* Make every link inside any sidebar easier to click */
div[id*="panel"] a,
div[class*="sidebar"] a,
div[class*="portlet"] a,
nav a,
ul a,
li a {
display: block; /* whole area clickable */
padding: 12px 16px; /* increase tap area */
margin: 2px 0; /* optional spacing */
border-radius: 4px; /* optional styling */
text-decoration: none; /* remove underline */
}
div[id*="panel"] a:hover,
div[class*="sidebar"] a:hover,
div[class*="portlet"] a:hover,
nav a:hover,
ul a:hover,
li a:hover {
background-color: #e0e0e0; /* highlight on hover/tap */
}
/* Optional: increase size on small screens */
@media (max-width: 768px) {
div[id*="panel"] a,
div[class*="sidebar"] a,
div[class*="portlet"] a,
nav a,
ul a,
li a {
font-size: 1.2em;
padding: 16px 20px;
}
}