MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 43: | Line 43: | ||
@media (max-width: 750px) { | @media (max-width: 750px) { | ||
.infobox { | .infobox { | ||
clear: | clear: none; | ||
float: none; | |||
width: 100%; | width: 100%; | ||
} | } | ||
} | } | ||
Revision as of 14:47, 24 February 2026
/* CSS placed here will be applied to all skins */
@media (prefers-color-scheme: dark) {
:root {
--right-box-bg: #555;
}
}
@media (prefers-color-scheme: light) {
:root {
--right-box-bg: #ddd;
}
}
.infobox {
display: table;
clear: right;
float: right;
background: #f8f9fa;
border: 1px solid #a2a9b1;
margin: 0 0 0.5rem 0.5rem;
.infobox-body {
display: flex;
flex-direction: column;
.infobox-title{
font-size: 1.1rem;
font-weight: bold;
font-style: italic;
text-align: center;
}
.infobox-image {
margin: 10px;
}
}
}
@media (max-width: 750px) {
.infobox {
clear: none;
float: none;
width: 100%;
}
}