From 78d333c217b0e0437b49aa25eb3f87eed8f44aef Mon Sep 17 00:00:00 2001 From: David Larlet Date: Thu, 17 Apr 2025 14:44:45 -0400 Subject: [PATCH] chore: more design system elements --- umap/static/umap/css/bar.css | 2 +- umap/templates/umap/design_system.html | 223 ++++++++++++++++++++++++- 2 files changed, 220 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/css/bar.css b/umap/static/umap/css/bar.css index b62249e7..9433957a 100644 --- a/umap/static/umap/css/bar.css +++ b/umap/static/umap/css/bar.css @@ -1,6 +1,6 @@ .umap-main-edit-toolbox [type=button] { color: #fff; - font-size: 1em; + font-size: 0.8rem; background-color: var(--color-darkGray); width: auto; margin-bottom: 0; diff --git a/umap/templates/umap/design_system.html b/umap/templates/umap/design_system.html index 0d580dce..837adebb 100644 --- a/umap/templates/umap/design_system.html +++ b/umap/templates/umap/design_system.html @@ -9,9 +9,19 @@ {% block extra_head %} {{ block.super }} {% endblock extra_head %} @@ -35,7 +57,129 @@

uMap Design System

+

Navigation

+

Header

+ +

Header map

+
+
+
+ + + + + +
+
+ + + + + +
+
+
+

Card

+
+
+ {# djlint:off #} + +
+
+
+ {# djlint:on #} +
+
+ +

Une carte en exemple avec des tags et un titre sur plusieurs lignes

+

par David L.

+
+ Voir la carte +
+
+
+

Footer

+
+ uMap + Un projet OpenStreetMap + (version 3.0.4) + Aide +
+ +
+

Forms

+

Buttons

+ Créer une carte +
+
+
+
+ +
+
+ +
+

Search form

+
+
+ + + +
+

Copiable link

@@ -62,10 +206,10 @@
-

You want it darker…

+

You want it darker…

+

Panel

Titre avec icône

-
Options d'interface
@@ -115,6 +259,77 @@
+
+ Propriétés par défaut +
+
+
+
+ + + + + + +
+
+ + +
+
+
+ + + +
+
+
+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+

Importers

+
+
+
    +
  • + +
+ +
+
+
+

Assistants d'import

+

Les assistants d'import vont renseigner le champ URL pour vous.

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
+
+ + + + +

Colors

@@ -130,7 +345,7 @@ for (const style of styles) { if (style.startsWith("--") && style.includes("color")) { const value = styles.getPropertyValue(style) - html += `
${style}
` + html += `
${style} (${value})
` } } const template = document.createElement('template')