MediaWiki:Common.css

From AtlasWiki
Jump to: navigation, search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
/* CSS placed here will be applied to all skins */
 
/* All content copied from the default CSS code */
@media print {
	/**
	 * Table rendering
	 * As on shared.css but with white background.
	 */
	table.atlaswikitable,
	table.mw_metadata {
		margin: 1em 0;
		border: 1px #aaa solid;
		background: white;
		border-collapse: collapse;
	}
 
	table.atlaswikitable > tr > th, table.atlaswikitable > tr > td,
	table.atlaswikitable > * > tr > th, table.atlaswikitable > * > tr > td,
	.mw_metadata th, .mw_metadata td {
		border: 1px #aaa solid;
		padding: 0.2em;
	}
 
	table.atlaswikitable > tr > th,
	table.atlaswikitable > * > tr > th,
	.mw_metadata th {
		text-align: center;
		background: white;
		font-weight: bold;
	}
 
	table.atlaswikitable > caption,
	.mw_metadata caption {
		font-weight: bold;
	}
 
	/* Some pagination options */
	.atlaswikitable, .thumb, img {
		page-break-inside: avoid;
	}
}
 
@media screen {
	/**
	 * atlaswikitable class for skinning normal tables
	 * keep in sync with commonPrint.css
	 */
	table.atlaswikitable {
		margin: 1em 0;
		background-color: #f9f9f9;
		border: 1px #aaa solid;
		border-collapse: collapse;
		color: black;
	}
 
	table.atlaswikitable > tr > th,
	table.atlaswikitable > tr > td,
	table.atlaswikitable > * > tr > th,
	table.atlaswikitable > * > tr > td {
		border: 1px #aaa solid;
		padding: 0.2em;
	}
 
	table.atlaswikitable > tr > th,
	table.atlaswikitable > * > tr > th {
		background-color: #f2f2f2;
		text-align: center;
	}
 
	table.atlaswikitable > caption {
		font-weight: bold;
	}
 
 
       /**
        * Styling for XCSG tables, so they can be modified separately from other tables on the wiki.
        */ 
        table.xcsgwidetable, table.xcsgtable {
		margin: 1em 0;
		background-color: #f9f9f9;
		border: 1px #aaa solid;
		border-collapse: collapse;
		color: black;
	}
 
        table.xcsgwidetable {
                width: 100%;
        }
 
        table.xcsgtable > tr > th,
        table.xcsgtable > tr > td,
        table.xcsgtable > * > tr > th,
        table.xcsgtable > * > tr > td,
	table.xcsgwidetable > tr > th,
	table.xcsgwidetable > tr > td,
	table.xcsgwidetable > * > tr > th,
	table.xcsgwidetable > * > tr > td {
		border: 1px #aaa solid;
		padding: 0.2em;
	}
 
        table.xcsgtable > tr > th,
        table.xcsgtable > tr > td,
        table.xcsgtable > * > tr > th,
        table.xcsgtable > * > tr > td {
                text-align: center;
        }
 
        table.xcsgtable > tr > th,
        table.xcsgtable > * > tr > th,
	table.xcsgwidetable > tr > th,
	table.xcsgwidetable > * > tr > th {
		background-color: #f2f2f2;
		text-align: center;
	}
 
        table.xcsgtable > tr > th,
        table.xcsgtable > * > tr > th {
                min-width: 23ex;
        }
 
        table.xcsgwidetable > tr > th,
        table.xcsgwidetable > * > tr > th {
                width: 23ex;
        }
 
        table.xcsgtable > caption,
	table.xcsgwidetable > caption {
		font-weight: bold;
	}
 
}