MediaWiki:Timeless.css
From Animal Crossing Mods Wiki
Revision as of 09:31, 14 September 2021 by PanchamBro (talk | contribs) (fixing li on smaller screens)
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.
/* All CSS here will be loaded for users of the Timeless skin */
/* Header changes */
.mw-body h1.firstHeading {
margin: 0.25em 0 0.5em;
border-bottom: solid 4px #bfa398;
font-family: 'Varela Round', sans-serif;
font-size: 1.8em;
}
#mw-header-container {
background: #93ceae;
}
.color-middle, .color-left, .color-right {
background-color: #beffdc !important;
}
/* Sidebar changes */
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
background:#fff1d7;
color:#524434;
display: contents;
}
#mw-site-navigation .sidebar-chunk ul, #mw-site-navigation .sidebar-chunk li, #mw-related-navigation .sidebar-chunk ul, #mw-related-navigation .sidebar-chunk li {
list-style: none;
margin: 0 auto;
padding: 0;
width: 12em;
}
.mw-portlet-body a {
text-align: center;
padding: 0.25em 0;
display: block;
color: #000;
cursor: pointer !important;
font-family: 'Varela Round', sans-serif;
}
#mw-site-navigation .sidebar-chunk li, #mw-related-navigation .sidebar-chunk .mw-portlet-body li {
padding: 0.25em 0;
background-color: #bfb3a1;
border-radius: 10em;
margin-bottom: 5px;
box-shadow: rgb(162, 144, 115) 0px 3px 0px 0px;
}
#mw-site-navigation .sidebar-chunk li:hover, #mw-related-navigation .sidebar-chunk .mw-portlet-body li:hover {
background: #dfdac0;
transition: background-color 0.3s cubic-bezier(0.25,0.8,0.5,1),opacity 0.4s cubic-bezier(0.25,0.8,0.5,1);
border-radius: 10em;
}
#mw-site-navigation .sidebar-chunk h3, #mw-related-navigation .sidebar-chunk h3 {
font-weight:normal;
font-size:1em;
background-color: rgba(101, 90, 75, 0.6);
justify-content: center;
display: flex;
padding: 0.5em 0;
text-align: center;
transition: color 0.3s,background-color 0.3s;
box-sizing: inherit;
color: #fff !important;
margin: 0;
border-radius: 10em;
font-family: 'Varela Round', sans-serif;
margin-top:1em;
box-shadow: rgb(106, 99, 87) 0px 3px 0px 0px;
margin-bottom: 5px;
border-bottom: none;
}
@media screen and (max-width:850px) {
.sidebar-inner, .dropdown {
display: none;
background: #f8f9fa;
border-width: 1px 1px 0.2em;
padding: 1.25em 1.75em;
box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02);
padding: 1.5em 1.5em 0;
margin: 1em 0;
line-height: 0.5;
word-wrap: break-word;
font-size: 0.95em;
background: #ddd8c4;
box-shadow: 0 2px 3px 1px rgba(0,0,0,0.05);
position: absolute;
padding: 2em 2.5em 1em;
margin: 0;
min-width: 9.153em;
max-width: 80%;
top: 3.25em;
right: 0;
overflow: visible;
z-index: 100;
border-radius: 1em;
}
#mw-site-navigation .sidebar-chunk ul, #mw-site-navigation .sidebar-chunk li, #mw-related-navigation .sidebar-chunk ul, #mw-related-navigation .sidebar-chunk li {
list-style: none;
margin: 0 auto;
padding: 0;
width: auto;
}
}
/* Full width sidebar on mobile */
@media screen and (max-width: 850px) {
#site-navigation .sidebar-inner {
margin: auto;
left: 0px;
right: 0px;
width: 100%;
}
/* Make the buttons a bit bigger on mobile */
.sidebar-inner li, .dropdown li {
font-size: 20px;
}
#mw-site-navigation .sidebar-chunk h3, #mw-related-navigation .sidebar-chunk h3 {
font-size: 2em;
}
}