diff options
| author | Robert Günzler <r@gnzler.io> | 2025-10-23 16:29:21 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-11-17 15:02:38 +0100 |
| commit | 3390f4975206c82ab7c7e272385335de7dcaf227 (patch) | |
| tree | 5667a8059bcaffa712f5974bdcd7b59afe0d3079 /links | |
| parent | 509da8ebd1cb4f76eae0ffed179b9af1be73f8dd (diff) | |
| download | site-3390f4975206c82ab7c7e272385335de7dcaf227.tar.gz | |
index: mobile-compatible email tooltip
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'links')
| -rw-r--r-- | links/hero.css | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/links/hero.css b/links/hero.css index 311835e..8b053dc 100644 --- a/links/hero.css +++ b/links/hero.css @@ -61,3 +61,28 @@ main.hero>nav ul { main.hero>nav li+li { margin-top: 5px; } + +@media (pointer: coarse), +(hover: none) { + main.hero { + [title] { + position: relative; + display: inline-flex; + } + + [title]:focus::after { + content: attr(title); + position: absolute; + top: 3rem; + left: 1rem; + color: color-mix(in srgb, var(--fg) 90%, transparent); + background-color: color-mix(in srgb, var(--bg) 90%, transparent); + border: 1px solid; + text-wrap: nowrap; + width: min-content; + max-width: 100vw; + padding: 1px 5px; + z-index: 9999; + } + } +} |