8,290
edits
mNo edit summary |
m (re-activate core stat tooltips) |
||
Line 334: | Line 334: | ||
.qud-tooltip .qud-tooltip-text { | .qud-tooltip .qud-tooltip-text { | ||
visibility: hidden; | visibility: hidden; | ||
width: 120px; | |||
background-color: var(--qud-bg-color-darker); | |||
color: var(--qud-color-y); | |||
text-align: center; | |||
padding: 5px 0; | |||
border-radius: 6px; | |||
font-size: calc(0.23em + 7px); | |||
position: absolute; | position: absolute; | ||
z-index: 1; | |||
width: 120px; | |||
bottom: 100%; | |||
left: 50%; | |||
margin-left: -60px; /* half of the width */ | |||
} | } | ||
/* | /* | ||
Line 354: | Line 366: | ||
margin-top: 0px; | margin-top: 0px; | ||
transition: font-size 0.1s, margin-top 0.1s; | transition: font-size 0.1s, margin-top 0.1s; | ||
} | |||
/* enable tooltips for core stats specifically (most other tooltips are not active on mobile) */ | |||
.qud-core-stats-entry.qud-tooltip:hover .qud-tooltip-text | |||
.qud-core-stats-entry.qud-tooltip:focus .qud-tooltip-text { | |||
visibility: visible; | |||
} | } | ||
.qud-stat-icon{ | .qud-stat-icon{ |