From e3c0d1e8fd813df3acde5abd9975e1cf7bddf305 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 11 Jul 2020 06:14:39 +0200 Subject: [PATCH] add title text inline for (hover:none) --- style.css | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index d2ea044..94a2e09 100644 --- a/style.css +++ b/style.css @@ -107,9 +107,18 @@ dd { text-align: left; } -[title] { - text-decoration: dotted underline; - text-decoration-thickness: 2px; +@media (hover) { + [title] { + text-decoration: dotted underline; + text-decoration-thickness: 2px; + } +} +@media (hover: none) { + [title]::after { + content: attr(title); + font-size: 75%; + display: inline-block; + } } a {