MediaWiki:Common.css: Difference between revisions

From MI2wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 60: Line 60:
         text-align: right;
         text-align: right;
         width: auto;
         width: auto;
}
/* A Test! */
/* See also jquery.makeCollapsible.js */
.mw-collapsible-toggle {
float: right;
}
/* list-items go as wide as their parent element, don't float them inside list items */
li .mw-collapsible-toggle {
float: none;
}
/* the added list item should have no list-style */
.mw-collapsible-toggle-li {
list-style: none;
}
}

Revision as of 11:49, 24 January 2013

/* Original Character Table Stuff */

.CHARa { color: white; background:#865ab7 }
.CHARb { color: black; background:#dbd1f7 }

/* Character table stuff fixed up by Dan! */
table.chartable {
        border-spacing:0px; font-size:90%; border-collapse: collapse; border: 1px #353535 solid;
}
table.chartable th {
        padding: 0.2em;
        border-collapse: collapse; border: 1px #353535 solid;
        color: white; background: #865ab7; font-weight: bold;
        text-align:center; vertical-align:text-top;
}
table.chartable td {
        padding: 0.2em;
        border-collapse: collapse; border: 1px #353535 solid;
        color: black; background: #dbd1f7;
        vertical-align:text-top;
}

/* wikitable/prettytable class for skinning normal tables (standard wikitable code)*/

table.wikitable, table.prettytable {
        margin: 1em 1em 1em 0;
        background: #f9f9f9;
        border: 1px #aaaaaa solid;
        border-collapse: collapse;
}

table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td {
        border: 1px #aaaaaa solid;
        padding: 0.2em;
}

table.wikitable th, table.prettytable th {
        background: #f2f2f2;
        text-align: center;
}

table.wikitable caption, table.prettytable caption {
        margin-left: inherit;
        margin-right: inherit;
}

/** Collapsible tables *********************************************************
 *
 *  Description: Allows tables to be collapsed, showing only the header. See
 *                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
 *  Maintainers: [[en:User:R. Koot]]
 */
 
table.collapsed tr.collapsible {
        display: none;
}
.collapseButton {               /* 'show'/'hide' buttons created dynamically by the             */
        float: right;           /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;    /* are styled here so they can be customised.             */
        text-align: right;
        width: auto;
}