Template:Def/styles.css
Template page
More actions
/* Template:def/styles.css
Namespace: sv-def only
*/
/* Inline, flush with text baseline, icon vertically centered */
.sv-def {
display: inline-flex;
align-items: center;
gap: 0.35em;
line-height: inherit; /* match surrounding text */
white-space: normal; /* don’t force nowrap; let it flow like text */
vertical-align: -0.12em; /* nudge down to sit flush in sentences */
cursor: help;
}
/* Icon wrapper(s) */
.sv-def-icon,
.sv-def-icon-img {
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 0; /* prevents wrapper from affecting line box */
}
/* If file icons render as images, keep them tidy */
.sv-def-icon-img img {
display: block;
}
/* Keep the text looking link-like but not too loud */
.sv-def-text {
color: #0b63c5;
border-bottom: 1px dotted currentColor;
text-decoration: none;
}
.sv-def:hover .sv-def-text {
border-bottom-style: solid;
}
/* Missing/error states */
.sv-def--missing,
.sv-def--error {
cursor: not-allowed;
opacity: 0.85;
}