Template:Def/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
*/ | */ | ||
/* | /* Inline, no pill — align icon + text cleanly */ | ||
.sv-def { | .sv-def { | ||
display: inline- | display: inline-flex; | ||
align-items: center; | |||
gap: 0.35em; /* spacing between icon and text (only when icon exists) */ | |||
vertical-align: baseline; | vertical-align: baseline; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 11: | Line 13: | ||
} | } | ||
/* Icon | /* Icon wrapper(s) */ | ||
.sv-def-icon, | .sv-def-icon, | ||
.sv-def-icon-img { | .sv-def-icon-img { | ||
display: inline- | display: inline-flex; | ||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
/* If file icons render as images, keep them tidy + centered */ | |||
/* If file icons render as images, keep them | |||
.sv-def-icon-img img { | .sv-def-icon-img img { | ||
display: block; | |||
} | } | ||