From 3b380e954acd6beec2f346ec20edcdc03839424d Mon Sep 17 00:00:00 2001 From: sthag Date: Thu, 19 Jun 2025 16:21:09 +0200 Subject: [PATCH] feat: Changes to style and logic for ui parts - Update hippie styles - Move top element for new page to header macro - Reassign ui and example collections --- source/screens/demo/basics.njk | 50 +++++++++---------- source/screens/demo/examples/ui/drag.njk | 2 +- source/screens/demo/examples/ui/form.njk | 3 +- source/screens/demo/examples/ui/new.njk | 31 +++--------- source/screens/demo/examples/ui/settings.njk | 5 +- source/style/hippie-style | 2 +- source/style/modules/ui/_drag_module.scss | 15 +++--- source/style/modules/ui/_form_module.scss | 7 +-- source/style/modules/ui/_settings_module.scss | 6 --- source/style/ui.scss | 20 +++----- source/templates/demo/_app.njk | 1 - source/templates/hippie/macros/_header.njk | 25 ++++++++++ source/templates/hippie/macros/_state.njk | 4 +- 13 files changed, 79 insertions(+), 92 deletions(-) diff --git a/source/screens/demo/basics.njk b/source/screens/demo/basics.njk index d8cf064..8ab604a 100644 --- a/source/screens/demo/basics.njk +++ b/source/screens/demo/basics.njk @@ -629,7 +629,7 @@ tags: Elementes. Dieses ist notwendig um Angaben zur Kommunikation mit dem Server zu setzen. Es hat normalerweise keine gestalterische Funktion.

Grundlegend ist das Element <input>. Es hat viele Attribute um den Typ der Eingabe anzupassen. Ist es undefiniert nimmt es jegliche textbasierte Information auf und erhält eine Standardgröße.

-

+

Ein spezieller Typ des Eingabefeldes hat die Funktion einer Schaltfläche <input[type="button"]>. Es gibt allerdings auch ein eigenes Element <button> @@ -637,8 +637,8 @@ tags:

-

- +

+

Interaktive Elemente können durch das Attribut readonly @@ -649,8 +649,8 @@ tags:

-

- +

+

Das Element <label> @@ -677,31 +677,31 @@ tags: - + - + - + - + - + - + @@ -713,8 +713,8 @@ tags: realisiert.

- - + +

Sie können mittels @@ -753,9 +753,9 @@ tags:

-
+
-
+
@@ -792,43 +792,43 @@ tags: -
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/source/screens/demo/examples/ui/drag.njk b/source/screens/demo/examples/ui/drag.njk index 09266b9..ac2276e 100755 --- a/source/screens/demo/examples/ui/drag.njk +++ b/source/screens/demo/examples/ui/drag.njk @@ -1,7 +1,7 @@ --- title: Drag tags: - - demoExample + - ui --- {% set pageId = page.fileSlug %} {% set pageClass = "h_full_view" %} diff --git a/source/screens/demo/examples/ui/form.njk b/source/screens/demo/examples/ui/form.njk index b9adc45..1ab3145 100644 --- a/source/screens/demo/examples/ui/form.njk +++ b/source/screens/demo/examples/ui/form.njk @@ -1,10 +1,9 @@ --- title: Form tags: - - demoExample - ui --- -{% set bodyClass = "body_form" %} +{% set pageClass = "html_ui" %} {% extends "demo/_app.njk" %} diff --git a/source/screens/demo/examples/ui/new.njk b/source/screens/demo/examples/ui/new.njk index c567309..536583d 100755 --- a/source/screens/demo/examples/ui/new.njk +++ b/source/screens/demo/examples/ui/new.njk @@ -1,14 +1,14 @@ --- title: New tags: - - demoExample + - ui --- {% set pageId = page.fileSlug %} {% set pageClass = "h_full_view" %} {% set bodyClass = "body_new" %} {% extends "demo/_app.njk" %} -{% import "hippie/macros/_state.njk" as state %} +{% import "hippie/macros/_header.njk" as header %} {% block title %}{{ title }} {% endblock %} @@ -23,27 +23,7 @@ tags: {% endblock %} {% block body %} -
-

- {{ hippie.brand | upper }} -

- -
-

{{ state.coord("log")}} - / - {{ state.date("date")}} - / - {{ state.time("time")}}

-
-
+ {{ header.status(hippie, new) }}