Module:Side box/styles.css: Difference between revisions

Content deleted Content added
let's see how this goes
Override font-size for embedded side boxes. Non-embedded Template:Side box gets `font-size: 88%;` from Module:Side box/styles.css#L-6; an embedded Template:Side box (usually through the module) gets the same 88% plus another 88% from class .infobox at MediaWiki:Common.css (to be migrated to Module:Infobox/styles.css). 0.88*0.88=0.7744, which is less than 85% from the guideline MOS:FONTSIZE. See also Special:Diff/1290232777
(8 intermediate revisions by 2 users not shown)
Line 1:
/* {{pp|small=y}} */
.side-box {
margin: 4px 0;
background-color: #f9f9f9;
box-sizing: border-box;
border: 1px solid #aaa;
font-size: 88%;
line-height: 1.25em;
background-color: var(--background-color-interactive-subtle, #f8f9fa);
box-sizing: border-box;
display: flow-root;
}
/* embedded side boxes need larger font */
.infobox .side-box {
font-size: 100%;
}
 
Line 28 ⟶ 35:
.side-box-flex {
display: flex;
align-items: center;
}
.side-box-text {
flex: 1;
min-width: 0;
}
}
Line 46 ⟶ 55:
float: right;
/* @noflip */
margin-left: 4px 0 4px 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: 4px 1em 4px 0;
}
}