MediaWiki:Common.css

From Path of Exile 2 Wiki
Revision as of 17:44, 28 September 2024 by Vinifera7 (talk | contribs)
Jump to navigation Jump to search

Note: After saving, you have to bypass your browser's cache to see the changes. The simplest method that will work for most users is to hold down the ⇧ Shift key and click the Reload toolbar button. For details and other methods, see Help:Clear your browser cache.

/*
 * This stylesheet is always loaded, regardless of which theme is selected.
 * 
 * Theme styles should go in [[MediaWiki:Vector.css]].
 */

/*
 * Colors exported from Metadata/UI/UISettings.xml wherein 3-digit colors are in RGB format. 4-digit colors
 * are not in any known format and have therefore been approximated.
 */
:root {
    --poe-color-default: rgb(127,127,127);
    --poe-color-valuedefault: rgb(255,255,255);
    --poe-color-fire: rgb(150,0,0);
    --poe-color-cold: rgb(54,100,146);
    --poe-color-lightning: rgb(255,215,0);
    --poe-color-chaos: rgb(208,32,144);
    --poe-color-augmented: rgb(136,136,255);
    --poe-color-crafted: rgb(184,218,242);
    --poe-color-fractured: rgb(162,145,98);
    --poe-color-enchanted: rgb(184,218,242);
    --poe-color-hellscaped: rgb(255,110,37);
    --poe-color-allocatedcruciblemod: rbg(255,115,57);
    --poe-color-unmet: rgb(210,0,0);
    --poe-color-uniqueitem: rgb(175,96,37);
    --poe-color-unique: rgb(175,96,37);
    --poe-color-rareitem: rgb(255,255,119);
    --poe-color-rare: rgb(255,255,119);
    --poe-color-magicitem: rgb(136,136,255);
    --poe-color-magic: rgb(136,136,255);
    --poe-color-whiteitem: rgb(200,200,200);
    --poe-color-normal: rgb(200,200,200);
    --poe-color-gemitem: rgb(27,162,155);
    --poe-color-gem: rgb(27,162,155);
    --poe-color-currencyitem: rgb(170,158,130);
    --poe-color-currency: rgb(170,158,130);
    --poe-color-questitem: rgb(74,230,58);
    --poe-color-quest: rgb(74,230,58);
    --poe-color-nemesismod: rgb(255,200,0);
    --poe-color-nemesismodoutline: rgb(219,34,0); /* 220,255,40,0 */
    --poe-color-talismanmod: rgb(141,241,79);
    --poe-color-talismanmodoutline: rgb(0,0,0); /* 220,0,0,0 */
    --poe-color-title: rgb(231,180,120);
    --poe-color-corrupted: rgb(210,0,0);
    --poe-color-favour: rgb(170,158,130);
    --poe-color-supporterpacknewitem: rgb(180,96,0);
    --poe-color-supporterpackitem: rgb(163,141,109);
    --poe-color-supporterpackincludes: rgb(242,162,47);
    --poe-color-bloodlinemod: rgb(210,0,220);
    --poe-color-bloodlinemodoutline: rgb(58,0,125); /* 200,74,0,160 */
    --poe-color-tormentmod: rgb(50,230,100);
    --poe-color-tormentmodoutline: rgb(0,78,117); /* 200,0,100,150 */
    --poe-color-canttradeormodify: rgb(210,0,0);
    --poe-color-lockedtoaccount: rgb(136,136,255);
    --poe-color-divination: rgb(14,186,255);
    --poe-color-prophecy: rgb(181,75,255);
    --poe-color-essencemod: rgb(164,210,255);
    --poe-color-essencemodoutline: rgb(0,41,82); /* 210,0,50,100 */
    --poe-color-premiumchat: rgb(253,242,126);
    --poe-color-premiumchatoutline: rgb(209,46,46);
    --poe-color-uniquefoil: rgb(130,173,106);
    --poe-color-legacy: rgb(212,145,63);
    --poe-color-bestiarymod: rgb(255,255,255);
    --poe-color-bestiarymodoutline: rgb(219,34,0); /* 220,255,40,0 */
    --poe-color-blightmod: rgb(255,255,255);
    --poe-color-blightmodoutline: rgb(215,0,0); /* 255,215,0,0 */
    --poe-color-afflictionmod: rgb(22,25,28);
    --poe-color-afflictionmodoutline: rgb(151,164,181); /* 200,193,210,232 */
    --poe-color-necropolisupside: rbg(255,204,27);
    --poe-color-necropolisdownside: rbg(175,181,203);
    --poe-color-necropolisoutline: rbg(0,0,0);
    --poe-color-necropoliscraftbook: rbg(33,32,31);
    --poe-color-stackitemlevel: rgb(255,255,255);
    --poe-color-harvestprimary: rgb(100,111,73);
    --poe-color-harvestsecondary: rgb(83,130,161);
    --poe-color-craftingcaster: rgb(179,248,254);
    --poe-color-craftingphysical: rgb(199,157,147);
    --poe-color-craftingfire: rgb(255,154,119);
    --poe-color-craftingcold: rgb(147,216,255);
    --poe-color-craftinglightning: rgb(248,203,118);
    --poe-color-craftingchaos: rgb(216,167,211);
    --poe-color-craftingspeed: rgb(207,238,165);
    --poe-color-craftingcrit: rgb(178,167,214);
    --poe-color-craftingred: rgb(200,103,110);
    --poe-color-craftingblue: rgb(162,207,251);
    --poe-color-craftinggreen: rgb(134,189,163);
    --poe-color-craftinglife: rgb(201,110,110);
    --poe-color-craftingdefences: rgb(168,143,103);
    --poe-color-craftingattack: rgb(218,129,77);
    --poe-color-heist: rgb(25,30,25);
    --poe-color-heiststolenitem: rgb(210,0,0);
    --poe-color-atlasmaven: rgb(182,12,169);
    --poe-color-ultimatumnumber: rgb(254,92,81);
    --poe-color-incursionunreachable: rgb(90,90,90);
    --poe-color-lockedinplaceitem: rgb(127,127,127);
    --poe-color-craftaffectremove: rgb(254,153,0);
    --poe-color-craftaffectwarning: rgb(235,200,80);
    --poe-color-craftaffectreroll: rgb(254,153,0);
    --poe-color-skillpopuptitle: rgb(249,230,202);
    --poe-color-disabledstats: rgb(150,150,167);
    --poe-color-skillextrainfo: rgb(255,192,119);
    --poe-color-fakeitemcount: rgb(200,200,200);
}

/* ===== Succession box (used by [[Template:Version]]) ===== */
table.successionbox {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ===== Hatnote ([[Template:Hatnote]]) ===== */
.hatnote {
    display: flex;
    margin-bottom: 0.4em;
}
.hatnote__icon {
    flex-shrink: 0;
    padding-right: 0.4em;
    width: 1.6em;
}
.hatnote__icon img {
    width: 100%;
    height: auto;
}
.hatnote__text {
    font-style: italic;
}
.hatnote__text i {
    font-style: normal;
}

/* ===== Message box ([[Template:Message box]]) ===== */
.c-mbox {
    display: flex;
    align-items: center;
    column-gap: 1em;
    margin: 6px 0;
    border: 1px solid #383736;
    border-top-width: 4px;
    padding: 0.4em 1em;
    min-width: min-content;
    background-color: #1c1b19;
}
@media screen and (min-width: 45em) {
    .c-mbox {
        margin-left: 20%;
        margin-right: 20%;
    }
}
.c-mbox--warning {
    border-color: #781c1c;
    background-color: #241515;
}
.c-mbox--action {
    border-color: #693a1e;
    background-color: #26211f;
}
.c-mbox--content {
    border-color: #664c1e;
    background-color: #26231f;
}
.c-mbox--style {
    border-color: #75693c;
    background-color: #24231f;
}
.c-mbox--info {
    border-color: #4b5e6a;
    background-color: #191b1c;
}
.c-mbox--legal {
    border-color: #403b2d;
    background-color: #21201c;
}
.c-mbox--proposal {
    border-color: #585477;
    background-color: #19191c;
}
.c-mbox--lock {
    border-color: #59534e;
    background-color: #211f1d;
}
.c-mbox__main {
    flex-grow: 1;
}
.c-mbox__title {
    font-weight: bold;
}
.c-mbox__text {
    font-size: 0.86em;
}
.c-mbox--full {
    clear: both;
    margin: 10px 0;
    border-top-width: 6px;
    padding-left: 2em;
    padding-right: 2em;
}
.c-mbox--full .c-mbox__title {
    font-size: 1.2em;
}
.c-mbox--full .c-mbox__text {
    font-size: 1em;
}

/* ===== Simple sidebar ==== */
.c-sidebar {
    box-sizing: border-box;
    clear: right;
    float: right;
    margin: 6px 0;
    border: 1px solid #59534e;
    padding: 0.4em 1em;
    min-width: 100%;
    max-width: auto;
    overflow-wrap: anywhere;
    font-size: 0.86em;
    background-color: #211f1d;
}
@media screen and (min-width: 45em) {
    .c-sidebar {
        margin-left: 14px;
        min-width: min-content;
        max-width: 220px;
        overflow-wrap: break-word;
    }
}

/* ===== Disambiguation ([[Template:Disambiguation]]) ===== */
.dmbox {
    display: flex;
    align-items: center;
    clear: both;
    margin: 1em;
    border-width: 1px 0;
    border-style: solid;
    border-color: #474233;
    padding: 0.4em;
}
.dmbox-image {
    margin-right: 0.4em;
}

/* ===== Discussion closed ([[Template:Discussion top]], [[Template:Discussion bottom]]) ===== */
.c-dcbox {
    margin: 6px 0;
    border: 1px solid #2c2b2b;
    border-radius: 4px;
    padding: 6px 1em;
    background-color: #141414;
}
.c-dcbox--resolved {
    border-color: #678236;
    background-color: #1b1c19;
}
.c-dcbox--moved {
    border-color: #585477;
    background-color: #151517;
}
.c-dcbox__header {
    margin-bottom: 12px;
    border-bottom: 1px solid #383736;
    padding-bottom: 4px;
}
.c-dcbox__status {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
}
.c-dcbox__reminder {
    font-size: 0.9em;
    font-style: italic;
    color: #5e4f45;
}

/* ===== Blockquote ([[Template:Blockquote top]]) ===== */
.bqbox {
    margin: 6px 1em;
    border: 1px solid #293137;
    border-radius: 4px;
    padding: 6px 1em;
    background-color: #141517;
}

/* ===== Documentation ([[Template:Documentation]]) ===== */
.template-documentation {
    clear: both;
    margin: 14px 0 0;
    border: 1px solid #383736;
    padding: 1em;
    background-color: #1c1b19;
}
.template-documentation__start {
    margin-bottom: 0.9em;
    border-bottom: 1px solid #383736;
    padding-bottom: 3px;
}
.template-documentation__heading {
    font-size: 1.5em;
    font-weight: bold;
}
.template-documentation__end {
    margin: 7px 0;
    border: 1px solid #383736;
    padding: 1em;
    font-style: italic;
    background-color: #1c1b19;
}
.template-documentation__toolbar {
    font-size: 0.8em;
    font-style: normal;
}

/* ===== Semantic text formatting, aka "text colors" ([[Template:C]]) ===== */
.tc {
    font-style: normal;
}
em.tc {
    font-style: normal;
}
em.tc.-i {
    font-style: italic;
}
.tc a {
    color: inherit !important;
}
.tc abbr {
    color: inherit;
}
.tc.-mod {
    font-family: FontinSmallCaps, Verdana, Arial, Helvetica, sans-serif;
    font-variant-ligatures: none;
    color: var(--poe-color-augmented);
}
.tc.-default,
.tc.-stat {
    color: var(--poe-color-default);
}
.tc.-valuedefault,
.tc.-value {
    color: var(--poe-color-valuedefault);
}
.tc.-fire {
    color: var(--poe-color-fire);
}
.tc.-cold {
    color: var(--poe-color-cold);
}
.tc.-lightning {
    color: var(--poe-color-lightning);
}
.tc.-chaos {
    color: var(--poe-color-chaos);
}
.tc.-augmented {
    color: var(--poe-color-augmented);
}
.tc.-crafted,
.tc.-craft {
    color: var(--poe-color-crafted);
}
.tc.-fractured {
    color: var(--poe-color-fractured);
}
.tc.-enchanted {
    color: var(--poe-color-enchanted);
}
.tc.-unmet {
    color: var(--poe-color-unmet);
}
.tc.-uniqueitem {
    color: var(--poe-color-uniqueitem);
}
.tc.-unique {
    color: var(--poe-color-unique);
}
.tc.-rareitem {
    color: var(--poe-color-rareitem);
}
.tc.-rare {
    color: var(--poe-color-rare);
}
.tc.-magicitem {
    color: var(--poe-color-magicitem);
}
.tc.-magic {
    color: var(--poe-color-magic);
}
.tc.-whiteitem,
.tc.-white {
    color: var(--poe-color-whiteitem);
}
.tc.-normal {
    color: var(--poe-color-normal);
}
.tc.-gemitem {
    color: var(--poe-color-gemitem);
}
.tc.-gem,
.tc.-gemdesc {
    color: var(--poe-color-gem);
}
.tc.-currencyitem {
    color: var(--poe-color-currencyitem);
}
.tc.-currency,
.tc.-cosmetic {
    color: var(--poe-color-currency);
}
.tc.-questitem {
    color: var(--poe-color-questitem);
}
.tc.-quest {
    color: var(--poe-color-quest);
}
.tc.-nemesismod,
.tc.-nemesis {
    font-weight: bold;
    color: var(--poe-color-nemesismod);
    text-shadow: -1px -1px 0 var(--poe-color-nemesismodoutline), 1px -1px 0 var(--poe-color-nemesismodoutline), -1px 1px 0 var(--poe-color-nemesismodoutline), 1px 1px 0 var(--poe-color-nemesismodoutline);
}
.tc.-talismanmod {
    font-weight: bold;
    color: var(--poe-color-talismanmod);
    text-shadow: -1px -1px 0 var(--poe-color-talismanmodoutline), 1px -1px 0 var(--poe-color-talismanmodoutline), -1px 1px 0 var(--poe-color-talismanmodoutline), 1px 1px 0 var(--poe-color-talismanmodoutline);
}
.tc.-title {
    color: var(--poe-color-title);
}
.tc.-corrupted {
    color: var(--poe-color-corrupted);
}
.tc.-favour {
    color: var(--poe-color-favour);
}
.tc.-supporterpacknewitem {
    color: var(--poe-color-supporterpacknewitem);
}
.tc.-supporterpackitem {
    color: var(--poe-color-supporterpackitem);
}
.tc.-bloodlinemod,
.tc.-bloodline {
    font-weight: bold;
    color: var(--poe-color-bloodlinemod);
    text-shadow: -1px -1px 0 var(--poe-color-bloodlinemodoutline), 1px -1px 0 var(--poe-color-bloodlinemodoutline), -1px 1px 0 var(--poe-color-bloodlinemodoutline), 1px 1px 0 var(--poe-color-bloodlinemodoutline);
}
.tc.-tormentmod,
.tc.-torment {
    font-weight: bold;
    color: var(--poe-color-tormentmod);
    text-shadow: -1px -1px 0 var(--poe-color-tormentmodoutline), 1px -1px 0 var(--poe-color-tormentmodoutline), -1px 1px 0 var(--poe-color-tormentmodoutline), 1px 1px 0 var(--poe-color-tormentmodoutline);
}
.tc.-canttradeormodify {
    color: var(--poe-color-canttradeormodify);
}
.tc.-lockedtoaccount {
    color: var(--poe-color-lockedtoaccount);
}
.tc.-divination,
.tc.-card {
    color: var(--poe-color-divination);
}
.tc.-prophecy {
    color: var(--poe-color-prophecy);
}
.tc.-essencemod,
.tc.-essence {
    font-weight: bold;
    color: var(--poe-color-essencemod);
    text-shadow: -1px -1px 0 var(--poe-color-essencemodoutline), 1px -1px 0 var(--poe-color-essencemodoutline), -1px 1px 0 var(--poe-color-essencemodoutline), 1px 1px 0 var(--poe-color-essencemodoutline);
}
.tc.-uniquefoil,
.tc.-foil {
    color: var(--poe-color-uniquefoil);
}
.tc.-legacy {
    color: var(--poe-color-legacy);
}
.tc.-bestiarymod,
.tc.-bestiary {
    font-weight: bold;
    color: var(--poe-color-bestiarymod);
    text-shadow: -1px -1px 0 var(--poe-color-bestiarymodoutline), 1px -1px 0 var(--poe-color-bestiarymodoutline), -1px 1px 0 var(--poe-color-bestiarymodoutline), 1px 1px 0 var(--poe-color-bestiarymodoutline);
}
.tc.-blightmod,
.tc.-blight {
    font-weight: bold;
    color: var(--poe-color-blightmod);
    text-shadow: -1px -1px 0 var(--poe-color-blightmodoutline), 1px -1px 0 var(--poe-color-blightmodoutline), -1px 1px 0 var(--poe-color-blightmodoutline), 1px 1px 0 var(--poe-color-blightmodoutline);
}
.tc.-afflictionmod,
.tc.-deliriummod,
.tc.-delirium {
    font-weight: bold;
    color: var(--poe-color-afflictionmod);
    text-shadow: -1px -1px 0 var(--poe-color-afflictionmodoutline), 1px -1px 0 var(--poe-color-afflictionmodoutline), -1px 1px 0 var(--poe-color-afflictionmodoutline), 1px 1px 0 var(--poe-color-afflictionmodoutline);
}
.tc.-stackitemlevel {
    color: var(--poe-color-stackitemlevel);
}
.tc.-harvestprimary {
    color: var(--poe-color-harvestprimary);
}
.tc.-harvestsecondary {
    color: var(--poe-color-harvestsecondary);
}
.tc.-craftingcaster {
    color: var(--poe-color-craftingcaster);
}
.tc.-craftingphysical {
    color: var(--poe-color-craftingphysical);
}
.tc.-craftingfire {
    color: var(--poe-color-craftingfire);
}
.tc.-craftingcold {
    color: var(--poe-color-craftingcold);
}
.tc.-craftinglightning {
    color: var(--poe-color-craftinglightning);
}
.tc.-craftingchaos {
    color: var(--poe-color-craftingchaos);
}
.tc.-craftingspeed {
    color: var(--poe-color-craftingspeed);
}
.tc.-craftingcrit {
    color: var(--poe-color-craftingcrit);
}
.tc.-craftingred {
    color: var(--poe-color-craftingred);
}
.tc.-craftingblue {
    color: var(--poe-color-craftingblue);
}
.tc.-craftinggreen {
    color: var(--poe-color-craftinggreen);
}
.tc.-craftinglife {
    color: var(--poe-color-craftinglife);
}
.tc.-craftingdefences {
    color: var(--poe-color-craftingdefences);
}
.tc.-craftingattack {
    color: var(--poe-color-craftingattack);
}
.tc.-help {
    font-style: italic;
    color: var(--poe-color-default);
}
.tc.-flavour {
    font-style: italic;
    color: var(--poe-color-unique);
}
.tc.-hellscaped
.tc.-scourge {
    color: var(--poe-color-hellscaped);
}
.tc.-primal {
    color: cyan;
}
.tc.-vivid {
    color: yellow;
}
.tc.-wild {
    color: magenta;
}
/* Extra text colors. Used in legacy variant tables. */
.tc.-has {
    color: var(--poe-color-legacy);
}
.tc.-not {
    text-decoration: line-through;
    color: var(--poe-color-default);
}

/* ===== Math block ([[Template:Math]]) ===== */
.c-math-block {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.c-math-block__formula {
    flex: 1 0 auto;
}
.c-math-block__formula .mwe-math-fallback-image-display {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.c-math-block__ref {
    flex: 0 1 auto;
    font-weight: bold;
}

/* ===== Keyboard key ([[Template:Key press]]) ===== */
.keyboard-key {
    display: inline-block;
    position: relative;
    top: -3px;
    border-radius: 4px;
    padding: 0 5px;
    font-family: var(--monospace-font);
    font-size: 12px;
    line-height: 16px;
    font-weight: normal;
    color: #fff;
    white-space: nowrap;
    background-color: #4f4d4a;
    box-shadow: 0 3px #2f2e2c;
}

/* ===== Helpers ===== */

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}