MediaWiki:Common.css: Difference between revisions

From Timebomb Madness Wiki
y
thing
 
(4 intermediate revisions by the same user not shown)
Line 43: Line 43:
   position: relative;
   position: relative;
   bottom: 0.5em;
   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;
}
}


Line 66: Line 54:
     font-family: "Press Start 2P", system-ui;
     font-family: "Press Start 2P", system-ui;
     font-weight: 400;
     font-weight: 400;
    text-shadow: 0 1px 0 #ccc,
                0 2px 0 #c9c9c9,
                0 3px 0 #bbb,
                0 4px 0 #b9b9b9,
                0 5px 0 #aaa,
                0 6px 1px rgba(0,0,0,.1),
                0 0 5px rgba(0,0,0,.1),
                0 1px 3px rgba(0,0,0,.3),
                0 3px 5px rgba(0,0,0,.2),
                0 5px 10px rgba(0,0,0,.25),
                0 10px 10px rgba(0,0,0,.2),
                0 20px 20px rgba(0,0,0,.15);
    color: #000000;
}
body.client-darkmode .firstHeading,
.firstHeading.client-darkmode {
    color: #FFFFFF;
}
}



Latest revision as of 13:32, 22 February 2025

/* 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;
}

/* 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;
}

/* 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;
    }
}