MediaWiki:Common.css
From Timebomb Madness 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.
/* Credit to Wild for making the original theme */
/* MediaWiki CSS conversion from Fandom */
/* Font imports */
@import url('https://fonts.cdnfonts.com/css/metropolis-2?styles=21176');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Press+Start+2P&family=Unbounded:[email protected]&display=swap');
/* Custom font declarations */
@font-face {
font-family: Gotham;
src: url('https://static.miraheze.org/phightingwiki/b/b2/Gotham_Medium.woff2') format('woff2'),
url('https://static.miraheze.org/phightingwiki/2/20/Gotham_Medium.ttf') format('truetype');
}
@font-face {
font-family: Gotham;
font-weight: bold;
src: url('https://static.miraheze.org/phightingwiki/7/7c/Gotham_Black_Regular.woff2') format('woff2'),
url('https://static.miraheze.org/phightingwiki/4/4e/Gotham_Black_Regular.ttf') format('truetype');
}
/* General styles */
body {
font-family: 'Montserrat', sans-serif;
}
/* Top bar font modernization */
#mw-header *,
#mw-site-navigation *,
#mw-related-navigation * {
font-family: 'Segoe UI','Segoe UI Emoji','Segoe UI Symbol','Lato','Liberation Sans','Noto Sans','Helvetica Neue','Helvetica',sans-serif;
}
/* Avoid cutting off letters with descenders: g,j,p,q,y */
#personal h2 span {
height: 1.5em;
position:relative;
bottom:0.1em
}
/* Triangle position patch */
#personal h2::after {
position: relative;
bottom: 0.5em;
}
/* Main content area */
#content {
border: 10px solid var(--content-background-color);
border-radius: 3.5px;
}
/* Dropdown menus */
.vector-menu-dropdown .vector-menu-content {
border: 3px solid var(--border-color);
border-radius: 7.5px;
}
/* Headings */
#mw-content-text h2,
#mw-content-text h3,
#mw-content-text h4,
#mw-content-text h5,
#mw-content-text h6,
h1.firstHeading {
font-family: "Press Start 2P", system-ui;
font-weight: 400;
color: #FFFFFF;
}
body.client-darkmode .firstHeading,
.firstHeading.client-darkmode {
color: #FFFFFF;
}
/* Table of Contents */
#toc, .toc {
font-family: 'Metropolis', sans-serif !important;
font-weight: 500 !important;
}
/* Buttons */
.mw-ui-button {
font-family: 'Metropolis', sans-serif;
font-weight: 700 !important;
transition: .20s;
border-radius: 5px;
cursor: pointer;
border: none;
background-color: #242424 !important;
box-shadow: 0 7px #6C6C6C;
color: #FFFFFF !important;
padding: 10px 15px;
}
.mw-ui-button:hover {
background-color: #161616 !important;
color: #FFFFFF !important;
text-shadow: 0.35px 0.35px 3.5px #FFFFFF, 0.35px 0.35px 3.5px #ccc;
transform: scale(1.03);
}
.mw-ui-button:active {
color: #FFFFFF !important;
box-shadow: 0 3px #4A4A4A;
transform: translateY(3.5px);
}
/* Image hover effect */
.image img {
transition: 0.35s all ease-in-out;
}
.image img:hover {
transform: scale(1.05);
}
.image img:active {
transform: scale(1.0);
transition: 0.15s all ease-in-out;
}
/* Responsive design */
@media (prefers-reduced-motion: reduce) {
*, ::before, ::after {
animation-delay: -1ms !important;
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
background-attachment: initial !important;
transition-duration: 0s !important;
transition-delay: 0s !important;
}
}