Difference between revisions of "MediaWiki:Common.css"
Line 192: | Line 192: | ||
#mw-content-container{ | #mw-content-container{ | ||
border: none; | border: none; | ||
+ | } | ||
+ | #mw-header-hack{ | ||
+ | display: none; | ||
} | } |
Revision as of 13:55, 26 November 2018
/* CSS placed here will be applied to all skins */ .center { text-align: center } *.center * { margin-left: auto; margin-right: auto; } /* wikitable */ table.wikitable { margin: 1em 1em 1em 0px; background: #f9f9f9; border: 1px solid #aaaaaa; border-collapse: collapse; } .wikitable th, .wikitable td { border: 1px solid #aaaaaa; padding: 0.2em; } .wikitable th { background: #f2f2f2; text-align: center; } .wikitable caption { font-weight: 700; } /* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */ th.mbox-text, td.mbox-text { /* The message body cell(s) */ border: none; padding: 0.25em 0.9em; /* 0.9em left/right */ width: 100%; /* Make all mboxes the same width regardless of text length */ } td.mbox-image { /* The left image cell */ border: none; padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */ text-align: center; } td.mbox-imageright { /* The right image cell */ border: none; padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */ text-align: center; } td.mbox-empty-cell { /* An empty narrow cell */ border: none; padding: 0px; width: 1px; } /* Template:Imbox */ table.imbox { margin: 4px 10%; border-collapse: collapse; border: 3px solid #1e90ff; background: #fbfbfb; } .imbox .mbox-text .imbox { margin: 0px -0.5em; } .mbox-inside .imbox { margin: 4px; } table.imbox-notice { border: 3px solid #1e90ff; } table.imbox-speedy { border: 3px solid #b22222; background: #ffeeee; } table.imbox-delete { border: 3px solid #b22222; } table.imbox-content { border: 3px solid #f28500; } table.imbox-style { border: 3px solid #f4c430; } table.imbox-move { border: 3px solid #9932cc; } table.imbox-protection { border: 3px solid #bbbbaa; } table.imbox-license { border: 3px solid #8888aa; background: #f7f8ff; } table.imbox-featured { border: 3px solid #cba135; } /* These mbox-small classes must be placed after all other ambox/tmbox/ombox etc classes. "body.mediawiki" is so they override "table.ambox + table.ambox" above. */ body.mediawiki table.mbox-small { /* For the "small=yes" option. */ clear: right; float: right; margin: 4px 0 4px 1em; width: 238px; font-size: 88%; line-height: 1.25em; } body.mediawiki table.mbox-small-left { /* For the "small=left" option. */ margin: 4px 1em 4px 0; width: 238px; border-collapse: collapse; font-size: 88%; line-height: 1.25em; } tt { background: #f2f2f2; } /* Disambig and set index box styles */ table.dmbox { clear: both; margin: 0.9em 1em; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: transparent; } th.mbox-text, td.mbox-text { /* The message body cell(s) */ border: none; /* @noflip */ padding: 0.25em 0.9em; /* 0.9em left/right */ width: 100%; /* Make all mboxes the same width regardless of text length */ } td.mbox-image { /* The left image cell */ border: none; /* @noflip */ padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */ text-align: center; } /* Override max-width 100% */ .mbox-image img { max-width: none; } /* Remove mediawiki icon */ #footer-icon-poweredby { display: none; } #f-poweredbyico { display: none; } #footer-poweredbyico { display: none; } /*fix slider menu causes content too narrow on small screens*/ #innerbodycontent{ margin-right: 0 !important; margin-left: 0; } .is-open-left #innerbodycontent { margin-right: 250px !important; } /*hide title on main page, and discussion tabs*/ body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading, .mw-portlet#p-namespaces { display: none !important; } /*style header bar*/ #mw-header-container{ background-color: #3f4455; color: #fff; } #mw-header .mw-wiki-logo{ margin: 0; position: absolute; height: 68px; width: 200px; background-size: cover; top: 0; } #p-personal-label{ color: #000; } /*style footer*/ body{ background-color: #f3f2f3; } #mw-content-container{ border: none; } #mw-header-hack{ display: none; }