MediaWiki:Common.css

Revision as of 20:36, 17 October 2024 by DansFriend (talk | contribs)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Interwiki table */
table.mw-interwikitable.body td.mw-interwikitable-local-yes {
    color: black;
}

dl {
    margin-bottom: 0.2em !important;
}

.chronology .real, .chronology .res, .chronology .ghosthunter {
    opacity: 0.8;
}

.cdx-thumbnail__image {
    background-position: top !important;
}

.note a img {
    width: 100%;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    height: auto;
}

/**********************************
 * Related Articles modifications *
 **********************************/

.ra-read-more h2 {
    font-family: Tico;
}

/* Dark mode specific */

.client-dark-mode .ra-read-more h2, .client-dark-mode .ext-related-articles-card-list .ext-related-articles-card-extract {
    color: white;
}
.client-dark-mode .ext-related-articles-card-list h3 a {
    color: #efbf04;
}
.client-dark-mode .ext-related-articles-card-list h3:after {
    background-image: linear-gradient(to right,rgba(255,255,255,0),#222222 50%);
}
.client-dark-mode .ext-related-articles-card-list .ext-related-articles-card {
    background: #222222;
}
.client-dark-mode .ext-related-articles-card-list .ext-related-articles-card-thumb {
    background-color: gray;
}
.client-dark-mode ul.ext-related-articles-card-list {
    list-style-image: none;
}
.client-dark-mode .ext-related-articles-card-list .ext-related-articles-card-thumb-placeholder {
    filter: invert(1);
}
.client-dark-mode .ext-related-articles-card-list .ext-related-articles-card-thumb {
    filter: invert(0);
}

/**********************************************************
 * PageNotice Extension Footer Fixes for Packed Galleries * 
 **********************************************************/
#bottom-notice-ns ul.mw-gallery-packed, 
#bottom-notice-ns ul.mw-gallery-packed-overlay, 
#bottom-notice-ns ul.mw-gallery-packed-hover {
    text-align: center;
}

#bottom-notice-ns ul.gallery {
    margin: 2px;
    padding: 2px;
    display: block;
}

#bottom-notice-ns li.gallerybox {
    vertical-align: top;
    display: inline-block;
}

#bottom-notice-ns li.gallerybox div.thumb {
    text-align: center;
    margin: 2px;
}

#bottom-notice-ns ul.mw-gallery-packed li.gallerybox div.thumb, 
#bottom-notice-ns ul.mw-gallery-packed-overlay li.gallerybox div.thumb, 
#bottom-notice-ns ul.mw-gallery-packed-hover li.gallerybox div.thumb {
    background-color: transparent;
    border: 0;
}

/* 
 *  Dark Theme Fixes
 */
.client-dark-mode .oo-ui-windowManager-modal > .oo-ui-dialog {
    background-color: rgba(0,0,0,0.5);
}

.client-dark-mode .oo-ui-windowManager-modal.oo-ui-windowManager-floating > .oo-ui-dialog > .oo-ui-window-frame {
  border: 1px solid #222222;
}

.client-dark-mode .oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
  background-color: #202122;
}

.client-dark-mode .oo-ui-processDialog-content .oo-ui-window-head, .client-dark-mode .oo-ui-processDialog-content .oo-ui-window-foot {
  outline: 1px solid #222222;
}

.client-dark-mode .ui-autocomplete .ui-menu-item .ui-corner-all {
  color: black;
}

.leaflet-container {
  background: black !important;
}

@font-face {
  font-family: Tico;
  src: url('fonts/Tico/font.woff') format('woff'),
       url('fonts/Tico/font.woff2') format('woff2');
}

.client-dark-mode .mw-message-box-success {
  background-color: seagreen;
}

ul.gallery.mw-gallery-slideshow {
    display: block;
    margin: 0;
}

.client-dark-mode .CategoryTreeToggle, .client-dark-mode .vector-toc-collapse-button, .client-dark-mode .vector-toc-uncollapse-button {
  color: #efbf04;
}

.client-dark-mode .mw-article-toolbar-container {
  border-bottom: 1px solid #222;
}

@supports (clip-path:polygon(1px 1px)) .client-dark-mode .mwe-popups .mwe-popups-container {
    background: #222;
}

.client-dark-mode .mwe-popups {
    background: #222;
}

.client-dark-mode .editOptions {
    background-color: #222222f7;
    border: 2px solid #222;
    border-bottom: 2px solid #222;
}

.client-dark-mode #mw-page-base, 
.client-dark-mode .cdx-menu-item--enabled:hover, 
.client-dark-mode .cdx-menu-item--enabled .cdx-menu-item--hightlighted {
  background-color: #121212;
  background-image: none;
}

.client-dark-mode .mw-message-box-warning, 
.client-dark-mode .mw-message-box-error {
  background-color: darkred;
}

.client-dark-mode .mw-content-ltr .redirectText li:first-child {
    background-image: linear-gradient(transparent,transparent),url(https://medievil.wiki/images/redirect-ltr-white.svg?ff441);
}

.client-dark-mode .sidebar-toc, .client-dark-mode #mw-searchoptions {
  background-color: #121212;
  border: 1px solid #222;
}

.client-dark-mode .qc-cmp2-persistent-link,
.client-dark-mode .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted, 
.client-dark-mode .oo-ui-menuOptionWidget.oo-ui-optionWidget-pressed.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.client-dark-mode .sidebar-toc .sidebar-toc-title, 
.client-dark-mode .oo-ui-menuOptionWidget.oo-ui-widget-enabled.oo-ui-optionWidget,
.client-dark-mode .cdx-menu-item--enabled, 
.client-dark-mode .cdx-menu-item--enabled .cdx-menu-item__content {
  color: white;
}

.client-dark-mode .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted, 
.client-dark-mode .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected {
  background-color: #663399;
}

.client-dark-mode .leaflet-popup-content,
.client-dark-mode .leaflet-popup-content .mw-parser-output p,
.client-dark-mode .oo-ui-checkboxMultioptionWidget .oo-ui-checkboxInputWidget,
.client-dark-mode .oo-ui-checkboxMultioptionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
  color: black;
}

.client-dark-mode .cdx-text-input__input:enabled {
  background-color: black;
  color: white;
}

.client-dark-mode .cdx-menu {
  background-color: black;
  filter: invert(1);
  border: 1px solid #222;
}

.client-dark-mode .cdx-thumbnail__placeholder, .client-dark-mode .cdx-thumbnail__image {
  border: 1px solid #222;
}

.client-dark-mode .cdx-typeahead-search__search-footer {
  border: 2px solid #222;
}

@media screen and (min-width: 1000px) {
    .client-dark-mode .vector-toc-not-collapsed .sidebar-toc:after {
       background: linear-gradient(rgba(255,255,255,0),#121212);
    }
}

.embedvideo.ev_right, embedvideo.ev_left {
  padding: 5px;
}

.client-dark-mode .embedvideo-loader:hover .embedvideo-loader__fakeButton, 
.client-dark-mode .embedvideo-privacyNotice__continue {
  background-color: #4a1d78;
}

.client-dark-mode .embedvideo-privacyNotice__continue:hover {
  background-color: #663399;
}

.mw-footer-container {
  padding-top: 0px !important;
}

.mwe-popups .mwe-popups-settings-icon, .references .reference-text .refpreviewonly {
  display: none;
}

.mwe-popups.mwe-popups-is-not-tall .mwe-popups-extract {
  margin-bottom: 20px !important;
}

.mwe-popups.mwe-popups-is-tall .mwe-popups-discreet .mwe-popups-thumbnail {
  height: 220px !important;
}

.mwe-popups.flipped-x.mwe-popups-is-tall, .mwe-popups.flipped-x-y.mwe-popups-is-tall {
    min-height: 210px !important;
}

cite {
  font-style: normal;
}

.main-page-row {
  display: flex;
}

@media screen and (max-width: 910px) {
    .main-page-row {
        flex-wrap: wrap;
    }
    .main-page-box {
        width: -webkit-fill-available;
    }
}

.main-page-box {
    border: 1px solid #a2a9b1;
    margin: 5px;
    background-color: #f8f9fa;
    padding: 0px 10px;
}

.client-dark-mode .main-page-box {
    border: 1px solid #222222;
    background-color: #121212;
}

.graveyard-bg {
  background-image: url("/images/b/b0/MediEvilRollingDemo-GraveyardDansCrypt.png");
}

.church-bg {
  background-image: url("images/3/3f/MediEvilRollingDemo-ChurchDemonRoom.png");
}

.scarecrow-bg {
  background-image: url("/images/c/c2/MediEvilRollingDemo-ScarecrowFieldsHouse.png");
}

.ant-bg {
  background-image: url("/images/a/a2/MediEvilRollingDemo-AntCavesTunnel.png");
}

.pumpkin-bg {
  background-image: url("/images/d/dd/MediEvilRollingDemo-PumpkinGorgeStart.png");
}

.village-bg {
  background-image: url("/images/c/cd/MediEvilRollingDemo-SleepingVillageStart.png");
}

.pools-bg {
  background-image: url("/images/0/07/MediEvilRollingDemo-PoolsBattlefield.png");
}

.resurrection {
    padding: 10px 0;
    font-size: 90%;
    color: orangered !important;
    border-top: 1px dashed orangered;
    border-bottom: 1px dashed orangered;
}

.mw-logo {
  color: black;
  font-family: Tico;
  text-transform: uppercase;
}

.mw-logo a:visited {
  color: black;
}

.mw-logo-container:after {
  content: "Gallowpedia";
  font-weight: normal;
}

.client-dark-mode .mw-logo-container {
  color: white;
}

.mw-logo-wordmark {
  display: none;
}

.mobileonly {
  display: none;
}

.mw-sidebar-action-link {
  display: none;
}

pre {
    width: fit-content;
}

/* Default skin for navigation boxes */

.plainlinks.hlist.navbar.mini {
    float: left;
}

.client-dark-mode table.navbox {
    border: 1px solid #222;
}


@media screen and (max-width: 910px) {
    .smart-clear {
        clear: both;
    }
}

@media screen and (max-width: 580px) {
    .locationcontainer {
        display: flex;
        justify-content: center;
        clear: both;
    }
    
    .location {
        float: none !important;
        width: 350px !important;
    }

    .wikipediainfo {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 0 !important;
    }

    .infobox, floatright {
        float: none;
        width: 100%;
    }

    .embedvideo.ev_right, embedvideo.ev_left {
        float: none !important;
    }
}

.filelisting {
    border: none !important; 
    background: none !important; 
    white-space: pre; 
    width: auto; 
    overflow: auto;
}

.pagination {
    display: flex;
    flex-flow: row nowrap;
    column-gap: 0;
}

.pagination .pages {
    width: 100%;
    border: 0;
    background-color: transparent;
    float: none;
    margin: auto;
    clear: none;
    margin-bottom: 10px;
}

.pagination table {
    width: auto;
    table-layout: auto;
    border-spacing: 5px 0;
    border-bottom: 4px solid #a2a9b1;
}

.pagination td:not(:has(.mw-selflink)) {
    display: inline-block;
    float: left;
    margin-bottom: 4px;
}

.pagination td {
    border-radius: 3px;
    border: 0;
    background-color: #ccccff;
    margin-left: 5px;
    padding: 5px 10px 5px 10px;
    -webkit-transition: all 0.1s linear 0s;
    -moz-transition: all 0.1s linear 0s;
    -ms-transition: all 0.1s linear 0s;
    -o-transition: all 0.1s linear 0s;
    transition: all 0.1s linear 0s;
}

.pagination td:has(.mw-selflink) {
    background-color: #a2a9b1;
    border-radius: 3px 3px 0 0;
    float: left;
    border-bottom: 4px solid #a2a9b1;
}

.pagination a.mw-selflink {
    color: #fff;
}

.pagination a.mw-selflink:hover {
    text-decoration: none;
}

.pagination a {
    padding: 5px 5px 10px 5px;
    text-decoration: none;
    color: #0645ad;
    font-weight: bold;
    text-wrap: nowrap;
}

.pagination a:hover {
    text-decoration: underline;
}

.client-dark-mode .pagination table {
    border-bottom: 4px solid #663399;
}

.client-dark-mode .pagination td {
    background-color: #3b3b3b;
}

.client-dark-mode .pagination td:has(.mw-selflink) {
    background-color: #663399;
    border-bottom: 4px solid #663399;
}

.client-dark-mode .pagination a.mw-selflink {
    color: #fff;
}

.client-dark-mode .pagination a {
    color: #fff;
}

table.navbox {            /* Navbox container style */
    border: 1px solid #aaa;
    width: 100%; 
    margin: auto;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
    margin-top: -1px;          /* (doesn't work for IE6, but that's okay)       */
}
.navbox-title,
.navbox-abovebelow {
    text-align: center !important;      /* Title and above/below styles */
    padding-left: 1em;
    padding-right: 1em;
}

table.navbox th {
    text-align: right;      /* Title and above/below styles */
    padding-left: 1em;
    padding-right: 1em;
}

.navbox-group {              /* Group style */
    white-space: nowrap;
    /* @noflip */text-align: right;
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
}

.navbox-title,
table.navbox th {
    background: #ccccff;     /* Level 1 color */
}

.navbox .navbox-title::before, .navbox .navbox-title .mw-collapsible-toggle {
    font-size: 0.9em;
    margin-left: 5em;
    float: right;
    text-align: right;
    width: 4em;
}

.client-dark-mode .invert, .client-dark-mode .mw-checkbox-toggle-controls, .client-dark-mode .cdx-icon .cdx-text-input__icon .cdx-text-input__start-icon {
    filter: invert(1);
}

.client-dark-mode .navbox-title,
.client-dark-mode .table.navbox th,
.client-dark-mode .navbox-abovebelow,
.client-dark-mode .navbox-group,
.client-dark-mode .navbox-subgroup .navbox-title {
    background: #663399;
}

.client-dark-mode .navbox-group a,
.client-dark-mode .navbox-group a:visited,
.client-dark-mode .navbox-abovebelow a,
.client-dark-mode .navbox-abovebelow a:visited,
.client-dark-mode .navbox-title a,
.client-dark-mode .navbox-title a:visited {
    color: white;
}

.client-dark-mode .navbox-group a.new,
.client-dark-mode .navbox-abovebelow a.new,
.client-dark-mode .navbox-title a.new {
    color: #ff6e6e;
}

.client-dark-mode .navbox-subgroup .navbox-group, 
.client-dark-mode .navbox-subgroup .navbox-abovebelow {
    background: #4a1d78;     /* Level 3 color */
}
.client-dark-mode .navbox-even {
    background: #222;     /* Even row striping */
}

.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
    background: #ddddff;     /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
    background: #e6e6ff;     /* Level 3 color */
}
.navbox-even {
    background: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
    background: transparent; /* Odd row striping */
}
 
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    /* @noflip */float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;   /* [[MediaWiki:Common.js]] are styled here   */
    /* @noflip */text-align: right;     /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Navbar]],    */
}                          /* so they need to be the same width.         */
 
.navbar {                  /* Navbox template links */
    font-size: 88%;        /* Default font-size */
    font-weight: normal;
}
.navbox .navbar {
    font-size: 100%;       /* Font-size when nested within navbox */
}

/* Horizontal List Class
/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist li ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}