MediaWiki:Gadget-trailblazer.css

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:10, 17 October 2024 (Created page with "→‎========= SCROLL =========: →‎experimental: .events-popup::-webkit-scrollbar { width: 1em; } .events-popup::-webkit-scrollbar-track { background: var(--body-mid); } .events-popup::-webkit-scrollbar-thumb { background: #43557a; border-radius: 4px; border: 2px solid var(--body-mid); } .events-popup::-webkit-scrollbar-thumb:hover { background: var(--body-border); } →‎========== Top bar link ==========: .vector-menu #pt-events .oo-ui-ic..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

After saving, you may need to bypass your browser's cache to see the changes. For further information, see Wikipedia:Bypass your cache.

  • In most Windows and Linux browsers: Hold down Ctrl and press F5.
  • In Safari: Hold down ⇧ Shift and click the Reload button.
  • In Chrome and Firefox for Mac: Hold down both ⌘ Cmd+⇧ Shift and press R.
/* ========= SCROLL ========= */
/* experimental */
.events-popup::-webkit-scrollbar {
    width: 1em;
}

.events-popup::-webkit-scrollbar-track {
    background: var(--body-mid);
}

.events-popup::-webkit-scrollbar-thumb {
    background: #43557a;
    border-radius: 4px;
    border: 2px solid var(--body-mid);
}

.events-popup::-webkit-scrollbar-thumb:hover {
    background: var(--body-border);
}

/* ========== Top bar link ========== */
.vector-menu #pt-events .oo-ui-icon-calendar {
    width: 16px;
    min-width: 16px;
    height: 16px;
    background-size: 16px;
    display: block;
    background-repeat: no-repeat;
    opacity: 1;
    text-indent: -9999px; /* as its span contains text; styles from echo icons */
    color: transparent;
    position: relative;
    top: -2px;
}

/* Icon on desktop personal links bar */
.vector-menu #pt-events .oo-ui-icon-calendar,
/* Icon on mobile sidebar */
.minerva-header .mw-ui-icon-portletlink-pt-events:before {
    background-image: url('/images/Trailblazer_Reloaded_League_icon.png?11111');
    filter: brightness(2);
}

/* Show text on mobile sidebar */
.minerva-header #pt-events span {
    display: block;
    overflow: visible;
}

/* Don't invert Trailblazer icon on mobile darkmode sidebar. */
body.wgl-theme-dark #pt-events .mw-ui-icon:before {
	filter: brightness(2);
}

/* ========== General ========== */
/* interface buttons cursor */
.tbz-int-button:not(.tbz-no-global), .tbz-region:not(.tbz-no-global), .tbz-badge:not(.tbz-no-global) {
    cursor: context-menu;
}

.events-popup, .events-settings .settings-container {
    background-color: var(--body-light);
    color: var(--text-color);
}

/* ========== Events popup ========== */
/* == Header == */
.events-popup .header {
    background-color: var(--body-main);
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    padding: 0.75em 1em;
    border-bottom: 1px solid var(--body-main);
    z-index: 3;
}

/* Close button */
#rsw-events-close {
    float: left;
}

.events-popup .header h2 {
    padding: 0;
    border: none;
    font-weight: bold;
    text-align: center;
    margin: 0 4em;
}

/* == Body section == */
.events-popup h3, .events-settings h3 {
    padding: 0;
    margin: 0.75em 0;
    text-align: center;
}

.events-popup h3 a, .events-settings h3 a {
    color: var(--text-color);
}

.events-popup .body {
    display: flex;
}

.events-popup .col-l {
    border-right: 1px solid var(--body-main);
    flex-grow: 2;
    padding-right: 0.7em;
}

.col.col-r {
    flex-grow: 1;
}

body.wgl-theme-dark .events-popup .col-r {
    border-color: var(--body-border);
    flex-grow: 1;
}

.events-popup .col .section + .section:not(:empty) {
    margin-top: 1.25em;
    border-top: 1px solid var(--body-main);
    padding-top: 1.25em;
}

/* Toggles */
.events-popup .tb-area-sels label {
    padding: 0.25em 0;
    display: flex;
    margin: 0.5em 0;
    border: 1px solid var(--tbz-locked-border-color);
    border-radius: 10px;
    width: calc(100% - 2.4em);
    background-color: var(--tbz-locked-background-color);
    justify-content: flex-start;
    align-items: center;
    gap: 0.5em;
    user-select: none;
}

.events-popup .tb-area-sels label.oo-ui-multioptionWidget-selected {
    background: var(--tbz-unlocked-background);
    border-color: var(--tbz-unlocked-border-color);
}

/* Toggles area links */
.events-popup .tbz-external-link {
    display: block;
    position: absolute;
    right: -1.85em;
    top: 0.6em;
    width: 1.5em;
    height: 1.5em;
    background-image: var(--external-icon);
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

/* Links */
.events-popup .skill-links {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    text-align: center;
}

.events-popup .guide-links {
    display: flex;
    flex-flow: column nowrap;
    margin: 0 1em;
    max-width: 75%;
    margin: auto;
}

.events-popup .guide-links img {
    padding-right: 1em;
}

.events-popup .guide-links a {
    background: var(--body-main);
    border: 1px solid var(--body-dark);
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0.5em 0.8em;
    margin: 0.25em;
    min-width: 60%;
    font-size: 110%;
}

/* == Footer == */
.events-popup .footer {
    background-color: var(--body-main);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    position: relative;
    padding: 1em;
    border-top: 1px solid var(--body-main);
}

.events-popup .footer > div {
    padding: 0;
    flex: 1 1 auto;
}

.events-popup .footer div > :nth-child(2) {
	font-weight: bold;
}

.events-popup .footer time {
    cursor: help;
    text-decoration: underline dotted;
}

.events-popup .footer label {
    display: block;
}

/*Center checkboxes*/
.events-popup .oo-ui-checkboxMultioptionWidget span {
    padding: 0.25em;
    flex-basis: content;
    margin-left: 0.5em;
    width: initial;
}

/* Double specify class so this overrides default ooui */
.events-popup .tb-area-sels .oo-ui-labelElement-label.oo-ui-labelElement-label {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25em;
    padding-left: 0;
}

.events-popup .skill-links {
    padding-top: 0.5em;
}

.events-popup .oo-ui-multiselectWidget-group {
    width: 100%;
    max-width: 270px;
    margin: auto;
}

/* Reduce padding on small screens */
@media only screen and (max-width: 499px) {
    .events-popup .oo-ui-multiselectWidget-group {
        margin-right: 10px;
        margin-left: 10px;
    }

    .events-popup .oo-ui-checkboxMultioptionWidget span {
        margin-left: 0.25em;
    }

    .events-popup .tb-area-sels label {
        gap: 0;
    }

    .events-popup .guide-links {
        margin-right: 10px;
        margin-left: 10px;
        max-width: 100%;
    }
}