Template:Def/styles.css: Difference between revisions
Template page
More actions
No edit summary Tags: Reverted Mobile edit Mobile web edit |
No edit summary Tags: Manual revert Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Template:def/styles.css | /* Template:def/styles.css | ||
Namespace: sv-def only | Namespace: sv-def only | ||
*/ | */ | ||
.sv-def{ | /* Inline, flush with normal text */ | ||
display:inline | .sv-def { | ||
display: inline; | |||
line-height: inherit; | |||
line-height:inherit; | white-space: nowrap; /* keep icon + label together */ | ||
white-space:nowrap; | cursor: help; | ||
cursor:help; | |||
} | } | ||
/* Icon wrappers only exist when an icon exists */ | |||
.sv-def-icon, | .sv-def-icon, | ||
.sv-def-icon-img{ | .sv-def-icon-img { | ||
display:inline- | display: inline-block; | ||
margin-right: 0.35em; /* spacing between icon and text */ | |||
vertical-align: -0.125em; /* nudge down to visually center with text */ | |||
} | } | ||
.sv-def-icon-img img{ | /* File icons rendered as images */ | ||
height:1em; | .sv-def-icon-img img { | ||
width:auto; | height: 1em; | ||
width: auto; | |||
} | vertical-align: middle; | ||
} | |||
.sv-def-icon--missing{ | /* Missing file / missing record icon ("?") */ | ||
.sv-def-icon--missing { | |||
font-weight: 700; | |||
font-weight: | |||
} | } | ||
/* | /* Link-like but not too loud */ | ||
.sv-def-text | .sv-def-text { | ||
color: #0b63c5; | |||
border-bottom: 1px dotted currentColor; | |||
color: | text-decoration: none; | ||
} | } | ||
.sv-def:hover .sv-def-text { | |||
border-bottom-style: solid; | |||
.sv-def:hover | |||
border-bottom | |||
} | } | ||
/* Missing/error states */ | /* Missing/error states */ | ||
.sv-def--missing, | .sv-def--missing, | ||
.sv-def--error{ | .sv-def--error { | ||
cursor:not-allowed; | cursor: not-allowed; | ||
opacity:0. | opacity: 0.85; | ||
} | } | ||