Template:Def/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
*/ | */ | ||
/* Inline, | /* Inline, flush with text baseline, icon vertically centered */ | ||
.sv-def { | .sv-def { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
gap: 0.35em; | gap: 0.35em; | ||
vertical-align: baseline; /* important */ | |||
white-space: nowrap; | line-height: inherit; /* match surrounding text */ | ||
white-space: normal; /* don’t force nowrap; let it flow like text */ | |||
cursor: help; | cursor: help; | ||
} | } | ||
| Line 19: | Line 20: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
line-height: 0; /* prevents wrapper from affecting line box */ | |||
} | } | ||
/* If file icons render as images, keep them tidy | /* If file icons render as images, keep them tidy */ | ||
.sv-def-icon-img img { | .sv-def-icon-img img { | ||
display: block; | display: block; | ||