From 6a574d92c270061bcfaed2ab674932678296a44c Mon Sep 17 00:00:00 2001 From: sthag Date: Sun, 1 Mar 2026 20:57:15 +0100 Subject: [PATCH] feat: Add overlay to HippieClock - Add method to create overlay element - Use DateDisplay and TimeDisplay classes - Add button to toggle display - Update style for header - Add methods to handle shapes --- source/screens/demo/examples/clock.liquid | 98 +++++++++++++++++++++-- source/style/modules/_clock.scss | 6 ++ 2 files changed, 98 insertions(+), 6 deletions(-) diff --git a/source/screens/demo/examples/clock.liquid b/source/screens/demo/examples/clock.liquid index ba05a15..4d581b9 100644 --- a/source/screens/demo/examples/clock.liquid +++ b/source/screens/demo/examples/clock.liquid @@ -8,8 +8,11 @@ tags: {% block body %}
- - + +
{% endblock %} @@ -20,7 +23,6 @@ tags: {% endblock %} \ No newline at end of file diff --git a/source/style/modules/_clock.scss b/source/style/modules/_clock.scss index b58fed5..0965587 100644 --- a/source/style/modules/_clock.scss +++ b/source/style/modules/_clock.scss @@ -1,6 +1,12 @@ @use "../hippie-style/hippie"; +@use "sass:map"; + .body_clock { + header { + z-index: map.get(hippie.$z-indexes, "content-top"); + } + main { display: flex; flex-flow: column nowrap;