MediaWiki:Mobile.css

From Cyraxx Wiki - lolcow.city
Jump to navigation Jump to search

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 */
.newstable tbody {
  display: block;
  overflow-x: scroll;
}


.nomobile {
display:none;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
    font-size: 100%;
}
.nav_box .navbar {
    display: block;
    font-size: 100%;
}
.nav_box-title .navbar {
    /* @noflip */
    float: left;
    /* @noflip */
    text-align: left;
    /* @noflip */
    margin-right: 0.5em;
    width: 6em;
}

/* Default style for navigation boxes */
.nav_box {                     /* Navbox container style */
    box-sizing: border-box;
    border: 1px solid #aaa;
    width: 100%;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
    margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */
}
.nav_box .nav_box {
    margin-top: 0;            /* No top margin for nested navboxes */
}
.nav_box + .nav_box {
    margin-top: -1px;         /* Single pixel border between adjacent navboxes */
}
.nav_box-inner,
.nav_box-subgroup {
    width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
    padding: 0.25em 1em;      /* Title, group and above/below styles */
    line-height: 1.5em;
    text-align: center;
}
th.navbox-group {             /* Group style */
    white-space: nowrap;
    /* @noflip */
    text-align: center;
}
.nav_box,
.navbox-subgroup {
    background: #fdfdfd;      /* Background color */
}
.navbox-list {
    line-height: 1.5em;
    border-color: #fdfdfd;    /* Must match background color */
}
.nav_box th,
.navbox-title {
    background: #ccccff;      /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navboxMobile-title {
    background: #ddddff;      /* Level 2 color */
}
.navbox-subgroup .navboxMobile-group,
.navboxe-subgroup .navboxMobile-abovebelow {
    background: #e6e6ff;      /* Level 3 color */
}
.navbox-even {
    background: #f7f7f7;      /* Even row striping */
}
.navbox-odd {
    background: transparent;  /* Odd row striping */
}
.nav_box .hlist td dl,
.nav_box .hlist td ol,
.nav_box .hlist td ul,
.nav_box td.hlist dl,
.nav_box td.hlist ol,
.nav_box td.hlist ul {
    padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}