@digigov/css 2.0.0-rc.2 → 2.0.0-rc.21

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 (143) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/index.js +99 -69
  8. package/package.json +14 -10
  9. package/postcss.config.js +4 -3
  10. package/src/base/base.css +1 -1
  11. package/src/base/index.css +6 -5
  12. package/src/base/postcss.config.js +11 -10
  13. package/src/base/tailwind.config.js +4 -11
  14. package/src/components/accordion.css +61 -54
  15. package/src/components/admin-header.css +2 -19
  16. package/src/components/admin-layout.css +13 -22
  17. package/src/components/autocomplete.css +89 -46
  18. package/src/components/back-to-top.css +3 -4
  19. package/src/components/blockquote.common.css +14 -0
  20. package/src/components/blockquote.css +9 -0
  21. package/src/components/blockquote.native.css +11 -0
  22. package/src/components/bottom-info.css +2 -1
  23. package/src/components/breadcrumbs.css +17 -8
  24. package/src/components/button.common.css +62 -0
  25. package/src/components/button.css +57 -71
  26. package/src/components/button.native.css +56 -0
  27. package/src/components/card.common.css +33 -0
  28. package/src/components/card.css +65 -52
  29. package/src/components/card.native.css +29 -0
  30. package/src/components/checkboxes.common.css +16 -0
  31. package/src/components/checkboxes.css +26 -31
  32. package/src/components/checkboxes.native.css +28 -0
  33. package/src/components/chip.css +28 -29
  34. package/src/components/code.css +127 -0
  35. package/src/components/components.css +2 -2
  36. package/src/components/copy-to-clipboard.css +27 -26
  37. package/src/components/copy-to-clipboard.native.css +28 -0
  38. package/src/components/details.common.css +26 -0
  39. package/src/components/details.css +14 -15
  40. package/src/components/details.native.css +26 -0
  41. package/src/components/dev-theme.css +2 -3
  42. package/src/components/drawer.css +47 -48
  43. package/src/components/dropdown.common.css +23 -0
  44. package/src/components/dropdown.css +57 -48
  45. package/src/components/dropdown.native.css +28 -0
  46. package/src/components/experimental.css +12 -12
  47. package/src/components/fillable.css +5 -5
  48. package/src/components/filter.css +15 -20
  49. package/src/components/footer.css +35 -21
  50. package/src/components/form.common.css +82 -0
  51. package/src/components/form.css +87 -49
  52. package/src/components/form.native.css +133 -0
  53. package/src/components/full-page-background.css +1 -1
  54. package/src/components/header.common.css +36 -0
  55. package/src/components/header.css +44 -43
  56. package/src/components/header.native.css +34 -0
  57. package/src/components/hidden.css +17 -17
  58. package/src/components/index.css +49 -47
  59. package/src/components/kitchensink.css +33 -33
  60. package/src/components/layout.common.css +36 -0
  61. package/src/components/layout.css +41 -42
  62. package/src/components/layout.native.css +39 -0
  63. package/src/components/loader.css +28 -28
  64. package/src/components/masthead.css +56 -55
  65. package/src/components/misc.css +37 -15
  66. package/src/components/modal.common.css +17 -0
  67. package/src/components/modal.css +31 -20
  68. package/src/components/modal.native.css +18 -0
  69. package/src/components/nav.common.css +22 -0
  70. package/src/components/nav.css +72 -67
  71. package/src/components/nav.native.css +41 -0
  72. package/src/components/notification-banner.common.css +46 -0
  73. package/src/components/notification-banner.css +23 -19
  74. package/src/components/notification-banner.native.css +42 -0
  75. package/src/components/pagination.css +30 -31
  76. package/src/components/panel.common.css +30 -0
  77. package/src/components/panel.css +10 -18
  78. package/src/components/panel.native.css +20 -0
  79. package/src/components/phase-banner.common.css +23 -0
  80. package/src/components/phase-banner.css +11 -10
  81. package/src/components/phase-banner.native.css +31 -0
  82. package/src/components/postcss.config.js +7 -6
  83. package/src/components/radios.common.css +16 -0
  84. package/src/components/radios.css +27 -30
  85. package/src/components/radios.native.css +24 -0
  86. package/src/components/skeleton.css +85 -0
  87. package/src/components/skiplink.css +2 -2
  88. package/src/components/stack.css +63 -63
  89. package/src/components/stepnav.css +35 -32
  90. package/src/components/summary-list.common.css +92 -0
  91. package/src/components/summary-list.css +101 -27
  92. package/src/components/summary-list.native.css +93 -0
  93. package/src/components/svg-icons.common.css +56 -0
  94. package/src/components/svg-icons.css +78 -80
  95. package/src/components/svg-icons.native.css +55 -0
  96. package/src/components/table.css +163 -182
  97. package/src/components/tabs.css +52 -67
  98. package/src/components/task-list.css +28 -23
  99. package/src/components/test.css +7 -0
  100. package/src/components/timeline.css +20 -18
  101. package/src/components/typography.common.css +135 -0
  102. package/src/components/typography.css +98 -189
  103. package/src/components/typography.native.css +97 -0
  104. package/src/components/warning-text.common.css +23 -0
  105. package/src/components/warning-text.css +11 -8
  106. package/src/components/warning-text.native.css +22 -0
  107. package/src/index.native.css +21 -0
  108. package/src/pages/index.js +1 -1
  109. package/src/utilities/gap.css +141 -0
  110. package/src/utilities/index.css +6 -1655
  111. package/src/utilities/index.native.css +6 -0
  112. package/src/utilities/layout.css +231 -0
  113. package/src/utilities/layout.native.css +278 -0
  114. package/src/utilities/margin.css +4299 -0
  115. package/src/utilities/padding.css +4299 -0
  116. package/src/utilities/postcss.config.js +7 -6
  117. package/src/utilities/print.css +11 -0
  118. package/src/utilities/utilities.css +3 -1660
  119. package/tailwind.config.js +101 -104
  120. package/theming.js +121 -0
  121. package/defaultTheme/accordion.json +0 -8
  122. package/defaultTheme/back-to-top.json +0 -27
  123. package/defaultTheme/brandConfig.json +0 -135
  124. package/defaultTheme/breadcrumbs.json +0 -8
  125. package/defaultTheme/button.json +0 -81
  126. package/defaultTheme/card.json +0 -12
  127. package/defaultTheme/footer.json +0 -8
  128. package/defaultTheme/form.json +0 -15
  129. package/defaultTheme/globals.json +0 -71
  130. package/defaultTheme/index.js +0 -27
  131. package/defaultTheme/misc.json +0 -48
  132. package/defaultTheme/panel.json +0 -43
  133. package/defaultTheme/phase-banner.json +0 -8
  134. package/defaultTheme/radios.json +0 -8
  135. package/defaultTheme/summary-list.json +0 -8
  136. package/defaultTheme/typography.json +0 -295
  137. package/src/pages/admin-filtering-data.js +0 -160
  138. package/src/pages/admin.js +0 -61
  139. package/src/pages/dropdown.js +0 -249
  140. package/src/pages/form.js +0 -400
  141. package/src/pages/pagination.js +0 -124
  142. package/src/pages/table.js +0 -308
  143. package/themes.plugin.js +0 -148
@@ -1,39 +1,40 @@
1
+ @import './header.common.css';
2
+
1
3
  .ds-header {
2
- @apply relative bg-primary border-b-8 print:border-b-2 border-tertiary print:bg-white;
3
- border-bottom-style: solid;
4
+ @apply util-header;
5
+ background: var(--header-background);
6
+ border-width: var(--header-border-width);
4
7
  }
5
8
  .ds-header__content {
6
- @apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center
7
- print:px-0 gap-3;
9
+ @apply util-header__content;
8
10
  }
9
11
  .ds-header__section {
10
- @apply flex justify-start flex-wrap items-center gap-x-4 gap-y-2
11
- print:gap-1;
12
+ @apply util-header__section gap-x-4 gap-y-2;
13
+ &:last-child:not(:first-child) {
14
+ @apply flex-1 justify-end sm:flex-none sm:justify-start;
15
+ }
12
16
  }
13
17
  .ds-header__logo {
18
+ @apply util-header__logo;
14
19
  print-color-adjust: exact !important;
15
20
  -webkit-print-color-adjust: exact !important;
16
- @apply h-12 print:hidden;
17
21
  }
18
22
  .ds-header__logo-inverted {
19
- @apply h-12 hidden print:block;
23
+ @apply util-header__logo-inverted;
20
24
  }
21
25
  .ds-header__secondary-logo {
22
- @apply h-10 print:hidden;
26
+ @apply util-header__secondary-logo;
23
27
  }
24
28
  .ds-header__link:focus {
25
- box-shadow: 0px 0px 0px 4px var(--color-focus);
26
- -webkit-box-shadow: 0px 0px 0px 4px var(--color-focus);
27
- -moz-box-shadow: 0px 0px 0px 4px var(--color-focus);
29
+ box-shadow: 0 0 0 4px var(--color-focus);
28
30
  outline: none;
29
31
  text-decoration: none;
30
32
  }
31
33
  .ds-header__title {
32
- @apply text-white font-bold text-2xl leading-10 tracking-wide no-underline
33
- w-auto align-middle hover:no-underline
34
- print:text-base-content;
34
+ @apply util-header__title util-header__title-text w-auto;
35
35
  &:hover {
36
- @apply text-white;
36
+ /* @apply text-white; */
37
+ color: var(--header__title-color-hover);
37
38
  }
38
39
  &:focus {
39
40
  text-decoration: none;
@@ -42,7 +43,7 @@
42
43
  }
43
44
  }
44
45
  .ds-header-nav-menu__content {
45
- @apply flex justify-start items-center gap-x-4 gap-y-2 print:gap-1;
46
+ @apply util-header-nav-menu__content gap-x-4 gap-y-2;
46
47
  }
47
48
 
48
49
  /* overrides */
@@ -51,8 +52,22 @@
51
52
  .ds-header__content,
52
53
  .ds-header__section {
53
54
  > .ds-link,
54
- > .ds-dropdown .ds-dropdown__button.ds-link {
55
- @apply text-white focus:text-link-active print:text-base-content;
55
+ > .ds-dropdown .ds-dropdown__button.ds-link {
56
+ @apply focus:text-link-active print:text-base-content;
57
+ color: var(--color-header-text);
58
+ }
59
+ > .ds-skeleton {
60
+ @apply bg-primary-100 w-80 max-w-xs;
61
+ &.ds-skeleton--animate {
62
+ &::after {
63
+ background: linear-gradient(
64
+ 90deg,
65
+ transparent,
66
+ rgba(255, 255, 255, 0.05),
67
+ transparent
68
+ );
69
+ }
70
+ }
56
71
  }
57
72
  }
58
73
  .ds-dropdown {
@@ -62,12 +77,9 @@
62
77
  @apply sm:w-max;
63
78
  }
64
79
  .ds-link {
65
- .ds-svg-icon {
66
- fill: var(--color-white);
67
- }
68
80
  &:hover {
69
81
  .ds-svg-icon {
70
- fill: var(--color-white);
82
+ fill: var(--color-header-text-hover);
71
83
  }
72
84
  }
73
85
  &:focus {
@@ -75,24 +87,13 @@
75
87
  fill: var(--color-link-active);
76
88
  }
77
89
  }
78
- }
79
- .ds-phase-banner__text {
80
- @apply text-white print:text-base-content;
81
- }
82
- .ds-link {
83
90
  .ds-svg-icon {
84
91
  fill: var(--color-white);
85
92
  }
86
- &:hover {
87
- .ds-svg-icon {
88
- fill: var(--color-white);
89
- }
90
- }
91
- &:focus {
92
- .ds-svg-icon {
93
- fill: var(--color-link-active);
94
- }
95
- }
93
+ }
94
+ .ds-phase-banner__message {
95
+ @apply print:text-base-content;
96
+ color: var(--color-header-text);
96
97
  }
97
98
  }
98
99
  .ds-header__section {
@@ -104,13 +105,13 @@
104
105
  .ds-header__content,
105
106
  .ds-header__section {
106
107
  > .ds-svg-icon--burger {
107
- fill: var(--color-white);
108
108
  @apply float-right focus:bg-focus;
109
+ fill: var(--color-header-text);
109
110
  }
110
111
  > .ds-close-btn {
111
112
  @apply sm:hidden;
112
113
  .ds-svg-icon--close {
113
- fill: var(--color-link) !important;
114
+ fill: var(--color-header-text) !important;
114
115
  }
115
116
  }
116
117
  > .ds-nav__list {
@@ -118,16 +119,16 @@
118
119
  > .ds-nav__list-item-link,
119
120
  > .ds-nav__list-item-btn {
120
121
  &:not(:focus) {
121
- @apply text-white;
122
+ color: var(--color-header-text);
122
123
  }
123
124
  }
124
125
  > .ds-nav__list-item-link--active,
125
126
  > .ds-nav__list-item-btn--active {
126
127
  &:not(:focus) {
127
- @apply text-white !important;
128
+ color: var(--color-header-text) !important;
128
129
  }
129
130
  .ds-svg-icon {
130
- fill: var(--color-white);
131
+ fill: var(--color-header-text);
131
132
  }
132
133
  }
133
134
  }
@@ -0,0 +1,34 @@
1
+ @import './header.common.css';
2
+
3
+ .ds-header {
4
+ @apply util-header;
5
+ background-color: var(--header-background);
6
+ border-top-width: var(--header-border-top-width);
7
+ border-bottom-width: var(--header-border-bottom-width);
8
+ border-left-width: var(--header-border-left-width);
9
+ border-right-width: var(--header-border-right-width);
10
+ }
11
+ .ds-header__content {
12
+ @apply util-header__content;
13
+ }
14
+ .ds-header__section {
15
+ @apply util-header__section flex-row;
16
+ }
17
+ .ds-header__logo {
18
+ @apply util-header__logo;
19
+ }
20
+ .ds-header__logo-inverted {
21
+ @apply util-header__logo-inverted;
22
+ }
23
+ .ds-header__secondary-logo {
24
+ @apply util-header__secondary-logo;
25
+ }
26
+ .ds-header__title {
27
+ @apply util-header__title;
28
+ }
29
+ .ds-header__title__text {
30
+ @apply util-header__title-text ;
31
+ }
32
+ .ds-header-nav-menu__content {
33
+ @apply util-header-nav-menu__content;
34
+ }
@@ -1,33 +1,33 @@
1
1
  .ds-hidden {
2
- @apply hidden;
2
+ @apply hidden !important;
3
3
  }
4
- .ds-hidden-xs--up {
5
- @apply xs:hidden;
4
+ .ds-hidden-xs-up {
5
+ @apply xs:hidden !important;
6
6
  }
7
- .ds-hidden-sm--up {
8
- @apply sm:hidden;
7
+ .ds-hidden-sm-up {
8
+ @apply sm:hidden !important;
9
9
  }
10
- .ds-hidden-md--up {
11
- @apply md:hidden;
10
+ .ds-hidden-md-up {
11
+ @apply md:hidden !important;
12
12
  }
13
- .ds-hidden-lg--up {
14
- @apply lg:hidden;
13
+ .ds-hidden-lg-up {
14
+ @apply lg:hidden !important;
15
15
  }
16
- .ds-hidden-xl--up {
17
- @apply xl:hidden;
16
+ .ds-hidden-xl-up {
17
+ @apply xl:hidden !important;
18
18
  }
19
19
  .ds-hidden-xs {
20
- @apply xsOnly:hidden;
20
+ @apply xsOnly:hidden !important;
21
21
  }
22
22
  .ds-hidden-sm {
23
- @apply smOnly:hidden;
23
+ @apply smOnly:hidden !important;
24
24
  }
25
25
  .ds-hidden-md {
26
- @apply mdOnly:hidden;
26
+ @apply mdOnly:hidden !important;
27
27
  }
28
28
  .ds-hidden-lg {
29
- @apply lgOnly:hidden;
29
+ @apply lgOnly:hidden !important;
30
30
  }
31
31
  .ds-hidden-xl {
32
- @apply xlOnly:hidden;
33
- }
32
+ @apply xlOnly:hidden !important;
33
+ }
@@ -1,47 +1,49 @@
1
- @import "./accordion.css";
2
- @import "./autocomplete.css";
3
- @import "./button.css";
4
- @import "./bottom-info.css";
5
- @import "./chip.css";
6
- @import "./form.css";
7
- @import "./checkboxes.css";
8
- @import "./chip.css";
9
- @import "./dropdown.css";
10
- @import "./radios.css";
11
- @import "./header.css";
12
- @import "./footer.css";
13
- @import "./layout.css";
14
- @import "./nav.css";
15
- @import "./typography.css";
16
- @import "./back-to-top.css";
17
- @import "./table.css";
18
- @import "./filter.css";
19
- @import "./admin-layout.css";
20
- @import "./admin-header.css";
21
- @import "./breadcrumbs.css";
22
- @import "./card.css";
23
- @import "./details.css";
24
- @import "./notification-banner.css";
25
- @import "./masthead.css";
26
- @import "./panel.css";
27
- @import "./phase-banner.css";
28
- @import "./summary-list.css";
29
- @import "./stack.css";
30
- @import "./tabs.css";
31
- @import "./misc.css";
32
- @import "./modal.css";
33
- @import "./svg-icons.css";
34
- @import "./pagination.css";
35
- @import "./loader.css";
36
- @import "./full-page-background.css";
37
- @import "./drawer.css";
38
- @import "./copy-to-clipboard.css";
39
- @import "./fillable.css";
40
- @import "./skiplink.css";
41
- @import "./timeline.css";
42
- @import "./task-list.css";
43
- @import "./stepnav.css";
44
- @import "./dev-theme.css";
45
- @import "./kitchensink.css";
46
- @import "./hidden.css";
47
- @import "./warning-text.css";
1
+ @import './accordion.css';
2
+ @import './admin-header.css';
3
+ @import './admin-layout.css';
4
+ @import './autocomplete.css';
5
+ @import './back-to-top.css';
6
+ @import './bottom-info.css';
7
+ @import './breadcrumbs.css';
8
+ @import './button.css';
9
+ @import './card.css';
10
+ @import './code.css';
11
+ @import './form.css';
12
+ @import './checkboxes.css';
13
+ @import './chip.css';
14
+ @import './copy-to-clipboard.css';
15
+ @import './details.css';
16
+ @import './dev-theme.css';
17
+ @import './drawer.css';
18
+ @import './dropdown.css';
19
+ @import './fillable.css';
20
+ @import './filter.css';
21
+ @import './footer.css';
22
+ @import './full-page-background.css';
23
+ @import './header.css';
24
+ @import './hidden.css';
25
+ @import './layout.css';
26
+ @import './loader.css';
27
+ @import './masthead.css';
28
+ @import './misc.css';
29
+ @import './modal.css';
30
+ @import './nav.css';
31
+ @import './pagination.css';
32
+ @import './panel.css';
33
+ @import './phase-banner.css';
34
+ @import './radios.css';
35
+ @import './skeleton.css';
36
+ @import './skiplink.css';
37
+ @import './stack.css';
38
+ @import './stepnav.css';
39
+ @import './summary-list.css';
40
+ @import './svg-icons.css';
41
+ @import './table.css';
42
+ @import './tabs.css';
43
+ @import './task-list.css';
44
+ @import './timeline.css';
45
+ @import './typography.css';
46
+ @import './blockquote.css';
47
+ @import './notification-banner.css';
48
+ @import './warning-text.css';
49
+ @import './kitchensink.css';
@@ -12,9 +12,9 @@
12
12
  }
13
13
  .ds-kitchensink-content {
14
14
  @apply max-w-2xl w-2xl;
15
- }
16
- .ds-kitchensink-content--wide {
17
- @apply max-w-4xl w-4xl;
15
+ &.ds-kitchensink-content--wide {
16
+ @apply max-w-4xl w-4xl;
17
+ }
18
18
  }
19
19
  .ds-kitchensink-content__info {
20
20
  @apply max-w-2xl;
@@ -22,43 +22,43 @@
22
22
  .ds-kitchensink-content__tags {
23
23
  @apply flex flex-nowrap gap-2 h-16;
24
24
  }
25
- .ds-kitchensink-card {
26
- border-style: dashed;
27
- container-type: inline-size;
28
-
29
- }
30
25
 
31
26
  /* COMPONENTS */
32
- .ds-kitchensink-card .ds-modal {
33
- position: inherit;
34
- }
35
- .ds-kitchensink-card .ds-modal__body {
36
- margin: 1rem;
37
- }
38
-
39
- .ds-kitchensink-card .ds-dropdown {
40
- margin-bottom: 20rem;
41
- }
42
- .ds-kitchensink-card .ds-dropdown.ds-dropdown--up {
43
- margin-top: 20rem;
44
- margin-bottom: 0rem;
45
- }
46
27
  .ds-kitchensink-card .ds-table__cell .ds-dropdown {
47
28
  margin: 0 !important;
48
29
  }
49
- .ds-kitchensink-card .ds-layout--full-height {
50
- min-height: inherit;
51
- }
52
- @container (min-width: 400px) {
53
- .ds-kitchensink-card .ds-drawer {
30
+ .ds-kitchensink-card {
31
+ border-style: dashed;
32
+ container-type: inline-size;
33
+ .ds-layout--full-height {
54
34
  min-height: inherit;
55
- width: 80%;
56
- box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
57
35
  }
58
- .ds-kitchensink-card .ds-drawer--closed {
59
- @apply hidden;
36
+ .ds-dropdown.ds-dropdown--up {
37
+ margin-top: 20rem;
38
+ margin-bottom: 0;
60
39
  }
61
- .ds-kitchensink-card .ds-close-btn {
62
- @apply block;
40
+ .ds-dropdown {
41
+ margin-bottom: 20rem;
42
+ }
43
+ .ds-modal__body {
44
+ margin: 1rem;
45
+ }
46
+ .ds-modal {
47
+ position: inherit;
48
+ }
49
+ }
50
+ @container (min-width: 400px) {
51
+ .ds-kitchensink-card {
52
+ .ds-close-btn {
53
+ @apply block;
54
+ }
55
+ .ds-drawer {
56
+ min-height: inherit;
57
+ width: 80%;
58
+ box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
59
+ &.ds-drawer--closed {
60
+ @apply hidden;
61
+ }
62
+ }
63
63
  }
64
64
  }
@@ -0,0 +1,36 @@
1
+ /* stylelint-disable digigov/nest-related-rules */
2
+ /* stylelint-disable digigov/enforce-class-selector-namespace */
3
+ @tailwind utilities;
4
+
5
+ @layer utilities {
6
+ .util-layout {
7
+ @apply flex flex-col flex-wrap;
8
+ }
9
+ .util-btn-group {
10
+ @apply flex flex-row flex-wrap gap-x-4 items-center print:items-baseline;
11
+ }
12
+ .util-top {
13
+ @apply mb-4;
14
+ }
15
+ }
16
+ .util-aside {
17
+ @apply flex flex-wrap flex-col md:top-8 print:order-1;
18
+ }
19
+ .util-bottom {
20
+ @apply flex flex-wrap;
21
+ }
22
+ .util-section-break {
23
+ @apply px-4 py-2 border-0 bg-transparent;
24
+ }
25
+ .util-section-break--visible {
26
+ @apply border-t border-base-300 border-solid;
27
+ }
28
+ .util-section-break--md {
29
+ @apply mb-3 md:mb-5;
30
+ }
31
+ .util-section-break--lg {
32
+ @apply mb-5 md:mb-7;
33
+ }
34
+ .util-section-break--xl {
35
+ @apply mb-7 md:mb-9;
36
+ }
@@ -1,77 +1,76 @@
1
+ @import './layout.common.css';
1
2
 
2
3
  .ds-layout {
3
- display: flex;
4
- flex-direction: column;
5
- flex-wrap: wrap;
6
- }
7
- .ds-layout--full-height {
8
- min-height: 100vh;
4
+ @apply util-layout;
5
+ &.ds-layout--full-height {
6
+ min-height: 100vh;
7
+ }
9
8
  }
10
9
  .ds-container {
11
10
  @apply max-w-5xl box-border mx-auto px-3 md:px-6 w-full;
12
11
  flex: 1 1 0%;
13
- }
14
- .ds-container--full-width {
15
- @apply max-w-full;
12
+ &.ds-container--full-width {
13
+ @apply max-w-full;
14
+ }
16
15
  }
17
16
  .ds-top {
18
- @apply mb-4;
17
+ @apply util-top;
19
18
  }
20
19
  .ds-aside {
21
- @apply flex flex-wrap flex-col md:top-8 h-fit print:order-1;
20
+ @apply util-aside h-fit;
21
+ &.ds-aside--sticky {
22
+ @apply md:sticky;
23
+ &.ds-aside--full-height {
24
+ max-height: calc(100vh - 2rem);
25
+ }
26
+ }
27
+ &.ds-aside--full-height {
28
+ @apply h-full;
29
+ }
22
30
  .ds-back-to-top {
23
31
  @apply flex flex-1 content-end flex-wrap;
24
- .ds-back-to-top-link {
25
- @apply md:mx-6 md:my-4;
26
- }
27
32
  &.ds-back-to-top--persistent {
28
33
  .ds-back-to-top-content {
29
34
  @apply sticky bottom-0 mb-4;
30
35
  }
31
36
  }
37
+ .ds-back-to-top-link {
38
+ @apply md:mx-6 md:my-4;
39
+ }
32
40
  }
33
41
  }
34
- .ds-aside--sticky {
35
- @apply md:sticky;
36
- &.ds-aside--full-height {
37
- max-height: calc(100vh - 2rem);
38
- }
39
- }
40
- .ds-aside--full-height {
41
- @apply h-full;
42
- }
43
42
  .ds-bottom {
44
- @apply w-full flex flex-wrap box-border;
43
+ @apply util-bottom w-full box-border;
45
44
  }
46
45
  .ds-btn-group {
47
- @apply flex flex-wrap items-center gap-4 mb-6 print:items-baseline;
46
+ @apply util-btn-group gap-y-4 mb-4 md:mb-8;
48
47
  }
49
48
  @media print {
50
49
  /* When ds-btn-group is empty at print, content at :after limits its height. */
51
- .ds-btn-group:after {
52
- content: "";
50
+ .ds-btn-group::after {
51
+ content: '';
53
52
  }
54
53
  }
55
54
  .ds-section-break {
56
- @apply m-auto px-4 py-2 border-0 w-full bg-transparent;
57
- }
58
- .ds-section-break--visible {
59
- @apply border-t border-base-300 border-solid;
60
- }
61
- .ds-section-break--md {
62
- @apply mb-3 md:mb-5;
63
- }
64
- .ds-section-break--lg {
65
- @apply mb-5 md:mb-7;
66
- }
67
- .ds-section-break--xl {
68
- @apply mb-7 md:mb-9;
55
+ @apply util-section-break m-auto w-full;
56
+ &.ds-section-break--visible {
57
+ @apply util-section-break--visible;
58
+ }
59
+ &.ds-section-break--md {
60
+ @apply util-section-break--md;
61
+ }
62
+ &.ds-section-break--lg {
63
+ @apply util-section-break--lg;
64
+ }
65
+ &.ds-section-break--xl {
66
+ @apply util-section-break--xl;
67
+ }
69
68
  }
70
69
 
71
70
  /* overrides */
72
71
 
73
72
  .ds-main {
74
- >.ds-back-to-top--persistent {
73
+ > .ds-back-to-top--persistent {
75
74
  @apply fixed bottom-0 right-0 bg-base-200 w-full z-5;
76
75
  .ds-back-to-top-link {
77
76
  @apply mx-6 my-4;
@@ -89,6 +88,6 @@
89
88
  .ds-btn-group {
90
89
  .ds-btn,
91
90
  .ds-link {
92
- @apply mb-0;
91
+ @apply mb-0 !important;
93
92
  }
94
93
  }
@@ -0,0 +1,39 @@
1
+ /* stylelint-disable digigov/nest-related-rules */
2
+ @import './layout.common.css';
3
+
4
+ .ds-btn-group {
5
+ @apply util-btn-group;
6
+ }
7
+ .ds-layout {
8
+ @apply util-layout;
9
+ }
10
+ .ds-layout--full-height {
11
+ min-height: 100%;
12
+ }
13
+ .ds-container {
14
+ @apply px-3 md:px-6 flex-1;
15
+ }
16
+ .ds-top {
17
+ @apply util-top;
18
+ }
19
+ .ds-aside {
20
+ @apply util-aside;
21
+ }
22
+ .ds-bottom {
23
+ @apply util-bottom flex-1;
24
+ }
25
+ .ds-section-break {
26
+ @apply util-section-break w-full;
27
+ }
28
+ .ds-section-break--visible {
29
+ @apply util-section-break--visible;
30
+ }
31
+ .ds-section-break--md {
32
+ @apply util-section-break--md;
33
+ }
34
+ .ds-section-break--lg {
35
+ @apply util-section-break--lg;
36
+ }
37
+ .ds-section-break--xl {
38
+ @apply util-section-break--xl;
39
+ }