Difference between revisions of "MediaWiki:Common.css"

From DDO Compendium
Line 10: Line 10:
table td[class*="col-"], table th[class*="col-"] {
table td[class*="col-"], table th[class*="col-"] {
     display: table-cell !important;
     display: table-cell !important;
}
.table {
    display: block !important;
}
}



Revision as of 03:17, 25 February 2020

/* CSS placed here will be applied to all skins */
/* Removing the User Creation log from the Recent Changes list */
table[class*="mw-changeslist-log-newusers-"] {
    display: none;
}

/* End User Creation log hiding */

/*@media (max-width: 760px), (max-device-width: 1024px) and (min-device-width: 768px)*/
table td[class*="col-"], table th[class*="col-"] {
    display: table-cell !important;
}

.table > tbody > tr > td {
    vertical-align: middle !important;
}

.postedit {
    background-color: #272b30 !important;
    color: #c8c8c8 !important;
    border: 1px solid #1c1e22 !important;
}

.vertical-words {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

div.gallerytext {
    font-size: .85em;
    padding: 0;
}

.link-pointer {
    cursor: pointer;
}

.table {
    margin-bottom: 0;
}

blockquote {
    font-size: 0.96em;
    font-style: italic;
}

.super {
    vertical-align: super;
    font-size: smaller;
}

.compendiumtable {
    color: white;
    background-color: #3a3f44;
    margin: 1em 0;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
}

.compendiumtablecolor {
    color: white;
    background-color: #3a3f44;
}

.compendiumtableborder {
    border-bottom: 1px solid #a2a9b1;
    border-collapse: collapse;
}

.compendiumtable .header {
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
    text-align: center;
    background-color: gray;
}

.compendiumtable .linkheader {
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
    text-align: center;
    font-size: 20px;
}

.compendiumtable .headerkeep {
    background-color: lightgray;
    color: black;
    text-align: center;
}

.fullwidth {
    width: 100%;
}

.halfwidth {
    width: 50%;
}

.compendiumtable .centerdata {
    text-align: center;
}

.compendiumtable .cellwidth15 {
    width: 15%;
}

.compendiumtable .cellwidth10 {
    width: 10%;
}

.compendiumtable .cellwidth75 {
    width: 75%;
}

.compendiumtable .cellwidth1 {
    width: 1%;
}

.compendiumtable .cellwidth5 {
    width: 5%;
}

.compendiumtable .cellwidth50 {
    width: 50%;
}

.compendiumtable .cellwidth25 {
    width: 25%;
}

.compendiumtable .cellwidth20 {
    width: 20%;
}

.compendiumtable > tbody > tr > td {
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
    vertical-align: top;
}

.compendiumtable > tbody > tr > th {
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
    text-align: center;
    background-color: gray;
    vertical-align: bottom;
}

.compendiumtable > thead > tr > th {
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
    text-align: center;
    background-color: gray;
}

@media (max-width: 760px) {
    .compendiumtable {
        border: none;
    }

    .compendiumtable .header {
        display: none;
    }

    .compendiumtable .centerdata {
        text-align: left;
    }

    .compendiumtable > thead {
        display: none;
    }

    .compendiumtable .cellwidth15 {
        width: 90%;
    }

    .compendiumtable .cellwidth10 {
        width: 90%;
    }

    .compendiumtable .cellwidth75 {
        width: 90%;
    }

    .compendiumtable .cellwidth1 {
        width: 90%;
    }

    .compendiumtable .cellwidth1 {
        width: 90%;
    }

    .compendiumtable .cellwidth50 {
        width: 90%;
    }

    .compendiumtable .cellwidth25 {
        width: 90%;
    }

    .compendiumtable .cellwidth20 {
        width: 90%;
    }

    .toc {
        display: none;
    }

    .compendiumtablenonsortable > tbody > tr:nth-child(1) {
        display: none;
    }

    .compendiumtablesortable > thead {
        display: none;
    }

    .compendiumtable > tbody > tr > td {
        border: none;
        padding: 0.2em 0.4em;
        margin-left: 1em;
        width: 90%;
    }

    .compendiumtable > tbody > tr {
        border: 1px solid #a2a9b1;
        border-collapse: collapse;
    }

    .compendiumtable > tbody > tr > td:before {
        content: attr(data-th);
        display: block;
        font-weight: 700;
        margin-left: -0.8em;
    }
}

.ddoheader {
    background-color: black;
    border: 1px solid white;
}

.ddoheader .headerlist {
    margin-bottom: 0;
    padding-left: 0;
    padding-bottom: 5px;
    list-style: none
}

.ddoheader .selected {
    background-color: #3a3f44;
}

.ddoheader .enhancementtreelist {
    margin-bottom: 0;
    padding-left: 5px;
    list-style: none
}

.ddoheader .enhtreeitem {
    height: 90px;
    width: 150px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
    padding: 5px;
}

.ddoheader .enhtreeitemtall {
    height: 130px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
    padding: 5px;
    width: 130px;
}

.ddoheader .enhtreeitemshort {
    height: 45px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
    padding: 5px;
    width: 130px;
}

.ddoheader .enhtreeitemmed {
    height: 70px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
    padding: 5px;
    width: 130px;
}

.ddoheader .sectiontitle {
    transform: rotate(-90deg);
    transform-origin: center center 0;
    float: left;
    text-align: center;
    vertical-align: middle;
    height: 95px;
    line-height: 95px;
    font-weight: bold;
    font-size: 1.1em;
    width: 4em;
}

.ddoheader .classname {
    font-size: 20px;
}

.ddoheader .classicon {
    text-align: center;
    height: 95px;
    width: 68px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .classicon2 {
    text-align: center;
    height: 75px;
    width: 75px;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .featicon {
    width: 95px;
    height: 80px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .edicon {
    width: 84px;
    height: 95px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .raceicon {
    width: 75px;
    height: 95px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .spellicon {
    width: 72px;
    height: 95px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

.ddoheader .iconicicon {
    width: 120px;
    height: 95px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 5px;
    float: left;
}

a, a:link, a:visited, a:hover, a:active, a:visited:hover {
    color: #0096cf;
}

select, #categoryselectmaster {
    color: #444 !important;
}

body, nav {
    overflow-anchor: none !important;
}

#toc {
    float: right;
    border: 1px #ccc solid;
    padding: 5px 15px 15px 15px;
    margin: 5px;
}

/* File history and other tables bg color */
table.wikitable > tr > th, table.wikitable > * > tr > th {
    background-color: rgb(0, 0, 0, 0);
}

.navbar-default {
    background-image: none;
}

.btn-default {
    background-image: none;
}

.btn-primary {
    color: white !important;
}

.navbar-default .navbar-nav > li > a, .navbar-inverse .navbar-nav > li > a {
    border-left: none;
}

#pagehistory li.selected {
    background-color: #000000;
}

#filetoc {
    background-color: #000000;
}

th {
    text-align: center;
}

/* Editing box button text color */
.wikiEditor-ui-buttons {
    color: #000;
}

/* License link in Special:Version */
.mw-version-ext > td > a, div.search-types > ul li a {
    color: #000;
}

.mw-version-ext > td > a:visited, div.search-types > ul li a:visited {
    color: #555 !important;
}

div.search-types > ul li.current a {
    font-weight: bold;
}

/* For the server status widget */
.row.ss-widget-text-center > div {
    display: inline-block;
    float: none;
}

.quest {
    padding-top: 5px
}

.quest .box {
    border: 1px solid rgba(39, 43, 46, 0.6);
}

.quest .outer-box {
    float: right;
    margin-left: 10px;
    max-width: 300px;
    font-size: 14px;
    background-color: #3a3f44
}

.quest .outer-box-wide {
    float: right;
    margin-left: 10px;
    max-width: 530px;
    font-size: 14px;
    background-color: #3a3f44
}

.quest .inner-box {
    padding: 5px;
}

.quest .box-header {
    font-size: 20px;
    text-align: center;
}

.quest .paragraph-body {
    font-size: 14px;
    margin-bottom: 5px;
}

.quest .sub-paragraph-header {
    font-size: 26px;
}

.quest .paragraph-header {
    font-size: 32px;
}

.quest .flavor-text {
    font-style: italic;
}

@media (max-width: 760px) {
    .quest .outer-box {
        float: none;
        width: 100%;
        max-width: 760px;
        margin-left: 0px;
    }

    .quest .outer-box-wide {
        float: none;
        width: 100%;
        max-width: 760px;
        margin-left: 0px;
    }

    .quest .inner-box {
        width: 100%;
    }
}

.item-table {
    border: 1px solid #B0B5B8;
    background-color: black;
    width: 100%;

}

.item-table .background-color {
    background-color: black;
}

.itembasevalue {
    width: 50%;
    text-align: left;
    padding-left: 10px;
}

.itemweight {
    width: 50%;
    text-align: right;
    padding-right: 10px;
}

.item-table .item-info-side {
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 50%;
    vertical-align: top;
}

.item-table .item-info-full {
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    vertical-align: top;
}

.item-table .icon {
    width: 50px;
    vertical-align: top;
}

.item-table .title {
    font-size: 20px;
    text-align: center;
    width: 100%;
    padding-bottom: 15px;
}

.item-table .subtitle {
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.item-table .topborder {
    border-top: solid 1px white;
}

.item-table .item-image-side {
    border-left: solid 1px white;
    width: 100%;
    vertical-align: top;
}

.item-table .item-image-side .extra-details {
    padding: 10px;
}

.extra-details {
    padding: 5px;
}

.item-table .item-image-table {
    width: 100%;
    padding-left: 20px;
    padding-right: 10px;
}

.item-table .item-image {
    width: 100%;
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 10px;
}

.item-table .full {
    width: 100%;
}

.item-image img {
    display: block;
    width: auto;
    max-height: 300px;
}

.item-table .item-image-table .item-image {
    text-align: center;
    border-bottom: solid 1px white;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.item-table .item-image-table .item-image-notext {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 10px;
}


@media (max-width: 760px) {
    .item-table .item-info-side {
        padding-left: 10px;
        padding-right: 5px;
        width: 100%
    }

    .item-table .item-image-table {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 10px;
    }

    .item-table .item-image-side {
        width: 100%;
        border-top: 1px solid #B0B5B8;
        border-left: none;
        vertical-align: top;
    }

    .item-table .icon {
        text-align: center;
        width: 100%;
        padding-top: 10px;
    }
}

table.wikitable > tr > th, table.wikitable > * > tr > th {
    background-color: gray;
}

/* Playing with mobile resolutions, should make all tables mobile responsive */
@media (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    table, thead, tbody, th, td, tr {
        text-align: left;
        display: block;
    }

    /* this is the class of all link images for the header of the navigational table */
    #navigational_header_images {
        display: none !important;
    }

    #sidebar {
        display: none !important;
    }
}

/* Fix for modals not working */
.modal-backdrop {
    display: none;
}

.modal {
    top: 60px;
}

.modal-title {
    color: #c8c8c8;
}

.mw-body ol {
    list-style-type: decimal;
}

.mw-body a.external:link {
    color: #0096cf;
}

.map-separator {
    padding: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
}

.big {
    font-size: 1.7em;
}

.small {
    font-size: 1.1em;
}