@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
@@ -0,0 +1,26 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-details {
5
+ @apply mb-4 md:mb-8;
6
+ }
7
+ .util-details-text {
8
+ @apply md:text-lg;
9
+ font-size: var(--details-font-size);
10
+ line-height: var(--details-line-height);
11
+ }
12
+ .util-details__summary {
13
+ @apply mb-0;
14
+ }
15
+ .util-details__summary-text {
16
+ @apply underline;
17
+ }
18
+ .util-details__summary--lg-text {
19
+ @apply font-semibold;
20
+ font-size: var(--details__summary--lg-font-size);
21
+ line-height: var(--details__summary--lg-line-height);
22
+ }
23
+ .util-details__content {
24
+ @apply border-l-2 border-base-500 py-2 px-4 mt-4;
25
+ }
26
+ }
@@ -1,31 +1,30 @@
1
+ @import './details.common.css';
2
+
1
3
  .ds-details {
2
- @apply md:text-lg;
3
- @apply md:mb-8 mb-4;
4
- font-size: var(--details-font-size);
5
- line-height: var(--details-line-height);
4
+ @apply util-details util-details-text;
6
5
  }
7
6
  .ds-details__summary {
8
- @apply mb-0 underline cursor-pointer w-fit;
7
+ @apply util-details__summary util-details__summary-text cursor-pointer w-fit;
9
8
  &:hover {
10
9
  text-decoration-thickness: 2px;
11
10
  }
12
11
  &:focus {
13
12
  background-color: var(--color-focus);
14
- box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
15
- text-decoration:none;
13
+ box-shadow:
14
+ 0 -2px var(--color-focus),
15
+ 0 4px var(--color-base-content);
16
+ text-decoration: none;
16
17
  }
17
18
  &:focus-within {
18
19
  @apply outline-none;
19
20
  }
20
- }
21
- .ds-details__summary--lg {
22
- @apply font-semibold;
23
- font-size: var(--details__summary--lg-font-size);
24
- line-height: var(--details__summary--lg-line-height);
21
+ &.ds-details__summary--lg {
22
+ @apply util-details__summary--lg-text;
23
+ }
25
24
  }
26
25
  .ds-details__content {
27
- @apply border-l-2 border-base-500 py-2 px-4 mt-4;
28
- >*:last-child {
26
+ @apply util-details__content;
27
+ > *:last-child {
29
28
  @apply mb-0;
30
29
  }
31
- }
30
+ }
@@ -0,0 +1,26 @@
1
+ @import './details.common.css';
2
+
3
+ .ds-details {
4
+ @apply util-details;
5
+ }
6
+ .ds-details__text {
7
+ @apply util-details-text;
8
+ }
9
+ .ds-details__summary {
10
+ @apply util-details__summary;
11
+ }
12
+ .ds-details__summary--focus {
13
+ background-color: var(--color-focus);
14
+ box-shadow:
15
+ 0 -2px var(--color-focus),
16
+ 0 4px var(--color-base-content);
17
+ }
18
+ .ds-details__summary__text {
19
+ @apply util-details__summary-text;
20
+ }
21
+ .ds-details__summary--lg__text {
22
+ @apply util-details__summary--lg-text;
23
+ }
24
+ .ds-details__content {
25
+ @apply util-details__content;
26
+ }
@@ -1,10 +1,9 @@
1
1
  /* Experimental css file. */
2
2
 
3
3
  .dark {
4
- /*
4
+ /*
5
5
  Here we can experiment with dark theme.
6
6
  Storybook does not need restart when writing here.
7
7
  Final styling should then go to themes/ds-dark/overrides/index.css
8
8
  */
9
-
10
- }
9
+ }
@@ -3,40 +3,40 @@
3
3
  h-full max-h-screen min-h-screen overflow-y-scroll w-4/5 max-w-md flex flex-col
4
4
  fixed top-0 bottom-0 z-40;
5
5
  @apply shadow-thick !important;
6
- }
7
- .ds-drawer--relative-sm {
8
- @apply sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
9
- }
10
- .ds-drawer--relative-md {
11
- @apply md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
12
- }
13
- .ds-drawer--relative-lg {
14
- @apply lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
15
- }
16
- .ds-drawer--right {
17
- @apply right-0;
18
- }
19
- .ds-drawer--left {
20
- @apply left-0;
21
- }
22
- .ds-drawer--bg-secondary {
23
- @apply bg-base-200 border-0;
24
- @apply shadow-xl !important;
25
- }
26
- .ds-drawer--closed {
27
- @apply hidden;
28
6
  &.ds-drawer--relative-sm {
29
- @apply hidden sm:flex;
7
+ @apply sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
30
8
  }
31
9
  &.ds-drawer--relative-md {
32
- @apply hidden md:flex;
10
+ @apply md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
33
11
  }
34
12
  &.ds-drawer--relative-lg {
35
- @apply hidden lg:flex;
13
+ @apply lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
14
+ }
15
+ &.ds-drawer--right {
16
+ @apply right-0;
17
+ }
18
+ &.ds-drawer--left {
19
+ @apply left-0;
20
+ }
21
+ &.ds-drawer--bg-secondary {
22
+ @apply bg-base-200 border-0;
23
+ @apply shadow-xl !important;
24
+ }
25
+ &.ds-drawer--closed {
26
+ @apply hidden;
27
+ &.ds-drawer--relative-sm {
28
+ @apply hidden sm:flex;
29
+ }
30
+ &.ds-drawer--relative-md {
31
+ @apply hidden md:flex;
32
+ }
33
+ &.ds-drawer--relative-lg {
34
+ @apply hidden lg:flex;
35
+ }
36
36
  }
37
37
  }
38
38
  .ds-drawer__heading {
39
- @apply p-0 mb-4 flex justify-between align-baseline;
39
+ @apply p-0 mb-2 md:mb-4 flex justify-between align-baseline;
40
40
  .ds--drawer__close-icon {
41
41
  @apply m-0;
42
42
  }
@@ -45,6 +45,27 @@
45
45
  /* overrides */
46
46
 
47
47
  .ds-drawer {
48
+ &.ds-drawer--relative-sm {
49
+ .ds-drawer__heading {
50
+ > .ds-close-btn {
51
+ @apply sm:hidden;
52
+ }
53
+ }
54
+ }
55
+ &.ds-drawer--relative-md {
56
+ .ds-drawer__heading {
57
+ > .ds-close-btn {
58
+ @apply md:hidden;
59
+ }
60
+ }
61
+ }
62
+ &.ds-drawer--relative-lg {
63
+ .ds-drawer__heading {
64
+ > .ds-close-btn {
65
+ @apply lg:hidden;
66
+ }
67
+ }
68
+ }
48
69
  > .ds-container {
49
70
  @apply p-0;
50
71
  }
@@ -58,25 +79,3 @@
58
79
  @apply m-0;
59
80
  }
60
81
  }
61
- .ds-drawer--relative-sm {
62
- .ds-drawer__heading {
63
- >.ds-close-btn {
64
- @apply sm:hidden;
65
- }
66
- }
67
- }
68
- .ds-drawer--relative-md {
69
- .ds-drawer__heading {
70
- >.ds-close-btn {
71
- @apply md:hidden;
72
- }
73
- }
74
- }
75
- .ds-drawer--relative-lg {
76
- .ds-drawer__heading {
77
- >.ds-close-btn {
78
- @apply lg:hidden;
79
- }
80
- }
81
- }
82
-
@@ -0,0 +1,23 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-dropdown {
5
+ @apply relative;
6
+ }
7
+ .util-dropdown--right {
8
+ @apply right-0 mr-0 ml-4;
9
+ }
10
+ .util-dropdown__content {
11
+ @apply border-base-400 bg-base-100
12
+ max-w-xs min-w-full absolute transition z-3 mr-4 mt-0 md:-mt-4;
13
+ box-shadow:
14
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
15
+ 0 -2px 0 var(--color-base-500);
16
+ }
17
+ .util-dropdown__content--full-width {
18
+ @apply min-w-full;
19
+ }
20
+ .util-dropdown__content--scrollable {
21
+ @apply max-h-64 md:max-h-96;
22
+ }
23
+ }
@@ -1,5 +1,7 @@
1
+ @import './dropdown.common.css';
2
+
1
3
  .ds-dropdown {
2
- @apply w-fit relative;
4
+ @apply util-dropdown w-fit;
3
5
  &.ds-dropdown--up {
4
6
  .ds-dropdown__content {
5
7
  @apply mb-4 border border-b-0 bottom-full;
@@ -13,7 +15,7 @@
13
15
  }
14
16
  &.ds-dropdown--right {
15
17
  .ds-dropdown__content {
16
- @apply right-0 mr-0 ml-4;
18
+ @apply util-dropdown--right;
17
19
  }
18
20
  }
19
21
  &.ds-dropdown--disabled {
@@ -30,33 +32,35 @@
30
32
  @apply p-2;
31
33
  }
32
34
  }
33
- .ds-dropdown__button {
34
- @apply w-fit print:text-base-content;
35
- &::marker {
36
- font-size: 0px;
37
- }
35
+ }
36
+ .ds-dropdown__button {
37
+ @apply w-fit print:text-base-content;
38
+ &::marker {
39
+ font-size: 0;
38
40
  }
39
- .ds-dropdown__button.ds-link + .ds-dropdown__content {
40
- @apply mt-4 print:text-base-content;
41
+ &::-webkit-details-marker {
42
+ display: none;
41
43
  }
42
- .ds-btn-group .ds-btn + .ds-dropdown__content {
43
- @apply mt-4;
44
+ }
45
+ .ds-dropdown__button.ds-link + .ds-dropdown__content {
46
+ @apply mt-4 print:text-base-content;
47
+ }
48
+ .ds-btn-group .ds-btn + .ds-dropdown__content {
49
+ @apply mt-4;
50
+ }
51
+ .ds-dropdown__content {
52
+ @apply util-dropdown__content border p-4 border-t-0 w-max;
53
+ -webkit-box-box-shadow:
54
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
55
+ 0 -2px 0 var(--color-base-500);
56
+ &.ds-dropdown__content--full-width {
57
+ @apply util-dropdown__content--full-width;
44
58
  }
45
- .ds-dropdown__content {
46
- @apply border border-base-400 p-4 bg-base-100 border-t-0
47
- max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
48
- -webkit-box-box-shadow:
49
- 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
50
- 0 -2px 0 var(--color-base-500);
51
- box-shadow:
52
- 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
53
- 0 -2px 0 var(--color-base-500);
54
- *:last-child {
55
- @apply mb-0;
56
- }
59
+ &.ds-dropdown__content--scrollable {
60
+ @apply overflow-y-auto util-dropdown__content--scrollable;
57
61
  }
58
- .ds-dropdown__content--full-width {
59
- @apply min-w-full;
62
+ *:last-child {
63
+ @apply mb-0;
60
64
  }
61
65
  }
62
66
 
@@ -64,11 +68,6 @@
64
68
 
65
69
  .ds-dropdown {
66
70
  &[open] {
67
- .ds-dropdown__button--chevron {
68
- .ds-svg-icon--chevron {
69
- @apply transform -rotate-180;
70
- }
71
- }
72
71
  .ds-dropdown__button {
73
72
  &.ds-btn-primary {
74
73
  background-color: var(--btn-primary-background-color-hover);
@@ -82,21 +81,36 @@
82
81
  background-color: var(--btn-warning-background-color-hover);
83
82
  color: var(--btn-warning-color-hover);
84
83
  }
84
+ &.ds-dropdown__button--chevron {
85
+ .ds-svg-icon--chevron {
86
+ @apply transform -rotate-180;
87
+ }
88
+ }
85
89
  }
86
90
  }
87
- .ds-dropdown__button--chevron {
88
- .ds-svg-icon--chevron {
89
- @apply transition duration-300;
91
+ &.ds-dropdown--dense,
92
+ .ds-dense & {
93
+ .ds-dropdown__content {
94
+ .ds-section-break {
95
+ @apply -mx-2 w-auto;
96
+ }
97
+ > .ds-nav__list {
98
+ @apply w-auto -mx-2 flex-col;
99
+ }
90
100
  }
91
101
  }
92
102
  .ds-dropdown__button {
93
- .ds-svg-icon {
94
- @apply w-5 h-6 md:h-8;
95
- @apply print:hidden;
96
- }
97
103
  &.ds-link {
98
104
  @apply inline-flex gap-1 items-center;
99
105
  }
106
+ &.ds-dropdown__button--chevron {
107
+ .ds-svg-icon--chevron {
108
+ @apply transition duration-300;
109
+ }
110
+ }
111
+ .ds-svg-icon {
112
+ @apply w-5 h-6 md:h-8 min-w-4 print:hidden;
113
+ }
100
114
  }
101
115
  .ds-dropdown__content {
102
116
  .ds-field {
@@ -107,6 +121,12 @@
107
121
  }
108
122
  > .ds-nav__list {
109
123
  @apply w-auto -mx-4 flex-col;
124
+ &:nth-child(1) {
125
+ @apply -mt-4;
126
+ }
127
+ &:last-child {
128
+ @apply -mb-4 !important;
129
+ }
110
130
  .ds-nav__list-item {
111
131
  @apply border-b border-base-300 py-2 px-4;
112
132
  &:last-child {
@@ -118,15 +138,4 @@
118
138
  }
119
139
  }
120
140
  }
121
- &.ds-dropdown--dense,
122
- .ds-dense & {
123
- .ds-dropdown__content {
124
- .ds-section-break {
125
- @apply -mx-2 w-auto;
126
- }
127
- > .ds-nav__list {
128
- @apply w-auto -mx-2 flex-col;
129
- }
130
- }
131
- }
132
141
  }
@@ -0,0 +1,28 @@
1
+ @import './dropdown.common.css';
2
+
3
+ .ds-dropdown {
4
+ @apply util-dropdown;
5
+ z-index: 2;
6
+ }
7
+ .ds-dropdown--right {
8
+ @apply util-dropdown--right;
9
+ }
10
+
11
+ .ds-dropdown__button {
12
+ @apply gap-1 items-center p-2;
13
+ flex-direction: row;
14
+ flex-wrap: wrap;
15
+ }
16
+ .ds-dropdown__button__text {
17
+ color: var(--color-base-100);
18
+ }
19
+
20
+ .ds-dropdown__content {
21
+ @apply util-dropdown__content p-2 border-2;
22
+ }
23
+ .ds-dropdown__content--full-width {
24
+ @apply util-dropdown__content--full-width;
25
+ }
26
+ .ds-dropdown__content--scrollable {
27
+ @apply util-dropdown__content--scrollable;
28
+ }
@@ -1,7 +1,7 @@
1
1
  .ds-floating-btn {
2
2
  @apply absolute bottom-4;
3
3
  @apply p-4 rounded-full border-0 !important;
4
- box-shadow: 0px 2px 8px rgba(var(--color-base-900-rgb), 0.3);
4
+ box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3);
5
5
  &.ds-floating-btn--right {
6
6
  @apply right-4;
7
7
  }
@@ -18,14 +18,14 @@
18
18
  &:hover {
19
19
  @apply border-base-content;
20
20
  }
21
- }
22
- .ds-option-btn--selected {
23
- @apply border-success border-4 text-success p-4 !important;
24
- .ds-option-btn__steps {
25
- @apply opacity-100;
26
- }
27
- .ds-svg-icon {
28
- fill: var(--color-success) !important;
21
+ &.ds-option-btn--selected {
22
+ @apply border-success border-4 text-success p-4 !important;
23
+ .ds-option-btn__steps {
24
+ @apply opacity-100;
25
+ }
26
+ .ds-svg-icon {
27
+ fill: var(--color-success) !important;
28
+ }
29
29
  }
30
30
  }
31
31
  .ds-option-btn__steps {
@@ -33,7 +33,7 @@
33
33
  }
34
34
  .ds-option-btn__step {
35
35
  @apply bg-base-300 w-full;
36
+ &.ds-option-btn__step--active {
37
+ @apply bg-success;
38
+ }
36
39
  }
37
- .ds-option-btn__step--active {
38
- @apply bg-success;
39
- }
@@ -1,10 +1,10 @@
1
1
  .ds-fillable-text {
2
- @apply lg:mb-8 mb-4 md:mb-8 p-4 border-l-6 border-base-300 bg-base-200
2
+ @apply mb-4 md:mb-8 p-4 border-l-6 border-base-300 bg-base-200
3
3
  text-base-content md:text-lg leading-relaxed text-base;
4
4
  }
5
5
  .ds-labeled-text {
6
- @apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
6
+ @apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
7
+ &.ds-labeled-text--active {
8
+ @apply bg-focus;
9
+ }
7
10
  }
8
- .ds-labeled-text--active {
9
- @apply bg-focus;
10
- }
@@ -1,8 +1,6 @@
1
1
  .ds-filter {
2
2
  @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
3
3
  box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
4
- }
5
- .ds-filter {
6
4
  &.ds-filter--position-relative-always {
7
5
  @apply block relative overflow-visible w-full shadow-none z-2 !important;
8
6
  &.ds-filter--closed {
@@ -27,20 +25,20 @@
27
25
  @apply lg:block;
28
26
  }
29
27
  }
30
- }
31
- .ds-filter--border {
32
- @apply border border-base-300 p-4;
33
- }
34
- .ds-filter--closed {
35
- @apply hidden;
28
+ &.ds-filter--border {
29
+ @apply border border-base-300 p-4;
30
+ }
31
+ &.ds-filter--closed {
32
+ @apply hidden;
33
+ }
36
34
  }
37
35
  .ds-filter__content {
38
36
  @apply flex flex-col gap-8 p-0;
39
37
  }
40
38
  .ds-filter__options--horizontal {
41
39
  @apply flex gap-4 flex-col;
42
- align-items: stretch;
43
40
  @apply md:flex-row md:flex-wrap;
41
+ align-items: stretch;
44
42
  }
45
43
  @media (min-width: 768px) {
46
44
  .ds-filter__options--horizontal {
@@ -53,26 +51,23 @@
53
51
  @apply p-0;
54
52
  }
55
53
  .ds-filter__heading {
56
- @apply mb-4;
54
+ @apply mb-2 md:mb-4;
57
55
  }
58
56
  .ds-filter__selected {
59
57
  @apply bg-base-200 p-4 m-0 rounded;
60
58
  }
61
59
  .ds-filter__selected-heading {
62
- @apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2;
60
+ @apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-8 justify-between gap-x-2 gap-y-4;
63
61
  }
64
62
  .ds-input__search-btn {
65
- @apply shadow-none !important;
66
- @apply border-b-2 border-base-content rounded-none
67
- px-4 py-2 w-min m-0 ml-3
68
- flex gap-2
69
- hover:bg-success-hover active:bg-success-hover hover:no-underline;
63
+ @apply shadow-none mb-0 !important;
64
+ @apply px-4 py-2 w-min m-0 ml-3 flex gap-2;
70
65
  }
71
66
  .ds-search {
72
- @apply flex w-full max-w-3xl;
67
+ @apply flex w-full max-w-3xl mb-4 md:mb-8;
73
68
  }
74
69
  .ds-results__action-bar {
75
- @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
70
+ @apply py-2 mb-4 md:mb-8 flex flex-wrap justify-start gap-4 items-baseline;
76
71
  > * {
77
72
  @apply mb-0;
78
73
  }
@@ -81,7 +76,7 @@
81
76
  @apply flex flex-wrap justify-between items-baseline gap-x-2;
82
77
  }
83
78
  .ds-results__actions {
84
- @apply flex flex-wrap gap-4 justify-start min-w-min mb-4;
79
+ @apply flex flex-wrap gap-4 justify-start min-w-min mb-2 md:mb-4;
85
80
  }
86
81
  .ds-link-filters {
87
82
  @apply block md:hidden;
@@ -127,8 +122,8 @@
127
122
  }
128
123
  .ds-input__search-btn {
129
124
  .ds-svg-icon--search {
130
- fill: var(--color-white);
131
125
  @apply w-7 h-7;
126
+ fill: var(--color-white);
132
127
  }
133
128
  }
134
129
  .ds-results__action-bar {