MediaWiki:Common.css: Difference between revisions
From The Character Database
m (Protected "MediaWiki:Common.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
padding: 0.2em; | padding: 0.2em; | ||
float: right; | float: right; | ||
clear: | clear: none; | ||
} | } | ||
.infobox td, | .infobox td, | ||
Line 28: | Line 28: | ||
.infobox.bordered .borderless th { | .infobox.bordered .borderless th { | ||
border: 0; | border: 0; | ||
} | |||
.container { | |||
max-width: 800px; | |||
} | |||
@media screen and (max-width: 767px) { | |||
.container { | |||
width: 100%; | |||
} | |||
.infobox { | |||
margin-left: auto; | |||
margin-right: auto; | |||
text-align: center; | |||
float: none; | |||
clear: both; | |||
} | |||
} | } |
Latest revision as of 01:55, 25 April 2023
/* CSS placed here will be applied to all skins */ .infobox { border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: none; } .infobox td, .infobox th { vertical-align: top; } .infobox caption { font-size: larger; margin-left: inherit; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #aaa; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } .container { max-width: 800px; } @media screen and (max-width: 767px) { .container { width: 100%; } .infobox { margin-left: auto; margin-right: auto; text-align: center; float: none; clear: both; } }