MediaWiki:Mobile.css: Difference between revisions

    From Gallowpedia, the MediEvil Wiki. You'll be dying to read!
    No edit summary
    No edit summary
    Line 10: Line 10:
    }
    }


    cite .note img {
    .note a img {
         width: 100%;
         width: 100%;
         width: -moz-available;          /* WebKit-based browsers will ignore this. */
         width: -moz-available;          /* WebKit-based browsers will ignore this. */

    Revision as of 17:05, 26 February 2024

    /* All CSS here will be loaded for users of the mobile site */
    
    /* Interwiki table */
    table.mw-interwikitable.body td.mw-interwikitable-local-yes {
        color: black;
    }
    
    dl {
        margin-bottom: 0.2em !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;
    }
    
    .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-dialog > .oo-ui-window-frame {
      background-color: #202122;
    }
    
    .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-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;
    }
    
    a.leaflet-control-zoom-fullscreen.fullscreen-icon {
      display: none;
    }
    
    @font-face {
      font-family: Tico;
      src: url('fonts/Tico/font.woff') format('woff'),
           url('fonts/Tico/font.woff2') format('woff2');
    }
    
    @media (max-width: 720px) {
       .main-page-contents .gallery .gallerybox {
         width: initial !important;
      }
    }
    
    #footer-info-copyright a.external, .mw-parser-output a.external--reference {
          background-image: none;
          padding-right: 0px;
    }
    
    .client-dark-mode .editOptions {
        background-color: #222222f7;
        border: 2px solid #222;
        border-bottom: 2px solid #222;
    }
    
    .minerva-header .branding-box span {
        display: none;
    }
    
    .minerva-header .branding-box a:after {
        content: "Gallowpedia";
    }
    
    .client-dark-mode .CategoryTreeToggle {
      color: #efbf04;
    }
    
    .client-dark-mode .header-container ul {
      list-style-image: none;
    }
    
    .client-dark-mode .leaflet-popup-content,
    .client-dark-mode .leaflet-popup-content .mw-parser-output p,
    .client-dark-mode .mw-ui-icon-before span {
      color: black;
    }
    
    .client-dark-mode .action-submit .mw-editnotice, 
    .client-dark-mode .action-edit .mw-editnotice, 
    .client-dark-mode .action-submit .mw-editTools, 
    .client-dark-mode .action-edit .mw-editTools, 
    .client-dark-mode .action-submit .preview-limit-report-wrapper, 
    .client-dark-mode .action-edit .preview-limit-report-wrapper, 
    .client-dark-mode .action-submit .diff-otitle, 
    .client-dark-mode .action-edit .diff-otitle, 
    .client-dark-mode .action-submit .diff-ntitle, 
    .client-dark-mode .action-edit .diff-ntitle, 
    .client-dark-mode .action-submit .mw-first-heading, 
    .client-dark-mode .action-edit .mw-first-heading, 
    .client-dark-mode .action-submit #editpage-copywarn, 
    .client-dark-mode .action-edit #editpage-copywarn, 
    .client-dark-mode .action-submit #mw-anon-edit-warning, 
    .client-dark-mode .action-edit #mw-anon-edit-warning {
      color: ghostwhite;
    }
    
    .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;
    }
    
    .client-dark-mode .mw-footer > .post-content .minerva-footer-logo {
      border-bottom: solid 1px darkgray;
    }
    
    .mw-footer .hlist li:after {
      display: none;
    }
    
    .client-dark-mode .mw-ui-icon-wikimedia-history-invert:before, 
    .client-dark-mode .slider-button,
    .client-dark-mode .overlay.media-viewer .header-container {
      filter: invert(1);
    }
    
    .client-dark-mode #ca-watch:hover, 
    .client-dark-mode .menu__item--page-actions-history:hover, 
    .client-dark-mode #ca-edit:hover {
        background-color: #b5e287 !important;
        border-color: #b5e287 !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;
    }
    
    .client-dark-mode .mw-message-box-warning, 
    .client-dark-mode .mw-message-box-error {
      background-color: darkred;
    }
    
    /* Sticky nav - need to find a way to make search visible underneath
    .header-container {
        position: fixed;
        z-index: 10000;
        top: 0;
        width: 100%;
    }
    
    .overlay-header-container {
        z-index: 20000;
    }
    
    .mw-body {
        padding-top: 65px;
    } */
    
    .desktoponly {
      display: none;
    }
    
    .content a > img, .content noscript > img {
      max-width: inherit !important;
    }
    
    .client-dark-mode .content .location th, .client-dark-mode .content .location td {
      border-bottom: none !important;
    }
    
    .location tbody > tr > td, .location tbody > tr > th, .trophies tbody > tr > td, .trophies tbody > tr > th {
       flex: unset !important;
    }
    
    pre {
      white-space: pre !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    
    @media screen and (max-width: 900px) {
        .smartclear {
            clear: both;
        }
    }
    
    .resurrection {
        padding: 10px 0;
        font-size: 90%;
        color: orangered !important;
        border-top: 1px dashed orangered;
        border-bottom: 1px dashed orangered;
    }
    
    .filelisting {
        border: none !important; 
        background: none !important; 
        white-space: pre; 
        width: auto !important; 
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .branding-box {
      font-family: Tico;
      text-transform: uppercase;
      font-weight: bold;
      opacity: 1 !important;
    }
    
    #footer-places-darkmode-toggle {
        display: inline-block;
    }
    
    #footer-places-desktop-toggle:after {
        content: ' ·' !important;
        font-weight: bold;
    }
    
    .overlay-header-container + .overlay-content {
        padding-top: 5em;
    }
    
    .overlay.search-overlay .clear {
        background: none;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    
    .header-chrome .overlay-header {
        height: 3.375em;
    }
    
    .overlay.search-overlay .overlay-header {
        align-items: center;
        display: flex;
        width: 95%;
    }
    
    .topnav {
        border: 1px solid #a2a9b1;
        background-color: #f8f9fa;
        padding: 10px;
        font-size: 90%;
    }
    
    .topnav th {
        font-size: 100%;
    }
    
    .client-dark-mode .invert {
        filter: invert(1);
    }
    
    .client-dark-mode .topnav {
        border: 1px solid #222222;
        background-color: #121212;
    }
    
    .content .infobox {
        min-width: 320px;
    }
    
    .client-dark-mode .content .infobox {
        border: 1px solid #222222;
        background-color: #121212;
    }
    .client-dark-mode .content .infobox th, .client-dark-mode .content .infobox td {
        border-bottom: 1px solid #222222;
    }
    
    .content .infobox th:only-child {
       font-size: 1.3em;
       text-align: center;
    }
    
    /* Navbox stuff */
    .content .vertical-navbox, .content .navbox {
       display: inherit;
    }
    
    @media screen and (max-width: 719px) {
        .embedvideo.mw-halign-right, .embedvideo.mw-halign-left, .main-page-box .floatleft, .main-page-box .floatright  {
            float: none !important;
            clear: both! important;
        }
        .navbox td, .navbox th, .navbox tr, .navbox tbody, .navbox .navbox-subgroup {
            display: block;
        }
        .navbox-group {
            text-align: left !important;
        }
        /*.navbox-list ul, .navbox-list div {
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
        }*/
    }
    
    .content table .location {
            width: 350px !important;
    }
    
    @media screen and (max-width: 580px) {
        .locationcontainer {
            display: flex;
            justify-content: center;
            clear: both;
        }
        
        .location {
            float: none !important;
        }
    
        .wikipediainfo {
            float: none !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 4px 0 !important;
        }
    
        .infobox {
            float: none;
            width: 100%;
        }
    }
    
    .plainlinks.hlist.navbar.mini {
        display: none;
    }
    
    .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;
        overflow-x: auto;
        display: block;
        border-spacing: 5px 0;
        border-bottom: 4px solid #a2a9b1;
    }
    
    .pagination td:not(:has(.mw-selflink)) {
        display: inline-block;
        float: left;
        margin-bottom: 4px;
    }
    
    .pagination tr {
        display: flex;
    }
    
    .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;
    }
    
    .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;
        text-align: center;
        padding: 1px;
    }
    
    table.navbox table {
       margin: 0;
    }
    
    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 */
    }
    
    .client-dark-mode table.navbox {
        border: 1px solid #222;
    }
    
    .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 .last-modified-bar a, 
    .client-dark-mode .last-modified-bar a:visited, 
    .client-dark-mode .last-modified-bar .last-modified-text-accent,
    .client-dark-mode .qc-cmp2-persistent-link,
    .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";
    }