@digigov/css 1.1.1 → 1.2.0-mobile

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 (124) hide show
  1. package/defaultTheme/accordion.json +8 -0
  2. package/defaultTheme/brandConfig.json +14 -2
  3. package/defaultTheme/button.json +16 -3
  4. package/defaultTheme/card.json +16 -5
  5. package/defaultTheme/form.json +15 -0
  6. package/defaultTheme/globals.json +11 -1
  7. package/defaultTheme/index.js +1 -1
  8. package/defaultTheme/layout.json +55 -0
  9. package/defaultTheme/misc.json +20 -0
  10. package/defaultTheme/panel.json +5 -0
  11. package/defaultTheme/typography.json +26 -6
  12. package/dist/base/index.css +3 -3
  13. package/dist/base.js +1 -1
  14. package/dist/components.js +1 -1
  15. package/dist/digigov.css +5 -5
  16. package/dist/utilities/index.css +1 -1
  17. package/dist/utilities.js +1 -1
  18. package/package.json +19 -14
  19. package/postcss.config.js +1 -0
  20. package/src/base/base.css +1 -1
  21. package/src/base/index.css +5 -5
  22. package/src/components/accordion.css +76 -73
  23. package/src/components/admin-header.css +7 -24
  24. package/src/components/admin-layout.css +13 -22
  25. package/src/components/autocomplete.css +106 -64
  26. package/src/components/back-to-top.css +7 -8
  27. package/src/components/blockquote.common.css +14 -0
  28. package/src/components/blockquote.css +9 -0
  29. package/src/components/blockquote.native.css +11 -0
  30. package/src/components/bottom-info.css +3 -2
  31. package/src/components/breadcrumbs.css +21 -12
  32. package/src/components/button.common.css +64 -0
  33. package/src/components/button.css +81 -94
  34. package/src/components/button.native.css +42 -0
  35. package/src/components/card.common.css +33 -0
  36. package/src/components/card.css +77 -64
  37. package/src/components/card.native.css +29 -0
  38. package/src/components/checkboxes.css +34 -37
  39. package/src/components/chip.css +36 -37
  40. package/src/components/components.css +2 -2
  41. package/src/components/copy-to-clipboard.css +39 -38
  42. package/src/components/details.common.css +26 -0
  43. package/src/components/details.css +17 -18
  44. package/src/components/details.native.css +26 -0
  45. package/src/components/dev-theme.css +3 -4
  46. package/src/components/drawer.css +58 -59
  47. package/src/components/dropdown.common.css +58 -0
  48. package/src/components/dropdown.css +81 -68
  49. package/src/components/dropdown.native.css +58 -0
  50. package/src/components/experimental.css +18 -18
  51. package/src/components/fillable.css +6 -6
  52. package/src/components/filter.css +58 -63
  53. package/src/components/footer.css +53 -39
  54. package/src/components/form.common.css +49 -0
  55. package/src/components/form.css +125 -113
  56. package/src/components/form.native.css +58 -0
  57. package/src/components/full-page-background.css +2 -2
  58. package/src/components/header.common.css +36 -0
  59. package/src/components/header.css +78 -77
  60. package/src/components/header.native.css +34 -0
  61. package/src/components/hidden.css +23 -23
  62. package/src/components/index.css +48 -47
  63. package/src/components/kitchensink.css +41 -41
  64. package/src/components/layout.common.css +8 -0
  65. package/src/components/layout.css +56 -56
  66. package/src/components/layout.native.css +5 -0
  67. package/src/components/loader.css +31 -31
  68. package/src/components/masthead.css +60 -59
  69. package/src/components/misc.css +43 -21
  70. package/src/components/modal.css +28 -21
  71. package/src/components/nav.common.css +25 -0
  72. package/src/components/nav.css +96 -89
  73. package/src/components/nav.native.css +38 -0
  74. package/src/components/notification-banner.common.css +46 -0
  75. package/src/components/notification-banner.css +32 -28
  76. package/src/components/notification-banner.native.css +42 -0
  77. package/src/components/pagination.css +40 -41
  78. package/src/components/panel.common.css +30 -0
  79. package/src/components/panel.css +12 -20
  80. package/src/components/panel.native.css +20 -0
  81. package/src/components/phase-banner.common.css +23 -0
  82. package/src/components/phase-banner.css +15 -14
  83. package/src/components/phase-banner.native.css +31 -0
  84. package/src/components/radios.css +33 -30
  85. package/src/components/skeleton.css +85 -0
  86. package/src/components/skiplink.css +3 -3
  87. package/src/components/stack.css +64 -64
  88. package/src/components/stepnav.css +68 -64
  89. package/src/components/summary-list.common.css +25 -0
  90. package/src/components/summary-list.css +59 -47
  91. package/src/components/summary-list.native.css +27 -0
  92. package/src/components/svg-icons.common.css +56 -0
  93. package/src/components/svg-icons.css +79 -75
  94. package/src/components/svg-icons.native.css +55 -0
  95. package/src/components/table.css +189 -208
  96. package/src/components/tabs.css +52 -68
  97. package/src/components/task-list.css +31 -31
  98. package/src/components/test.css +7 -0
  99. package/src/components/timeline.css +19 -18
  100. package/src/components/typography.common.css +137 -0
  101. package/src/components/typography.css +159 -218
  102. package/src/components/typography.native.css +93 -0
  103. package/src/components/warning-text.common.css +23 -0
  104. package/src/components/warning-text.css +11 -11
  105. package/src/components/warning-text.native.css +22 -0
  106. package/src/index.native.css +17 -0
  107. package/src/pages/headings/service-heading.js +9 -9
  108. package/src/pages/index.js +201 -201
  109. package/src/utilities/grid.css +221 -0
  110. package/src/utilities/grid.native.css +274 -0
  111. package/src/utilities/index.css +3 -585
  112. package/src/utilities/index.native.css +2 -0
  113. package/src/utilities/print.css +11 -0
  114. package/src/utilities/spacing.css +2133 -0
  115. package/src/utilities/utilities.css +1647 -531
  116. package/tailwind.config.js +2 -2
  117. package/themes.plugin.js +1 -1
  118. package/defaultTheme/footer.json +0 -8
  119. package/src/pages/admin-filtering-data.js +0 -160
  120. package/src/pages/admin.js +0 -61
  121. package/src/pages/dropdown.js +0 -249
  122. package/src/pages/form.js +0 -400
  123. package/src/pages/pagination.js +0 -124
  124. package/src/pages/table.js +0 -308
@@ -0,0 +1,42 @@
1
+ /* stylelint-disable declaration-block-no-redundant-longhand-properties */
2
+ /* stylelint-disable digigov/nest-related-rules */
3
+ @import './button.common.css';
4
+
5
+ .ds-btn {
6
+ @apply util-btn min-h-4;
7
+ border-bottom-width: 2px;
8
+ border-bottom-color: var(--color-base-content);
9
+ }
10
+ .ds-btn__text {
11
+ @apply util-btn-text min-h-4;
12
+ }
13
+ .ds-btn--dense {
14
+ @apply min-h-6;
15
+ }
16
+ .ds-btn--dense__text {
17
+ @apply util-btn--dense-text min-h-4;
18
+ }
19
+ .ds-btn--disabled {
20
+ @apply util-btn--disabled;
21
+ }
22
+ .ds-btn--disabled__text {
23
+ @apply util-btn--disabled-text;
24
+ }
25
+ .ds-btn-primary {
26
+ @apply util-btn-primary;
27
+ }
28
+ .ds-btn-primary__text {
29
+ @apply util-btn-primary-text;
30
+ }
31
+ .ds-btn-secondary {
32
+ @apply util-btn-secondary;
33
+ }
34
+ .ds-btn-secondary__text {
35
+ @apply util-btn-secondary-text;
36
+ }
37
+ .ds-btn-warning {
38
+ @apply util-btn-warning;
39
+ }
40
+ .ds-btn-warning__text {
41
+ @apply util-btn-warning-text;
42
+ }
@@ -0,0 +1,33 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-card {
5
+ @apply mb-7 text-base-content max-w-full;
6
+ border-radius: var(--card-border-radius);
7
+ }
8
+ .util-card--border {
9
+ @apply border-2 border-base-content p-6;
10
+ }
11
+ .util-card--border-top {
12
+ @apply border-t border-base-300 pt-4;
13
+ }
14
+ .util-card--border-light {
15
+ @apply border-base-300;
16
+ }
17
+ .util-card--border-dark {
18
+ @apply border-base-content;
19
+ }
20
+ .util-card--divider {
21
+ --card-border-radius: 0;
22
+ @apply border-b border-base-300 pb-4 mb-4;
23
+ }
24
+ .util-card__heading-text {
25
+ @apply md:text-2xl text-xl font-bold;
26
+ }
27
+ .util-card__body {
28
+ @apply flex flex-col gap-3 md:gap-4;
29
+ }
30
+ .util-card__action {
31
+ @apply flex flex-wrap items-center gap-y-4 mt-auto;
32
+ }
33
+ }
@@ -1,99 +1,112 @@
1
- .govgr-card {
2
- @apply mb-7 text-base-content;
3
- &.govgr-card--dense, .gov-dense & {
1
+ @import './card.common.css';
2
+
3
+ .ds-card {
4
+ @apply util-card;
5
+ &.ds-card--dense,
6
+ .ds-dense & {
4
7
  @apply mb-5;
5
- .govgr-card__body {
8
+ .ds-card__body {
6
9
  @apply gap-2 md:gap-3;
7
10
  }
8
11
  }
9
- }
10
- .govgr-card--border {
11
- @apply border-2 border-base-content p-6;
12
- &.govgr-card--border-light {
13
- @apply border;
14
- }
15
- &.govgr-card--dense, .govgr-dense & {
16
- @apply p-4 pt-3;
12
+ &.ds-card--border {
13
+ @apply util-card--border;
14
+ &.ds-card--border-light {
15
+ @apply border;
16
+ }
17
+ &.ds-card--dense,
18
+ .ds-dense & {
19
+ @apply p-4 pt-3;
20
+ }
17
21
  }
18
- }
19
- .govgr-card--border-top {
20
- @apply border-t border-base-300 pt-4;
21
- &.govgr-card--border-dark {
22
- @apply border-t-3;
22
+ &.ds-card--border-top {
23
+ @apply util-card--border-top;
24
+ &.ds-card--border-dark {
25
+ @apply border-t-3;
26
+ }
27
+ &.ds-card--dense,
28
+ .ds-dense & {
29
+ @apply p-3;
30
+ }
23
31
  }
24
- &.govgr-card--dense, .govgr-dense & {
25
- @apply p-3;
32
+ &.ds-card--divider {
33
+ @apply util-card--divider;
26
34
  }
27
- }
28
- .govgr-card--divider {
29
- @apply border-b border-base-300 pb-4 mb-4;
30
- }
31
- .govgr-card--cta {
32
- .govgr-card__body {
33
- @apply pr-8 relative;
34
- &:after {
35
- content: "";
36
- transition: all 0.1s ease;
37
- @apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2;
38
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
39
- }
40
- &:hover {
41
- &:after {
42
- @apply right-1;
35
+ &.ds-card--cta {
36
+ .ds-card__body {
37
+ @apply pr-8 relative;
38
+ &::after {
39
+ @apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2;
40
+ content: '';
41
+ transition: all 0.1s ease;
42
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
43
+ }
44
+ &:hover {
45
+ &::after {
46
+ @apply right-1;
47
+ }
43
48
  }
44
49
  }
45
- }
46
50
 
47
- .govgr-card__heading {
48
- @apply md:text-xl text-lg tracking-wide;
49
- @apply leading-8 !important;
51
+ .ds-card__heading {
52
+ @apply md:text-xl text-lg tracking-wide;
53
+ @apply leading-8 !important;
54
+ }
55
+ }
56
+ &.ds-card--border-light {
57
+ @apply util-card--border-light;
58
+ }
59
+ &.ds-card--border-dark {
60
+ @apply util-card--border-dark;
61
+ }
62
+ &.ds-card--full-height {
63
+ @apply h-full;
50
64
  }
51
65
  }
52
- .govgr-card--border-light {
53
- @apply border-base-300;
54
- }
55
- .govgr-card--border-dark {
56
- @apply border-base-content;
66
+ .ds-card__body {
67
+ @apply util-card__body h-full;
57
68
  }
58
- .govgr-card__body {
59
- @apply flex flex-col gap-3 md:gap-4 h-full;
69
+ .ds-card__image {
70
+ @apply w-full h-40
71
+ /* @apply h-40 -mx-6 */
72
+ bg-base-200 bg-cover bg-top
73
+ border border-base-300;
60
74
  }
61
- .govgr-card__heading {
75
+ .ds-card__heading {
76
+ @apply util-card__heading-text;
62
77
  word-break: break-word;
63
- @apply md:text-2xl text-xl font-bold;
64
78
  }
65
- .govgr-card__content {
79
+ .ds-card__content {
66
80
  word-break: break-word;
67
- @apply text-base;
68
- font-size: var(--card__text-font-size);
69
- line-height: var(--card__text-line-height);
81
+ font-size: var(--card__content-font-size);
82
+ line-height: var(--card__content-line-height);
70
83
  }
71
- .govgr-card__action {
72
- @apply flex flex-wrap items-center gap-y-4 mt-auto;
84
+ .ds-card__action {
85
+ @apply util-card__action;
73
86
  }
74
87
  @media print {
75
- /* When govgr-card__action is empty at print, content at :after limits its height. */
76
- .govgr-card__action:after {
77
- content: "";
88
+ /* When ds-card__action is empty at print, content at :after limits its height. */
89
+ .ds-card__action::after {
90
+ content: '';
78
91
  }
79
92
  }
80
93
 
81
94
  /* overrides */
82
95
 
83
- .govgr-card--cta {
84
- .govgr-card__heading {
85
- .govgr-link {
96
+ .ds-card--cta {
97
+ .ds-card__heading {
98
+ .ds-link {
86
99
  /* Clickable area will be at all the card with 'after' */
87
100
  &::after {
88
- content: "";
89
101
  @apply block absolute top-0 bottom-0 right-0 left-0;
102
+ content: '';
90
103
  }
91
104
  }
92
105
  }
93
106
  }
94
- .govgr-card__action {
95
- .govgr-link,
96
- .govgr-btn {
107
+ .ds-card__action {
108
+ .ds-link,
109
+ .ds-btn {
97
110
  @apply mb-0;
98
111
  }
99
112
  }
@@ -0,0 +1,29 @@
1
+ @import './card.common.css';
2
+
3
+ .ds-card {
4
+ @apply util-card;
5
+ }
6
+ .ds-card--border {
7
+ @apply util-card--border;
8
+ }
9
+ .ds-card__body {
10
+ @apply util-card__body;
11
+ }
12
+ .ds-card__action {
13
+ @apply util-card__action;
14
+ }
15
+ .ds-card--border-top {
16
+ @apply util-card--border-top;
17
+ }
18
+ .ds-card--border-light {
19
+ @apply util-card--border-light;
20
+ }
21
+ .ds-card--border-dark {
22
+ @apply util-card--border-dark;
23
+ }
24
+ .ds-card--divider {
25
+ @apply util-card--divider;
26
+ }
27
+ .ds-card__heading__text {
28
+ @apply util-card__heading-text;
29
+ }
@@ -1,71 +1,68 @@
1
- .govgr-checkboxes {
2
- &.govgr-checkboxes--dense,
3
- .govgr-dense & {
4
- .govgr-checkboxes__item {
1
+ .ds-checkboxes {
2
+ &.ds-checkboxes--dense,
3
+ .ds-dense & {
4
+ .ds-checkboxes__item {
5
5
  @apply mb-2 pl-10 min-h-8;
6
6
  &:last-child {
7
7
  @apply mb-0;
8
8
  }
9
9
  }
10
- .govgr-checkboxes__input {
10
+ .ds-checkboxes__input {
11
11
  @apply w-8 h-8 left-0.5 md:top-0.5;
12
- &:before {
12
+ &::before {
13
13
  @apply w-8 h-8;
14
14
  }
15
- &:after {
15
+ &::after {
16
+ @apply border-b-4 border-l-4;
16
17
  top: 10px;
17
18
  left: 7px;
18
19
  width: 19px;
19
20
  height: 10px;
20
- @apply border-b-4 border-l-4;
21
21
  }
22
22
  &:focus {
23
- &:before {
23
+ &::before {
24
24
  @apply border-3;
25
25
  }
26
26
  }
27
27
  }
28
- .govgr-field {
28
+ .ds-field {
29
29
  @apply mb-4 md:mb-6;
30
30
  }
31
31
  }
32
+ &.ds-checkboxes--horizontal {
33
+ @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
34
+ }
32
35
  }
33
- .govgr-checkboxes--horizontal {
34
- @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
35
- }
36
- .govgr-checkboxes__item {
36
+ .ds-checkboxes__item {
37
37
  @apply block relative mb-4 pl-12 min-h-10;
38
38
  &:last-child {
39
39
  @apply mb-0;
40
40
  }
41
41
  }
42
- .govgr-checkboxes__label {
42
+ .ds-checkboxes__label {
43
43
  @apply inline-block py-1 px-2 cursor-pointer;
44
44
  }
45
- .govgr-checkboxes__input {
45
+ .ds-checkboxes__input {
46
46
  @apply absolute z-1 left-0.5 -top-0.5 m-0 opacity-100
47
47
  w-10 h-10 cursor-pointer;
48
- &:before {
49
- content: "";
50
- -webkit-box-sizing: border-box;
51
- box-sizing: border-box;
48
+ &::before {
52
49
  @apply absolute top-0 left-0 w-10 h-10
53
50
  border-solid border-base-content border-2 bg-base-100 opacity-100;
51
+ content: '';
52
+ box-sizing: border-box;
54
53
  }
55
- &:after {
56
- content: "";
54
+ &::after {
57
55
  @apply absolute bg-transparent opacity-0 box-border
58
56
  border-accent border-b-5 border-l-5 border-t-0 border-r-0;
57
+ content: '';
59
58
  top: 11px;
60
59
  left: 9px;
61
60
  width: 23px;
62
61
  height: 12px;
63
- -webkit-transform: rotate(-45deg);
64
- -ms-transform: rotate(-45deg);
65
62
  transform: rotate(-45deg);
66
63
  }
67
64
  &:checked {
68
- &:after {
65
+ &::after {
69
66
  @apply opacity-100;
70
67
  }
71
68
  }
@@ -73,27 +70,27 @@
73
70
  outline: 3px solid transparent;
74
71
  outline-offset: 1px;
75
72
  box-shadow: 0 0 0 4px var(--color-focus);
76
- &:before {
73
+ &::before {
77
74
  @apply border-4;
78
75
  }
79
76
  }
80
77
  }
81
- .govgr-checkboxes__conditional {
78
+ .ds-checkboxes__conditional {
82
79
  @apply border-l-4 border-base-500 ml-4 pl-6;
83
80
  }
84
81
 
85
82
  /* overrides */
86
-
87
- .govgr-checkboxes--horizontal {
88
- .govgr-choice-divider-text {
89
- @apply min-w-max mx-2;
90
- }
91
- }
92
- .govgr-checkboxes {
93
- &.govgr-checkboxes--dense,
94
- .govgr-dense & {
95
- .govgr-field {
83
+ .ds-checkboxes {
84
+ &.ds-checkboxes--dense,
85
+ .ds-dense & {
86
+ .ds-field {
96
87
  @apply mb-4 md:mb-6;
97
88
  }
98
89
  }
90
+
91
+ &.ds-checkboxes--horizontal {
92
+ .ds-choice-divider-text {
93
+ @apply min-w-max mx-2;
94
+ }
95
+ }
99
96
  }
@@ -1,68 +1,67 @@
1
- .govgr-chips {
2
- @apply flex flex-wrap list-none gap-2;
3
- .govgr-chip:last-child .govgr-chip__content {
1
+ .ds-chips {
2
+ @apply flex flex-wrap list-none gap-2 items-center;
3
+ &.ds-chips--horizontal {
4
+ @apply md:flex md:flex-row md:flex-wrap;
5
+ }
6
+ .ds-chip:last-child .ds-chip__content {
4
7
  @apply mr-0;
5
8
  }
6
9
  }
7
- .govgr-chips--horizontal {
8
- @apply md:flex md:flex-row md:flex-wrap;
9
- }
10
- .govgr-chip {
10
+ .ds-chip {
11
11
  @apply list-none;
12
- .govgr-chip__content {
12
+ &:last-child {
13
+ .ds-chip__content {
14
+ @apply mr-0;
15
+ }
16
+ }
17
+ &.ds-chip--deletable {
18
+ .ds-chip__content {
19
+ &:hover {
20
+ @apply shadow-lg transition;
21
+ }
22
+ }
23
+ }
24
+ .ds-chip__content {
13
25
  @apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
14
26
  inline-flex items-center px-2 py-1 rounded shadow;
15
- &[role="button"] {
27
+ &[role='button'] {
16
28
  &:hover {
17
29
  @apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
18
30
  }
19
31
  &:focus {
20
32
  outline: 3px solid var(--color-focus);
21
33
  outline-offset: 0;
22
- -webkit-box-shadow: inset 0 0 0 2px;
23
34
  box-shadow: inset 0 0 0 2px;
24
35
  }
25
36
  }
26
37
  }
27
- &:last-child {
28
- .govgr-chip__content {
29
- @apply mr-0;
30
- }
31
- }
32
- }
33
- .govgr-chip--deletable {
34
- .govgr-chip__content {
35
- &:hover {
36
- @apply shadow-lg transition;
37
- }
38
- }
39
38
  }
40
- .govgr-chip__key-value {
39
+ .ds-chip__key-value {
41
40
  @apply font-bold mr-2;
42
41
  }
43
42
 
44
43
  /* overrides */
45
44
 
46
- .govgr-chip {
47
- .govgr-chip__content {
48
- .govgr-svg-icon--close {
49
- @apply w-4 h-4 ml-3;
50
- }
51
- &[role="button"] {
52
- &:hover {
53
- .govgr-svg-icon--close {
54
- fill: var(--color-base-content-invert);
45
+ .ds-chip {
46
+ &.ds-chip--deletable {
47
+ .ds-chip__content {
48
+ .ds-svg-icon--close {
49
+ &:hover {
50
+ @apply cursor-pointer;
55
51
  }
56
52
  }
57
53
  }
58
54
  }
59
- }
60
- .govgr-chip--deletable {
61
- .govgr-chip__content {
62
- .govgr-svg-icon--close {
55
+ .ds-chip__content {
56
+ &[role='button'] {
63
57
  &:hover {
64
- @apply cursor-pointer;
58
+ .ds-svg-icon--close {
59
+ fill: var(--color-base-content-invert);
60
+ }
65
61
  }
66
62
  }
63
+ .ds-svg-icon--close {
64
+ @apply w-4 h-4 ml-3;
65
+ }
67
66
  }
68
67
  }
@@ -1,2 +1,2 @@
1
- @import "tailwindcss/components";
2
- @import "./index.css";
1
+ @import 'tailwindcss/components';
2
+ @import './index.css';
@@ -1,65 +1,66 @@
1
- .govgr-copy-to-clipboard {
1
+ .ds-copy-to-clipboard {
2
2
  @apply flex w-fit;
3
+
4
+ &.ds-copy-to-clipboard--hidden {
5
+ @apply invisible w-0 h-0;
6
+ }
3
7
  }
4
- .govgr-copy-to-clipboard__tooltip {
8
+ .ds-copy-to-clipboard__tooltip {
5
9
  @apply relative;
6
- .govgr-copy-to-clipboard__message {
7
- @apply bg-success py-4 px-6 absolute mt-4 text-center z-50 w-fit md:w-max;
10
+ &.ds-copy-to-clipboard__tooltip--dense,
11
+ .ds-dense & {
8
12
  &::before {
9
- content: "";
10
- @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
11
- absolute -top-1;
12
- transform: rotate(45deg);
13
+ @apply w-2 h-2;
13
14
  }
14
- }
15
- &.govgr-copy-to-clipboard__tooltip--dense, .govgr-dense & {
16
- .govgr-copy-to-clipboard__message {
15
+ .ds-copy-to-clipboard__message {
17
16
  @apply py-2 px-4;
18
17
  }
19
- &::before {
20
- @apply w-2 h-2;
18
+ }
19
+ &.ds-copy-to-clipboard__tooltip--right {
20
+ .ds-copy-to-clipboard__message {
21
+ @apply right-0;
22
+ &::before {
23
+ @apply right-4;
24
+ content: '';
25
+ }
21
26
  }
22
27
  }
23
- }
24
- .govgr-copy-to-clipboard__tooltip--right {
25
- .govgr-copy-to-clipboard__message {
26
- @apply right-0;
27
- &::before {
28
- content: "";
29
- @apply right-4;
28
+ &.ds-copy-to-clipboard__tooltip--left {
29
+ .ds-copy-to-clipboard__message {
30
+ @apply left-0;
31
+ &::before {
32
+ @apply left-4;
33
+ content: '';
34
+ }
30
35
  }
31
36
  }
32
- }
33
- .govgr-copy-to-clipboard__tooltip--left {
34
- .govgr-copy-to-clipboard__message {
35
- @apply left-0;
37
+ .ds-copy-to-clipboard__message {
38
+ @apply bg-success py-4 px-6 absolute mt-4 text-center z-50 w-fit md:w-max;
36
39
  &::before {
37
- content: "";
38
- @apply left-4;
40
+ @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
41
+ absolute -top-1;
42
+ content: '';
43
+ transform: rotate(45deg);
39
44
  }
40
45
  }
41
46
  }
42
- .govgr-copy-to-clipboard__banner {
43
- .govgr-copy-to-clipboard__message {
47
+ .ds-copy-to-clipboard__banner {
48
+ .ds-copy-to-clipboard__message {
44
49
  @apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
45
50
  }
46
51
  }
47
52
 
48
- .govgr-copy-to-clipboard--hidden {
49
- @apply invisible w-0 h-0;
50
- }
51
-
52
53
  /* overrides */
53
54
 
54
- .govgr-copy-to-clipboard__tooltip {
55
- & > .govgr-btn {
55
+ .ds-copy-to-clipboard__tooltip {
56
+ & > .ds-btn {
56
57
  @apply m-0;
57
58
  }
58
59
  }
59
- .govgr-copy-to-clipboard__tooltip,
60
- .govgr-copy-to-clipboard__banner {
61
- .govgr-copy-to-clipboard__message {
62
- & > .govgr-body {
60
+ .ds-copy-to-clipboard__tooltip,
61
+ .ds-copy-to-clipboard__banner {
62
+ .ds-copy-to-clipboard__message {
63
+ & > .ds-body {
63
64
  @apply text-white;
64
65
  }
65
66
  }
@@ -0,0 +1,26 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-details {
5
+ @apply md:mb-8 mb-4;
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
+ }