MediaWiki:Mobile.css

From Medalist Wiki
Revision as of 01:00, 10 February 2025 by Zhiktang (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.
/* All CSS here will be loaded for users of the mobile site */

.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 1em;
    width: 270px;
}
.infobox-title {
    font-size: 1.8em;
    text-align: center;
    vertical-align: top;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    text-align: left;
    vertical-align: top;
    width: 40%;
    font-size: 0.80em;
}
.infobox-table td {
    vertical-align: top;
    width: 60%;
    font-size: 0.90em;
}

/* Base navbox styles */
.navbox,
.navbox-styles,
.mobile-view .navbox,
.mobile-view .navbox-styles {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    margin: 1em 0 !important;
    font-size: 88%;
    border: 1px solid #aaa;
    clear: both;
    box-sizing: border-box;
}

/* Table structure */
.navbox table,
.navbox-inner table,
.navbox-subgroup table {
    display: table !important;
    width: 100% !important;
    border-spacing: 0;
}

.navbox tr {
    display: table-row !important;
}

.navbox th,
.navbox td {
    display: table-cell !important;
    padding: 0.25em !important;
}

/* Headers and groups */
.navbox-title,
.navbox-group,
.navbox-abovebelow {
    background: #eaeeff !important;
    text-align: center;
    padding: 0.5em !important;
}

.navbox-list {
    text-align: left;
    padding: 0.25em !important;
    background: #fdfdfd;
}

/* Override any MobileFrontend hiding */
.navbox *,
.navbox-styles *,
.mobile-view .navbox *,