MediaWiki:Medik.css
Aus Wetzipedia
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Ctrl+F5 oder Ctrl+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Ctrl+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Ctrl+F5 drücken oder Ctrl drücken und gleichzeitig Aktualisieren anklicken
- Opera: Ctrl+F5
/* MediaWiki * Adjust text color in (mobile) navbar */ .mw-desktop-sitename, #user-tools button, div#mw-navbar-left div#p-logo.mw-portlet span.mw-hamb, div#p-logo.mw-portlet a#p-banner.mw-wiki-title.navbar-brand { color: #9a9a9a; } /* MediaWiki * Adjust text in mobile navbar to be uppercase */ .mw-mobile-sitename { text-transform: uppercase; } /* MediaWiki * Hide wiki name in desktop navbar */ .mw-desktop-sitename { color: #e8e8e8; } /* MediaWiki * Adjust color of profile icon in mobile navbar */ .profile-icon { background-color: #9a9a9a; border: 1px solid #9a9a9a; } .profile-icon::before { background-color: #9a9a9a; border: 1px solid #9a9a9a; } /* MediaWiki * Adjust logo height */ div#site-navigation div.mw-wiki-navigation-logo a.mw-wiki-logo { height: 125px; } /* MediaWiki * Resize search input field */ #searchInput { max-width: 100%; width: 600px; } /* MediaWiki * Remove title from Hauptseite */ body.page-Hauptseite h1.firstHeading { display: none; } /* MediaWiki * Highlight link to Hauptseite */ #n-mainpage-description { font-weight: bold; } /* MediaWiki * Make portlet headers match link to Hauptseite */ a#p-Kategorien-label.nav-link.disabled { color: #808080; } /* MediaWiki * Adjust first heading to Wetzikon homepage */ .firstHeading { border-bottom: 5px solid #f31505; } /* MediaWiki * Add border to the right of the main content area */ .col-12.col-md-9.col-xl-8.py-md-3.px-md-5 { border-right: 1px solid #e5e5e5; } /* MediaWiki * Reduce the padding to the bottom of the main content area */ #content { padding: 1em 0 1em 0; } /* MediaWiki * Undo TOC floating to the right introduced with https://bitbucket.org/wikiskripta/medik/commits/e37078965cddb3d22e7e516d2b4b491a4c2f336d */ #toc.toc { float: none; } /* MediaWiki * Make category links less dominant */ .catlinks { border-top: 1px solid #a2a9b1; border-bottom: none; border-right: none; border-left: none; background-color: #fff; margin-top: 2.5em; } /* MediaWiki * Center the content of the respective div */ .center { display: flex; align-items: center; justify-content: center } .center p { margin: 0 } /* MediaWiki * Make dropdown menu active item grey */ .dropdown-item.active, .dropdown-item:hover { font-weight: bold; background-color: #e8e8e8; } /* MediaWiki * Make button appear in wiki grey */ .btn.focus, .btn:focus { box-shadow: 0 0 0 .2rem #9a9a9a; } /* MediaWiki * Do main page magic */ #masthead, #portal-content, #portal-content-flex, #footer { margin-top: 1rem; min-width : 16em; } /* MediaWiki * Do musthead magic */ #masthead { background: linear-gradient(to right, white, #fde7e6); } @media (max-width: 720px) { #masthead { display: none; } } #masthead, .portal-frame, .portal-frame h2 { /* border-bottom: 3px solid #fbb8b4; */ } .masthead-title h2 { border: none; font-size: 1.95em; height: 2rem; line-height: 1.25em; margin: 0.75rem 0 0; } .masthead-title p { height: 1.5rem; margin: 0 0 0.75rem; } .masthead-contents { overflow: hidden; page-break-inside: avoid; column-count: 3; column-width: 8.5rem; column-gap: 1rem; margin-bottom: 0.5rem; } .masthead-contents ul { margin: 0; list-style :none; } .masthead-contents ul li { margin: 0; font-weight: bold; line-height: 1.5rem; } .masthead-intro { padding: 0 1rem; } /* MediaWiki * Do portal magic */ #portal-content::after, #portal-content-flex::after { clear: both; display: table; content: ''; } @media (max-width: 981px) { .portal-left, .portal-right { /* width: 0% !important */ } } @media (min-width: 982px) { .masthead-columns { column-count: 2; column-gap: 1rem; column-width: 18rem; } #portal-content-flex { display: flex; } .portal-left, .portal-right { display: flex; flex-direction: column; } .portal-left { float: left; width: 62%; padding-right: 0.5rem; } .portal-right { float: right; width: 38%; padding-left: 0.5rem; } .portal-frame:nth-child(1) { flex-grow: 1; } .portal-frame:nth-child(2) { flex-grow: 2; } .portal-frame:nth-child(3) { flex-grow: 3; } .portal-frame:nth-child(4) { flex-grow: 4; } } .portal-frame { line-height: 1.5rem; margin-bottom: 1rem; padding: 1rem 1rem 5px; background-color: #fff; } .portal-frame .floatleft, .portal-frame .floatright { margin: 0.25em 0 0.5em 0.5em; } .portal-frame h2 { line-height: 1.5rem; margin: 0 0 0.5rem; padding: 0 0 5px; } .portal-frame h2 img { float: left; padding-right: 0.5rem; } .portal-frame p, .portal-frame .hlist ul { margin: 0.5rem 0 } .portal-frame ul { margin: 0.5rem 0 0.5rem 0.875rem; } .portal-footer ul { margin: 0.5rem 0; font-size: 0.875em; font-weight: bold; text-align: right; } .portal-frame ul ul { margin-top: 0; } .portal-frame li { line-height: 1.5rem; margin-bottom: 0; } /* MediaWiki * Make footer more visible */ #footer { /* border-bottom: 3px solid #fbb8b4; */ background: #e8e8e8; } #footer p { margin: 0; line-height: 1.5rem; padding: 0.5rem 1rem 5px; text-align: center; }