(Created page with "→{{pp|small=y}}: .side-box { margin: 4px 0; box-sizing: border-box; border: 1px solid #aaa; font-size: 88%; line-height: 1.25em; background-color: #f9f9f9; } .side-box-abovebelow, .side-box-text { padding: 0.25em 0.9em; } .side-box-image { →@noflip: padding: 2px 0 2px 0.9em; text-align: center; } .side-box-imageright { →@noflip: padding: 2px 0.9em 2px 0; text-align: center; } →roughly the skin's sidebar + size of side box: @media (min-wid...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* From Wikipedia: https://en.wikipedia.org/wiki/Module:Side box/styles.css | |||
* Used under the Creative Commons Attribution-ShareAlike 3.0 Unported License. This page is available under the same license. | |||
*/ | |||
/* {{pp|small=y}} */ | /* {{pp|small=y}} */ | ||
.side-box { | .side-box { | ||
margin: 4px 0; | margin: 4px 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
Line 40: | Line 40: | ||
@media (min-width: 720px) { | @media (min-width: 720px) { | ||
.side-box { | .side-box { | ||
width: | width: 350px; | ||
} | } | ||
Latest revision as of 19:29, 26 November 2023
/* From Wikipedia: https://en.wikipedia.org/wiki/Module:Side box/styles.css * Used under the Creative Commons Attribution-ShareAlike 3.0 Unported License. This page is available under the same license. */ /* {{pp|small=y}} */ .side-box { margin: 4px 0; box-sizing: border-box; } .side-box-abovebelow, .side-box-text { padding: 0.25em 0.9em; } .side-box-image { /* @noflip */ padding: 2px 0 2px 0.9em; text-align: center; } .side-box-imageright { /* @noflip */ padding: 2px 0.9em 2px 0; text-align: center; } /* roughly the skin's sidebar + size of side box */ @media (min-width: 500px) { .side-box-flex { display: flex; align-items: center; } .side-box-text { flex: 1; } } @media (min-width: 720px) { .side-box { width: 350px; } .side-box-right { /* @noflip */ clear: right; /* @noflip */ float: right; /* @noflip */ margin-left: 1em; } /* derives from mbox classes, which do not float left in mbox-small-left * so far as I can tell, that was a deliberate decision, since only .ambox * supports mbox-left */ .side-box-left { /* @noflip */ margin-right: 1em; } }