MediaWiki:Common.css

From JCraft Wiki
Revision as of 16:47, 27 April 2026 by KasaneTetoLover (talk | contribs)
Jump to navigation Jump to search

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
    --color-bg-page: #000000;
    --color-bg-content: #1e1f22;
    --color-text-base: #e6e6e6;
    --color-primary: #a862ea;
}

body {
    background-color: #000000 !important;
    background-image: url('https://wiki.jcraft-eoe.com/images/6/65/Wiki_Background.png') !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    font-family: 'Rubik', sans-serif !important;
    color: #e6e6e6 !important;
}

.page-Main_Page .firstHeading {
    display: none !important;
}

#mw-panel {
    display: none !important;
}

#content {
    background-color: rgba(30, 31, 34, 0.96) !important;
    max-width: 1100px !important;
    margin: 40px auto 40px auto !important;
    border-radius: 8px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #2b2d31 !important;
    color: #e6e6e6 !important;
    position: relative !important;
}

#mw-head {
    background: rgba(30, 31, 34, 0.8) !important; 
    border-bottom: 1px solid #333 !important;
    left: 0 !important;
    overflow: visible !important;
    height: 75px !important;
}

#left-navigation, #right-navigation {
    height: 75px !important;
    position: relative !important;
    top: -5px !important;
}

#left-navigation { margin-left: 20px !important; }

#mw-page-base, #mw-head-base { background: transparent !important; }
#mw-head::before, #p-logo { display: none !important; }

/* --- NAVIGATION ICON --- */
#ca-talk {
    display: block !important;
    visibility: visible !important;
    z-index: 9999 !important;
    position: relative !important;
    height: 100% !important;
}

#ca-talk a {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    width: 68px !important;
    height: 68px !important;
    position: absolute !important;
    top: 50% !important; 
    transform: translateY(-50%) !important;
}

#ca-talk a span { display: none !important; }

#ca-talk a::before {
    content: "" !important;
    display: block !important;
    width: 68px !important;
    height: 68px !important;
    background-image: url('https://wiki.jcraft-eoe.com/images/7/71/JCraft_Icon.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    visibility: visible !important;
}

#ca-talk a:hover::before { filter: drop-shadow(0 0 5px var(--color-primary)) !important; }

/* --- TABLE OF CONTENTS (FANDOM STYLE & WRAPPING FIX) --- */
#toc, .toc {
    background-color: #1e1f22 !important;
    border: 1px solid #2b2d31 !important;
    border-top: 3px solid #a862ea !important;
    padding: 15px !important;
    max-height: 33vh !important; 
    overflow-y: auto !important; 
    display: inline-block !important; 
    width: fit-content !important; 
    max-width: 400px !important; 
    min-width: 250px !important;
    margin-bottom: 20px !important;
}

#content #toc ul, #content .toc ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
    list-style-type: none !important;
}

#content #toc ul li, #content .toc ul li {
    list-style-type: none !important; 
    margin-bottom: 6px !important;
    display: block !important;
    white-space: normal !important; 
    word-wrap: break-word !important;
}

#content #toc ul li::marker { content: "" !important; display: none !important; }

.tocnumber { color: #888 !important; margin-right: 5px !important; font-size: 0.9em !important; }
#toc > ul > li > a > .toctext { font-weight: bold !important; color: #ffffff !important; }
#toc ul ul .toctext { font-weight: normal !important; color: #e6e6e6 !important; font-size: 14px !important; }

#toc a:hover .toctext {
    color: #a862ea !important;
    text-decoration: underline !important;
}

/* --- GLOBAL LISTS / BULLETS --- */
#content ul, #content ol { margin-left: 2em !important; padding-left: 0.5em !important; }
#content ul li { list-style-type: disc !important; color: #e6e6e6 !important; margin-bottom: 0.4em; }
#content ol li { list-style-type: decimal !important; color: #e6e6e6 !important; margin-bottom: 0.4em; }
#content ul li::marker, #content ol li::marker { color: #ffffff !important; font-weight: bold; }

/* --- PORTABLE INFOBOX CORE --- */
.portable-infobox {
    background-color: #1e1f22 !important;
    border: 1px solid #a862ea !important;
    color: #e6e6e6 !important;
    width: 270px !important;
    border-radius: 4px;
    overflow: visible !important;
}

.portable-infobox .pi-title {
    background-color: #111 !important;
    color: #fff !important;
    font-size: 26px !important;
    font-weight: bold !important;
    text-align: center !important;
}

.portable-infobox .pi-header {
    background-color: #111 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
}

/* --- INFOBOX TABS (POSITIONING & ALIGNMENT) --- */
.portable-infobox .pi-panel {
    display: flex !important;
    flex-direction: column !important;
}

.portable-infobox .pi-section-contents { order: 1 !important; } /* Image on Top */

ul.pi-section-navigation {
    order: 2 !important; /* Tabs below image, above Chart */
    background-color: #0a0a0a !important;
    display: flex !important;
    width: 100% !important;
    margin: 0 !important; 
    padding: 0 !important;
    list-style: none !important;
    border-top: 1px solid #333 !important;
    border-bottom: 1px solid #333 !important;
}

ul.pi-section-navigation li.pi-section-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px 5px !important;
    color: #bbb !important;
    cursor: pointer !important;
    list-style-type: none !important; 
    margin: 0 !important;
}

.pi-section-navigation .pi-section-tab.pi-section-active,
.pi-section-navigation .pi-section-tab.current {
    background: transparent !important;
    border-bottom: 2px solid #a862ea !important;
    color: #a862ea !important;
    font-weight: bold !important;
}

/* --- STAND CHART 4 --- */
.stand-chart4-wrapper {
    position: relative;
    width: 450px !important; height: 450px !important;
    max-width: none !important; margin: 20px auto;
    background-image: url('https://wiki.jcraft-eoe.com/images/b/bd/StandChart_Background.png') !important;
    background-size: contain; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center;
    transform: scale(0.8); transform-origin: center center;
}

.portable-infobox .stand-chart4-wrapper {
    transform: scale(0.49) !important;
    margin-left: -90px !important; margin-top: -110px !important; margin-bottom: -120px !important;
    pointer-events: none;
}

.portable-infobox .stand-chart4-wrapper:hover {
    transform: scale(1.0) !important;
    pointer-events: auto;
    z-index: 100;
    background-color: rgba(30, 31, 34, 0.98);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.2s ease-in-out;
}

.stand-chart4-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: none !important; transform: scale(0.54);
    --cx: 49.5%; --cy: 51%;
}

.stand-chart4-polygon {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(180, 30, 30, 0.4); z-index: 1;
    clip-path: polygon(
        var(--cx) calc(var(--cy) - (var(--pow) * 1%)),
        calc(var(--cx) + (var(--spd) * 0.866%)) calc(var(--cy) - (var(--spd) * 0.5%)),
        calc(var(--cx) + (var(--rng) * 0.866%)) calc(var(--cy) + (var(--rng) * 0.5%)),
        var(--cx) calc(var(--cy) + (var(--dur) * 1%)),
        calc(var(--cx) - (var(--pre) * 0.866%)) calc(var(--cy) + (var(--pre) * 0.5%)),
        calc(var(--cx) - (var(--pot) * 0.866%)) calc(var(--cy) - (var(--pot) * 0.5%))
    );
}

.label4-pow { top: 18%; left: 50%; } 
.label4-spd { top: 31%; left: 79%; }  
.label4-rng { top: 69%; left: 79%; }  
.label4-dur { top: 82%; left: 50%; }  
.label4-pre { top: 69%; left: 21%; }  
.label4-pot { top: 31%; left: 21%; }  

/* --- TABLES & MISC --- */
.wikitable, .loot-table { background-color: #1e1f22 !important; color: #e6e6e6 !important; border: 1px solid #333 !important; }
.wikitable th, .loot-table th { background-color: #111111 !important; color: #ffffff !important; border: 1px solid #333 !important; }
.wikitable td { background-color: #1e1f22 !important; color: #e6e6e6 !important; border: 1px solid #333 !important; }

code { background-color: #000000 !important; color: #ffffff !important; border: 1px solid #444 !important; padding: 2px 4px !important; border-radius: 3px !important; }

.oo-ui-window-frame, .oo-ui-processDialog-content, .oo-ui-inputWidget-input {
    background-color: #1e1f22 !important; color: #e6e6e6 !important;
}

#footer { display: none !important; }