Guild Wars 2 Wiki:Projects/CSS documentation/scripts- common

From Guild Wars 2 Wiki
Jump to navigationJump to search
/* Formatting for the wiki clock, referenced by [[MediaWiki:Common.js]] */
#utcdate a {
    font-weight: bold;
    text-transform: none;
}

/* Chat link search, for [[MediaWiki:ChatLinkSearch.js]] */
.gw2w-chat-link-search {
    margin: 1em 0;
    padding: 0.5em;
}

.gw2w-chat-link-search tt {
    font-size: 10px;
    margin-right: 1em;
}

/* Spaces around TP coin icons, referenced by [[MediaWiki:Common.js]] */
.gw2-tpprice {
    white-space: nowrap;
    text-align: right;
}

.gw2-tpprice > img {
    position: relative;
    bottom: 1px;
    width: 18px;
    height: 18px;
}

table .gw2-tpprice .numbers {
    display: inline-block;
    min-width: 18px;
    text-align: right;
}

/* gameUpdateIcons, referenced by [[MediaWiki:Common.js]] */
.patchnote {
    line-height: 2.7em;
}

.patchnote .skillicon img,
.patchnote .traiticon img {
    background-color: black;
}

/* Collapsible functionality provided by [[MediaWiki:CollapsibleTables.js]]. Mainly for [[Template:Professions nav]]. */
tr.collapse-reverse,
tr.collapse-reverse {
    display: none;
}

tr.collapse-reverse.hide,
tr.collapse-reverse.hide {
    display: table-row;
}

/* Dialogue indent guides, for "demarcateDialogue" in [[MediaWiki:Common.js]] */
.dialogue dl dd {
    padding-left: 16px;
    margin-left: 0;
}

.dialogue dl {
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 11px;
    border-left: 2px solid rgba(110, 98, 74, 0.4);
}

.dialogue > dl,
.dialogue td > dl {
    margin-bottom: 10px;
    border-left: none;
}

.dialogue dt {
    margin-left: -11px;
}

/* See [[Guild Wars 2 Wiki:Popups#Extended popups]], referenced by [[MediaWiki:Common.js]] */
.mwe-popups-extract .gamemode.brief-highlight {
    display: unset;
    animation: popupbriefhighlight 1s;
}
@keyframes popupbriefhighlight {
    0% {
        background: #ffff99;
    }
    100% {
        background: none;
    }
}

.mwe-popups.mwe-popups-is-tall.wikipopup-extended-is-split.mwe-popups-fade-in-down .wikipopup-extended-facts,
.mwe-popups.mwe-popups-is-tall.wikipopup-extended-is-split.mwe-popups-fade-out-up .wikipopup-extended-facts {
    margin-bottom: 1em;
}
.mwe-popups-extract {
    white-space: pre-line;
}
.mwe-popups dl {
    line-height: 0;
}

.wikipopup-extended-gamemode-button-container.popup-below-link {
    text-align: center;
    margin-bottom: 0.5em;
    margin-top: -0.5em;
}
.wikipopup-extended-gamemode-button-container.popup-above-link {
    margin-top: 0.5em;
    float: left;
}
.wikipopup-extended-gamemode-button {
    pointer-events: auto;
    background-color: inherit;
    border: 1px solid #aaa;
    border-radius: 2px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin: 0px 2px;
    overflow: hidden;
    text-align: center;
}
.wikipopup-extended-gamemode-button.active {
    background-color: #FF9090;
}
.wikipopup-extended-title {
    padding-bottom: 0.5em;
    font-weight: bold;
    font-size: 120%;
    color: darkblue;
}
.wikipopup-extended-properties {
    float: right;
    padding-left: 0.5em;
}
.wikipopup-extended-facts {
    padding-top: 0.5em;
}
.wikipopup-extended-beta-link-container {
    display: inline-block;
    margin-top: 0.75em;
    margin-right: 1em;
    float: right;
    font-size: 60%;
    opacity: 0.75;
}

.wikipopup-extended-settings-container > div {
    display: inline-block;
    vertical-align: top;
}
.wikipopup-extended-settings-container > div > input {
    margin-left: -20px;
    margin-right: 5px !important;
}
.wikipopup-extended-settings-container > div:nth-of-type(1) {
    color: #000;
    line-height: 16px;
    margin-right: 7px;
}
.wikipopup-extended-settings-container > div:nth-of-type(2) {
    font-size: 13px;
    line-height: 16px;
    width: 300px;
}
.wikipopup-extended-settings-container > div > span {
    color: #000;
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.wikipopup-extended-settings-container.inactive > div,
.wikipopup-extended-settings-container.inactive > div > span {
    color: #54595d;
}