From c53d9751c7a8d8687a6a27b308462c5ca77953e5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 6 Feb 2024 18:20:51 -0400 Subject: content, css: generateAlbumTrackList: handle missing durations With bad CSS, at the moment. --- src/static/site6.css | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'src/static/site6.css') diff --git a/src/static/site6.css b/src/static/site6.css index 146ae7a..f926a61 100644 --- a/src/static/site6.css +++ b/src/static/site6.css @@ -517,10 +517,27 @@ a:not([href]):hover { text-decoration-style: wavy !important; } -.text-with-tooltip.datetimestamp > :first-child { +.text-with-tooltip.datetimestamp > :first-child, +.text-with-tooltip.missing-duration > :first-child { cursor: default; } +.text-with-tooltip.missing-duration > :first-child { + opacity: 0.5; +} + +.text-with-tooltip.missing-duration > :first-child:hover, +.text-with-tooltip.missing-duration > :first-child.has-visible-tooltip { + text-decoration: none !important; + opacity: 1; +} + +.text-with-tooltip.missing-duration > :first-child:hover .duration-text, +.text-with-tooltip.missing-duration > :first-child.has-visible-tooltip .duration-text { + text-decoration: underline; + text-decoration-style: wavy; +} + .tooltip { position: absolute; z-index: 3; @@ -557,7 +574,8 @@ li:not(:first-child:last-child) .tooltip, left: -34px; } -.datetimestamp-tooltip { +.datetimestamp-tooltip, +.missing-duration-tooltip { padding: 3px 4px 2px 2px; left: -10px; } @@ -581,7 +599,8 @@ li:not(:first-child:last-child) .tooltip, cursor: default; } -.datetimestamp-tooltip .tooltip-content { +.datetimestamp-tooltip .tooltip-content, +.missing-duration-tooltip .tooltip-content { padding: 5px 6px; white-space: nowrap; font-size: 0.9em; -- cgit 1.3.0-6-gf8a5