Template:Def/styles.css: Difference between revisions
Template page
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Template:def/styles.css | /* SpiritVale Wiki — Template:def/styles.css */ | ||
/* Final minimal sv-def namespace styling. */ | |||
*/ | /* -------------------------------------------------------------------------- */ | ||
/* 1) Wrapper */ | |||
/* -------------------------------------------------------------------------- */ | |||
.sv-def{ | .sv-def{ | ||
display:inline-flex; | display:inline-flex; | ||
| Line 14: | Line 15: | ||
} | } | ||
.sv-def[data-sv-def-link], | |||
.sv-def[data-sv-def-link] | |||
.sv-def--pill{ | .sv-def--pill{ | ||
cursor:pointer; | cursor:pointer; | ||
} | } | ||
.sv-def:focus{ | .sv-def:focus{ | ||
outline:2px solid currentColor; | outline:2px solid currentColor; | ||
| Line 31: | Line 26: | ||
} | } | ||
/* | /* -------------------------------------------------------------------------- */ | ||
/* 2) Icons */ | |||
/* -------------------------------------------------------------------------- */ | |||
.sv-def-icon, | .sv-def-icon, | ||
.sv-def-icon-img{ | .sv-def-icon-img{ | ||
| Line 42: | Line 40: | ||
} | } | ||
.sv-def-icon-img img{ | .sv-def-icon-img img{ | ||
display:block; | display:block; | ||
| Line 49: | Line 46: | ||
} | } | ||
.sv-def-icon--missing{ | .sv-def-icon--missing{ | ||
display:inline-flex; | display:inline-flex; | ||
align-items:center; | align-items:center; | ||
justify-content:center; | justify-content:center; | ||
width:14px; | width:14px; | ||
height:14px; | height:14px; | ||
border-radius:999px; | border-radius:999px; | ||
border:1px solid rgba(255,255,255,0.28); | border:1px solid rgba(255,255,255,0.28); | ||
background:rgba(0,0,0,0.18); | background:rgba(0,0,0,0.18); | ||
font-weight:900; | font-weight:900; | ||
font-size:11px; | font-size:11px; | ||
| Line 67: | Line 60: | ||
} | } | ||
/* ------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- */ | ||
/* 3) Text */ | |||
/* -------------------------------------------------------------------------- */ | |||
------------------------------------------------------------------------- */ | |||
.sv-def-text{ | .sv-def-text{ | ||
color: | color:var(--color-link); | ||
border-bottom:1px dotted currentColor; | border-bottom:1px dotted currentColor; | ||
text-decoration:none; | text-decoration:none; | ||
} | } | ||
.sv-def:hover .sv-def-text{ | .sv-def:hover .sv-def-text{ | ||
color:var(--color-link--hover); | |||
border-bottom-style:solid; | border-bottom-style:solid; | ||
} | } | ||
/* | /* -------------------------------------------------------------------------- */ | ||
/* 4) States and modes */ | |||
/* -------------------------------------------------------------------------- */ | |||
/* | |||
.sv-def--missing, | .sv-def--missing, | ||
.sv-def--error{ | .sv-def--error{ | ||
| Line 126: | Line 85: | ||
} | } | ||
.sv-def--pill .sv-def-text, | |||
.sv-def--fill .sv-def-text{ | |||
border-bottom:none; | |||
} | |||
.sv-def--pill .sv-def-text{ | .sv-def--pill .sv-def-text{ | ||
color:inherit; | color:inherit; | ||
} | } | ||
| Line 150: | Line 105: | ||
width:100%; | width:100%; | ||
height:100%; | height:100%; | ||
} | } | ||