MediaWiki:Common.css: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 247: Line 247:
     background-color: #4f4d4a;
     background-color: #4f4d4a;
     box-shadow: 0 3px #2f2e2c;
     box-shadow: 0 3px #2f2e2c;
}
/* ===== Helpers ===== */
/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
}

Revision as of 19:51, 27 September 2024

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

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

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