Difference between revisions of "MediWiki:Foreground.css"

From CM Wiki

m (Protected "MediWiki:Foreground.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 23:00, 28 June 2020

/* Reset all table CSS */ table { width: 0; } td.mw-label { width: 0; } td.smwpropname, th.smwpropname, td.smwspecname { text-align: inherit; } table tbody tr td, table tr td { line-height: inherit; } table { background: transparent; margin-bottom: 1.25em; border: 0; } table thead, table tfoot { background: 0; font-weight: normal; } table thead tr th, table thead tr td, table tfoot tr th, table tfoot tr td { padding: 0; font-size: 100%; color: inherit; text-align: inherit; } table tr th, table tr td { padding: 0; font-size: 100%; color: inherit; } table tr.even, table tr.alt, table tr:nth-of-type(even) { background: transparent; } table thead tr th, table tfoot tr th, table tbody tr td, table tr td, table tfoot tr td { display: table-cell; line-height: inherit; text-align: inherit; }

/* wikitable classes reset */ table.wikitable {

 margin: 1em 0;

} table.wikitable > tr > th, table.wikitable > * > tr > th {

 text-align: inherit;

}

/* wikitable classes add */ table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {

 border: 1px #aaa solid;
 padding: 0.2em;

}

/* Custom h* styles (blue headings) */ .wikitable td.hl3, .wikitable th.hl3 { background-color: #8da7d6; } .wikitable td.hl1, .wikitable th.hl1 { background: #c5d8fc; } .wikitable td.hl2, .wikitable th.hl2 { background: #a7c1f2; }

/* Make entire table valign=top, to replace the |valign=top| on every cell. */ .vatop tr, tr.vatop, .vatop td, .vatop th { vertical-align: top; } /* Tables in responsive and other breaks */ @media only screen and (max-width: 768px) { table {overflow-x: auto; overflow-y: hidden; display: block; width: auto;} /* Give user a method to style a x-axis scrollable table without wrapping cell text */ .scrollable {overflow: scroll; overflow-y: hidden;} .scrollable table {white-space: nowrap; border: 1px solid #eee; border-collapse: separate;} a {word-wrap: break-word;} input {max-width: 100%;} }

/* Make MW table output readable on small screens */ @media only screen and (max-width: 640px) { table.mw-specialpages-table td {display: inline; padding: 0;}

  1. mw-pages table td,
  2. mw-subcategories table td {display: inline; padding: 0;}

}


.mw-collapsible-toggle {

   float: left !important; 

}