desy-html 10.1.0 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/config/tailwind.config.js +2 -2
  2. package/docs/ds/_ds.section.layout.njk +2 -2
  3. package/docs/index.html +13 -0
  4. package/package.json +1 -1
  5. package/src/templates/components/card/_examples.card.njk +8 -0
  6. package/src/templates/components/collapsible/_examples.collapsible.njk +19 -0
  7. package/src/templates/components/collapsible/_template.collapsible.njk +4 -4
  8. package/src/templates/components/collapsible/params.collapsible.yaml +16 -0
  9. package/src/templates/components/footer/_examples.footer.njk +49 -32
  10. package/src/templates/components/footer/_template.footer.njk +1 -1
  11. package/src/templates/components/footer/params.footer.yaml +1 -1
  12. package/src/templates/components/header-advanced/_template.header-advanced.njk +2 -2
  13. package/src/templates/components/header-advanced/params.header-advanced.yaml +8 -0
  14. package/src/templates/components/header-mini/_examples.header-mini.njk +283 -8
  15. package/src/templates/components/header-mini/_template.header-mini.njk +26 -0
  16. package/src/templates/components/header-mini/params.header-mini.yaml +56 -0
  17. package/src/templates/components/links-list/_examples.links-list.njk +97 -4
  18. package/src/templates/components/links-list/_template.links-list.njk +37 -3
  19. package/src/templates/components/links-list/params.links-list.yaml +21 -1
  20. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +187 -12
  21. package/src/templates/components/menu-horizontal/_styles.menu-horizontal.css +72 -5
  22. package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +3 -3
  23. package/src/templates/components/menu-vertical/_template.menu-vertical.njk +1 -1
  24. package/src/templates/components/table/_examples.table.njk +118 -118
  25. package/src/templates/components/table/_template.table.njk +10 -6
@@ -3,6 +3,74 @@
3
3
  ========================================================================== */
4
4
 
5
5
  @layer components {
6
+ .c-menu-horizontal--links {
7
+ .c-menu-horizontal__link {
8
+ @apply text-primary-base;
9
+
10
+ &[disabled],
11
+ &[disabled]:hover,
12
+ &[disabled]:focus {
13
+ @apply opacity-50;
14
+ @apply text-black;
15
+ @apply cursor-not-allowed;
16
+ }
17
+ }
18
+ }
19
+
20
+ .c-menu-horizontal--navigation-bar {
21
+ @apply border-l-0;
22
+ @apply border-b;
23
+ @apply border-b-neutral-dark;
24
+
25
+ .c-menu-horizontal__link {
26
+ @apply border-none;
27
+ @apply no-underline;
28
+ @apply hover:bg-neutral-lighter;
29
+
30
+ &.c-menu-horizontal__active {
31
+ @apply hover:no-underline;
32
+ @apply font-bold;
33
+ }
34
+
35
+ &:hover:not(disabled) {
36
+ @apply bg-neutral-light;
37
+ }
38
+
39
+ &[disabled],
40
+ &[disabled]:hover,
41
+ &[disabled]:focus {
42
+ @apply bg-white;
43
+ @apply opacity-50;
44
+ @apply cursor-not-allowed;
45
+ }
46
+ }
47
+
48
+ .c-menu-horizontal__list {
49
+ @apply flex;
50
+ @apply flex-wrap;
51
+ @apply relative;
52
+ @apply w-full;
53
+ }
54
+
55
+ .c-menu-horizontal__active {
56
+ @apply hover:no-underline;
57
+ @apply relative;
58
+
59
+ &::after {
60
+ content: "";
61
+ @apply block;
62
+ @apply absolute;
63
+ @apply left-0;
64
+ @apply right-0;
65
+ @apply top-auto;
66
+ @apply bottom-0;
67
+ @apply w-auto;
68
+ @apply h-xs;
69
+ @apply bg-neutral-dark;
70
+ }
71
+ }
72
+ }
73
+
6
74
  .c-menu-horizontal--tabs {
7
75
  @apply lg:border-b;
8
76
  @apply lg:border-neutral-dark;
@@ -66,7 +134,8 @@
66
134
  }
67
135
 
68
136
  .c-menu-horizontal__link {
69
- &:focus span{
137
+ &:focus > span,
138
+ &:focus > strong {
70
139
  @apply bg-warning-base;
71
140
  @apply shadow-outline-focus;
72
141
  @apply text-black;
@@ -75,15 +144,13 @@
75
144
 
76
145
  &.c-menu-horizontal__active {
77
146
  @apply no-underline;
78
- &:hover {
79
- @apply underline;
80
- }
147
+ @apply hover:underline;
81
148
  }
82
149
  }
83
150
 
84
151
  .c-menu-horizontal--scroll {
85
152
  .c-menu-horizontal__list {
86
- @apply relative w-full flex lg:flex-nowrap snap-x overflow-x-auto -mb-0.5;
153
+ @apply relative w-full flex flex-nowrap snap-x overflow-x-auto;
87
154
 
88
155
  & > li {
89
156
  @apply snap-start;
@@ -16,12 +16,12 @@
16
16
  {% endif %}
17
17
  <li>
18
18
  {% if item.active %}
19
- <a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="c-menu-horizontal__link c-menu-horizontal__active relative flex items-center py-sm lg:px-lg lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none
19
+ <a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="c-menu-horizontal__link c-menu-horizontal__active relative flex items-center px-base py-sm lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none
20
20
  {%- if item.disabled %} no-underline pointer-events-none{% endif -%} {%- if item.classes %} {{ item.classes }}{% endif -%}" {%- if item.title %} title="{{ item.title }}"{% endif -%} {%- if item.disabled %} disabled="disabled" aria-disabled="true" tabindex="-1"{% endif -%} {%- if item.target %} target="{{ item.target }}"{% endif %} aria-current="page" {%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
21
- <strong class="font-bold">{{ item.html | safe if item.html else item.text }}</strong>
21
+ <strong class="flex items-center pointer-events-none font-bold">{{ item.html | safe if item.html else item.text }}</strong>
22
22
  </a>
23
23
  {% else %}
24
- <a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="c-menu-horizontal__link relative flex items-center py-sm lg:px-lg lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none
24
+ <a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="c-menu-horizontal__link relative flex items-center px-base py-sm lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none
25
25
  {%- if item.disabled %} no-underline pointer-events-none{% endif -%} {%- if item.classes %} {{ item.classes }}{% endif -%}" {%- if item.title %} title="{{ item.title }}"{% endif -%} {%- if item.disabled %} disabled="disabled" aria-disabled="true" tabindex="-1"{% endif -%} {%- if item.target %} target="{{ item.target }}"{% endif %} {%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
26
26
  <span class="flex items-center pointer-events-none">
27
27
  {{ item.html | safe if item.html else item.text }}
@@ -13,7 +13,7 @@
13
13
  {%- set id = idPrefix + "-" + loop.index -%}
14
14
  {%- endif -%}
15
15
  {% set subId = "sub-" + id %}
16
- <li class="m-base">
16
+ <li class="my-base break-inside-avoid-column">
17
17
  {% if item.href %}
18
18
  <a {%- if id %} id="{{ id }}"{% endif %} href="{{ item.href }}" class="block px-xs focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black {%- if params.hasUnderline %} underline{% endif %} {%- if item.classes %} {{ item.classes }}{% endif %} {%- if not item.disabled %} hover:text-primary-base hover:underline{% endif %} {%- if item.disabled %} no-underline pointer-events-none{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %}{%- if item.active %} aria-current="page"{% endif %} {% if item.disabled %} aria-disabled="true" tabindex="-1"{% endif %} {% if item.target %} target="{{ item.target }}"{% endif %}{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor -%}>
19
19
  {% if item.active %}