@digigov/css 2.0.0-cbc56209 → 2.0.0-f0a886ce
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.
- package/defaultTheme/accordion.json +8 -0
- package/defaultTheme/brandConfig.json +14 -2
- package/defaultTheme/button.json +9 -0
- package/defaultTheme/card.json +16 -5
- package/defaultTheme/form.json +15 -0
- package/defaultTheme/globals.json +11 -1
- package/defaultTheme/index.js +1 -1
- package/defaultTheme/layout.json +55 -0
- package/defaultTheme/misc.json +20 -0
- package/defaultTheme/panel.json +5 -0
- package/defaultTheme/typography.json +4 -4
- package/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +5 -5
- package/src/components/accordion.css +5 -2
- package/src/components/admin-header.css +2 -19
- package/src/components/admin-layout.css +6 -15
- package/src/components/autocomplete.css +75 -29
- package/src/components/breadcrumbs.css +8 -1
- package/src/components/button.css +13 -10
- package/src/components/card.css +11 -4
- package/src/components/chip.css +1 -1
- package/src/components/code.css +136 -0
- package/src/components/dropdown.css +37 -26
- package/src/components/filter.css +2 -5
- package/src/components/footer.css +15 -4
- package/src/components/form.css +33 -23
- package/src/components/header.css +35 -13
- package/src/components/hidden.css +11 -11
- package/src/components/index.css +33 -31
- package/src/components/loader.css +2 -2
- package/src/components/misc.css +24 -0
- package/src/components/modal.css +12 -3
- package/src/components/nav.css +7 -4
- package/src/components/notification-banner.css +1 -0
- package/src/components/panel.css +1 -0
- package/src/components/skeleton.css +85 -0
- package/src/components/summary-list.css +14 -0
- package/src/components/svg-icons.css +1 -1
- package/src/components/table.css +10 -8
- package/src/components/tabs.css +44 -61
- package/src/components/typography.css +1 -11
- package/src/utilities/index.css +173 -0
- package/src/utilities/utilities.css +713 -6
- package/tailwind.config.js +2 -0
- package/defaultTheme/footer.json +0 -8
- package/src/pages/admin-filtering-data.js +0 -160
- package/src/pages/admin.js +0 -61
- package/src/pages/dropdown.js +0 -249
- package/src/pages/form.js +0 -400
- package/src/pages/pagination.js +0 -124
- package/src/pages/table.js +0 -308
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
.ds-breadcrumbs__list-item {
|
|
13
13
|
@apply inline-block relative mb-1 ml-2 pl-4 float-left;
|
|
14
14
|
font-size: var(--breadcrumbs__list-item-font-size);
|
|
15
|
+
&[aria-current='page'] {
|
|
16
|
+
@apply font-semibold;
|
|
17
|
+
}
|
|
15
18
|
&::before {
|
|
16
|
-
@apply block absolute top-2 bottom-0 left-0 md:w-3 md:h-3 w-2 h-2 mx-auto my-0
|
|
19
|
+
@apply block absolute top-2 bottom-0 left-0 md:w-3 md:h-3 w-2 h-2 mx-auto my-0
|
|
20
|
+
bg-contain bg-no-repeat bg-center;
|
|
17
21
|
content: '';
|
|
18
22
|
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>");
|
|
19
23
|
}
|
|
@@ -47,4 +51,7 @@
|
|
|
47
51
|
text-decoration: none;
|
|
48
52
|
outline: none;
|
|
49
53
|
}
|
|
54
|
+
&.ds-breadcrumbs__link--inactive {
|
|
55
|
+
@apply no-underline;
|
|
56
|
+
}
|
|
50
57
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.ds-btn-primary[type='reset'] {
|
|
37
37
|
@apply hover:no-underline
|
|
38
38
|
print:border-2 print:border-success print:shadow-none;
|
|
39
|
-
box-shadow:
|
|
39
|
+
box-shadow: var(--btn-primary-box-shadow);
|
|
40
40
|
background-color: var(--btn-primary-background-color);
|
|
41
41
|
color: var(--btn-primary-color);
|
|
42
42
|
&:hover {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
.ds-btn-secondary[type='reset'] {
|
|
62
62
|
@apply hover:no-underline
|
|
63
63
|
print:border-2 print:border-base-700 print:shadow-none;
|
|
64
|
-
box-shadow:
|
|
64
|
+
box-shadow: var(--btn-secondary-box-shadow);
|
|
65
65
|
background-color: var(--btn-secondary-background-color);
|
|
66
66
|
color: var(--btn-secondary-color);
|
|
67
67
|
&:hover {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
.ds-btn-warning[type='reset'] {
|
|
79
79
|
@apply hover:no-underline
|
|
80
80
|
print:border-2 print:border-error print:shadow-none;
|
|
81
|
-
box-shadow:
|
|
81
|
+
box-shadow: var(--btn-warning-box-shadow);
|
|
82
82
|
background-color: var(--btn-warning-background-color);
|
|
83
83
|
color: var(--btn-warning-color);
|
|
84
84
|
&:hover {
|
|
@@ -95,10 +95,6 @@
|
|
|
95
95
|
print:text-base-400 print:border-opacity-50;
|
|
96
96
|
@apply cursor-not-allowed !important;
|
|
97
97
|
}
|
|
98
|
-
.ds-svg-icon--caret {
|
|
99
|
-
@apply w-4 h-4 inline-block;
|
|
100
|
-
fill: var(--color-base-content);
|
|
101
|
-
}
|
|
102
98
|
.ds-close-btn {
|
|
103
99
|
@apply flex flex-nowrap text-right w-max float-right items-center;
|
|
104
100
|
}
|
|
@@ -110,7 +106,14 @@
|
|
|
110
106
|
@apply h-4 w-4 inline transition-all;
|
|
111
107
|
}
|
|
112
108
|
}
|
|
113
|
-
.ds-btn-primary
|
|
109
|
+
.ds-btn-primary {
|
|
110
|
+
.ds-svg-icon {
|
|
111
|
+
fill: var(--btn-primary-color);
|
|
112
|
+
}
|
|
113
|
+
.ds-svg-icon--more-vert {
|
|
114
|
+
@apply h-6 w-6 md:h-8 md:w-8;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
114
117
|
.ds-btn-warning {
|
|
115
118
|
.ds-svg-icon {
|
|
116
119
|
fill: var(--color-white);
|
|
@@ -121,11 +124,11 @@
|
|
|
121
124
|
}
|
|
122
125
|
.ds-btn-cta {
|
|
123
126
|
&:hover {
|
|
124
|
-
.ds-svg-icon
|
|
127
|
+
.ds-svg-icon {
|
|
125
128
|
@apply ml-4 mr-0;
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
|
-
.ds-svg-icon
|
|
131
|
+
.ds-svg-icon {
|
|
129
132
|
@apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
|
|
130
133
|
}
|
|
131
134
|
}
|
package/src/components/card.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.ds-card {
|
|
2
|
-
@apply mb-7 text-base-content;
|
|
2
|
+
@apply mb-7 text-base-content max-w-full;
|
|
3
|
+
border-radius: var(--card-border-radius);
|
|
3
4
|
&.ds-card--dense,
|
|
4
5
|
.ds-dense & {
|
|
5
6
|
@apply mb-5;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
&.ds-card--divider {
|
|
32
|
+
--card-border-radius: 0;
|
|
31
33
|
@apply border-b border-base-300 pb-4 mb-4;
|
|
32
34
|
}
|
|
33
35
|
&.ds-card--cta {
|
|
@@ -64,15 +66,20 @@
|
|
|
64
66
|
.ds-card__body {
|
|
65
67
|
@apply flex flex-col gap-3 md:gap-4 h-full;
|
|
66
68
|
}
|
|
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;
|
|
74
|
+
}
|
|
67
75
|
.ds-card__heading {
|
|
68
76
|
@apply md:text-2xl text-xl font-bold;
|
|
69
77
|
word-break: break-word;
|
|
70
78
|
}
|
|
71
79
|
.ds-card__content {
|
|
72
|
-
@apply text-base;
|
|
73
80
|
word-break: break-word;
|
|
74
|
-
font-size: var(--
|
|
75
|
-
line-height: var(--
|
|
81
|
+
font-size: var(--card__content-font-size);
|
|
82
|
+
line-height: var(--card__content-line-height);
|
|
76
83
|
}
|
|
77
84
|
.ds-card__action {
|
|
78
85
|
@apply flex flex-wrap items-center gap-y-4 mt-auto;
|
package/src/components/chip.css
CHANGED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
.ds-code-block__container {
|
|
2
|
+
@apply p-4 bg-base-200 border border-base-300 w-full overflow-x-auto relative;
|
|
3
|
+
& > pre {
|
|
4
|
+
@apply bg-transparent p-0 m-0;
|
|
5
|
+
font: inherit;
|
|
6
|
+
color: inherit;
|
|
7
|
+
}
|
|
8
|
+
&.ds-code-block__container--wrap-lines {
|
|
9
|
+
@apply whitespace-pre-wrap overflow-x-hidden;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.ds-code-block__header {
|
|
13
|
+
@apply sticky left-0 flex mb-0.5 items-start;
|
|
14
|
+
|
|
15
|
+
&.ds-code-block__header--start {
|
|
16
|
+
@apply justify-start;
|
|
17
|
+
}
|
|
18
|
+
&.ds-code-block__header--space-between {
|
|
19
|
+
@apply justify-between;
|
|
20
|
+
}
|
|
21
|
+
&.ds-code-block__header--end {
|
|
22
|
+
@apply justify-end;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.ds-code-block__content {
|
|
26
|
+
@apply text-sm sm:text-base;
|
|
27
|
+
}
|
|
28
|
+
.ds-code--line-number {
|
|
29
|
+
width: 2.5em;
|
|
30
|
+
text-align: right;
|
|
31
|
+
padding-right: 0.5em;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
user-select: none;
|
|
34
|
+
display: inline-block;
|
|
35
|
+
color: #999;
|
|
36
|
+
}
|
|
37
|
+
.ds-code--highlighted-line {
|
|
38
|
+
background-color: #ffe2e2;
|
|
39
|
+
}
|
|
40
|
+
/* copied styles from 'highlight.js/styles/github.css' */
|
|
41
|
+
.ds-code--doctag,
|
|
42
|
+
.ds-code--keyword,
|
|
43
|
+
.ds-code--meta .ds-code--keyword,
|
|
44
|
+
.ds-code--template-tag,
|
|
45
|
+
.ds-code--template-variable,
|
|
46
|
+
.ds-code--type,
|
|
47
|
+
.ds-code--variable.language_ {
|
|
48
|
+
/* prettylights-syntax-keyword */
|
|
49
|
+
color: #d73a49
|
|
50
|
+
}
|
|
51
|
+
.ds-code--title,
|
|
52
|
+
.ds-code--title.class_,
|
|
53
|
+
.ds-code--title.class_.inherited__,
|
|
54
|
+
.ds-code--title.function_ {
|
|
55
|
+
/* prettylights-syntax-entity */
|
|
56
|
+
color: #6f42c1
|
|
57
|
+
}
|
|
58
|
+
.ds-code--attr,
|
|
59
|
+
.ds-code--attribute,
|
|
60
|
+
.ds-code--literal,
|
|
61
|
+
.ds-code--meta,
|
|
62
|
+
.ds-code--number,
|
|
63
|
+
.ds-code--operator,
|
|
64
|
+
.ds-code--variable,
|
|
65
|
+
.ds-code--selector-attr,
|
|
66
|
+
.ds-code--selector-class,
|
|
67
|
+
.ds-code--selector-id {
|
|
68
|
+
/* prettylights-syntax-constant */
|
|
69
|
+
color: #005cc5
|
|
70
|
+
}
|
|
71
|
+
.ds-code--regexp,
|
|
72
|
+
.ds-code--string,
|
|
73
|
+
.ds-code--meta .ds-code--string {
|
|
74
|
+
/* prettylights-syntax-string */
|
|
75
|
+
color: #032f62
|
|
76
|
+
}
|
|
77
|
+
.ds-code--built_in,
|
|
78
|
+
.ds-code--symbol {
|
|
79
|
+
/* prettylights-syntax-variable */
|
|
80
|
+
color: #e36209
|
|
81
|
+
}
|
|
82
|
+
.ds-code--comment,
|
|
83
|
+
.ds-code--code,
|
|
84
|
+
.ds-code--formula {
|
|
85
|
+
/* prettylights-syntax-comment */
|
|
86
|
+
color: #6a737d
|
|
87
|
+
}
|
|
88
|
+
.ds-code--name,
|
|
89
|
+
.ds-code--quote,
|
|
90
|
+
.ds-code--selector-tag,
|
|
91
|
+
.ds-code--selector-pseudo {
|
|
92
|
+
/* prettylights-syntax-entity-tag */
|
|
93
|
+
color: #22863a
|
|
94
|
+
}
|
|
95
|
+
.ds-code--subst {
|
|
96
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
97
|
+
color: #24292e
|
|
98
|
+
}
|
|
99
|
+
.ds-code--section {
|
|
100
|
+
/* prettylights-syntax-markup-heading */
|
|
101
|
+
color: #005cc5;
|
|
102
|
+
font-weight: bold
|
|
103
|
+
}
|
|
104
|
+
.ds-code--bullet {
|
|
105
|
+
/* prettylights-syntax-markup-list */
|
|
106
|
+
color: #735c0f
|
|
107
|
+
}
|
|
108
|
+
.ds-code--emphasis {
|
|
109
|
+
/* prettylights-syntax-markup-italic */
|
|
110
|
+
color: #24292e;
|
|
111
|
+
font-style: italic
|
|
112
|
+
}
|
|
113
|
+
.ds-code--strong {
|
|
114
|
+
/* prettylights-syntax-markup-bold */
|
|
115
|
+
color: #24292e;
|
|
116
|
+
font-weight: bold
|
|
117
|
+
}
|
|
118
|
+
.ds-code--addition {
|
|
119
|
+
/* prettylights-syntax-markup-inserted */
|
|
120
|
+
color: #22863a;
|
|
121
|
+
background-color: #f0fff4
|
|
122
|
+
}
|
|
123
|
+
.ds-code--deletion {
|
|
124
|
+
/* prettylights-syntax-markup-deleted */
|
|
125
|
+
color: #b31d28;
|
|
126
|
+
background-color: #ffeef0
|
|
127
|
+
}
|
|
128
|
+
.ds-code--char.escape_,
|
|
129
|
+
.ds-code--link,
|
|
130
|
+
.ds-code--params,
|
|
131
|
+
.ds-code--property,
|
|
132
|
+
.ds-code--punctuation,
|
|
133
|
+
.ds-code--tag {
|
|
134
|
+
/* purposely ignored */
|
|
135
|
+
|
|
136
|
+
}
|
|
@@ -30,33 +30,39 @@
|
|
|
30
30
|
@apply p-2;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
}
|
|
34
|
+
.ds-dropdown__button {
|
|
35
|
+
@apply w-fit print:text-base-content;
|
|
36
|
+
&::marker {
|
|
37
|
+
font-size: 0;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
&::-webkit-details-marker {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.ds-dropdown__button.ds-link + .ds-dropdown__content {
|
|
44
|
+
@apply mt-4 print:text-base-content;
|
|
45
|
+
}
|
|
46
|
+
.ds-btn-group .ds-btn + .ds-dropdown__content {
|
|
47
|
+
@apply mt-4;
|
|
48
|
+
}
|
|
49
|
+
.ds-dropdown__content {
|
|
50
|
+
@apply border border-base-400 p-4 bg-base-100 border-t-0
|
|
51
|
+
max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
|
|
52
|
+
-webkit-box-box-shadow:
|
|
53
|
+
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
54
|
+
0 -2px 0 var(--color-base-500);
|
|
55
|
+
box-shadow:
|
|
56
|
+
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
57
|
+
0 -2px 0 var(--color-base-500);
|
|
58
|
+
&.ds-dropdown__content--full-width {
|
|
59
|
+
@apply min-w-full;
|
|
41
60
|
}
|
|
42
|
-
|
|
43
|
-
@apply
|
|
61
|
+
&.ds-dropdown__content--scrollable {
|
|
62
|
+
@apply overflow-y-auto max-h-64 md:max-h-96;
|
|
44
63
|
}
|
|
45
|
-
|
|
46
|
-
@apply
|
|
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
|
-
&.ds-dropdown__content--full-width {
|
|
55
|
-
@apply min-w-full;
|
|
56
|
-
}
|
|
57
|
-
*:last-child {
|
|
58
|
-
@apply mb-0;
|
|
59
|
-
}
|
|
64
|
+
*:last-child {
|
|
65
|
+
@apply mb-0;
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
|
|
@@ -105,8 +111,7 @@
|
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
113
|
.ds-svg-icon {
|
|
108
|
-
@apply w-5 h-6 md:h-8;
|
|
109
|
-
@apply print:hidden;
|
|
114
|
+
@apply w-5 h-6 md:h-8 min-w-4 print:hidden;
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
.ds-dropdown__content {
|
|
@@ -118,6 +123,12 @@
|
|
|
118
123
|
}
|
|
119
124
|
> .ds-nav__list {
|
|
120
125
|
@apply w-auto -mx-4 flex-col;
|
|
126
|
+
&:nth-child(1) {
|
|
127
|
+
@apply -mt-4;
|
|
128
|
+
}
|
|
129
|
+
&:last-child {
|
|
130
|
+
@apply -mb-4 !important;
|
|
131
|
+
}
|
|
121
132
|
.ds-nav__list-item {
|
|
122
133
|
@apply border-b border-base-300 py-2 px-4;
|
|
123
134
|
&:last-child {
|
|
@@ -57,14 +57,11 @@
|
|
|
57
57
|
@apply bg-base-200 p-4 m-0 rounded;
|
|
58
58
|
}
|
|
59
59
|
.ds-filter__selected-heading {
|
|
60
|
-
@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-6 justify-between gap-x-2 gap-y-4;
|
|
61
61
|
}
|
|
62
62
|
.ds-input__search-btn {
|
|
63
63
|
@apply shadow-none !important;
|
|
64
|
-
@apply
|
|
65
|
-
px-4 py-2 w-min m-0 ml-3
|
|
66
|
-
flex gap-2
|
|
67
|
-
hover:bg-success-hover active:bg-success-hover hover:no-underline;
|
|
64
|
+
@apply px-4 py-2 w-min m-0 ml-3 flex gap-2;
|
|
68
65
|
}
|
|
69
66
|
.ds-search {
|
|
70
67
|
@apply flex w-full max-w-3xl;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
.ds-footer {
|
|
2
|
-
|
|
3
|
-
border-
|
|
2
|
+
border: var(--footer-border);
|
|
3
|
+
border-width: var(--footer-border-width);
|
|
4
|
+
background-color: var(--footer-background-color);
|
|
5
|
+
color: var(--footer-color);
|
|
6
|
+
@apply font-normal text-base py-4 md:py-8 w-full
|
|
4
7
|
print:py-2 print:bg-white print:border-t-2;
|
|
5
8
|
}
|
|
6
9
|
.ds-footer__info {
|
|
@@ -40,12 +43,15 @@
|
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
.ds-footer__link {
|
|
43
|
-
|
|
46
|
+
text-decoration: var(--footer__link-text-decoration);
|
|
47
|
+
|
|
44
48
|
&:hover {
|
|
49
|
+
text-decoration: var(--footer__link-text-decoration-hover);
|
|
45
50
|
text-decoration-thickness: 2px;
|
|
46
|
-
color:
|
|
51
|
+
color:var(--footer__link-color-hover);
|
|
47
52
|
}
|
|
48
53
|
&:focus {
|
|
54
|
+
color:var(--footer__link-color-focus);
|
|
49
55
|
background-color: var(--color-focus) !important;
|
|
50
56
|
box-shadow:
|
|
51
57
|
0 -2px var(--color-focus),
|
|
@@ -94,6 +100,11 @@
|
|
|
94
100
|
@apply print:hidden;
|
|
95
101
|
}
|
|
96
102
|
.ds-link {
|
|
103
|
+
--link-color:var(--color-footer);
|
|
104
|
+
@apply print:text-base-content;
|
|
105
|
+
}
|
|
106
|
+
.ds-body {
|
|
107
|
+
--body-color:var(--color-footer);
|
|
97
108
|
@apply print:text-base-content;
|
|
98
109
|
}
|
|
99
110
|
}
|
package/src/components/form.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@apply mb-8 md:mb-10;
|
|
5
5
|
|
|
6
6
|
&.ds-field--error {
|
|
7
|
-
@apply border-l-5 border-error px-0 pl-4;
|
|
7
|
+
@apply border-l-5 border-error-text px-0 pl-4;
|
|
8
8
|
}
|
|
9
9
|
.ds-fieldset {
|
|
10
10
|
> .ds-field:last-child,
|
|
@@ -30,6 +30,30 @@
|
|
|
30
30
|
line-height: var(--label-line-height);
|
|
31
31
|
letter-spacing: var(--label-letter-spacing);
|
|
32
32
|
}
|
|
33
|
+
.ds-input {
|
|
34
|
+
border-radius: var(--input-border-radius);
|
|
35
|
+
&.ds-input--width-20-char {
|
|
36
|
+
max-width: 41ex;
|
|
37
|
+
}
|
|
38
|
+
&.ds-input--width-10-char {
|
|
39
|
+
max-width: 23ex;
|
|
40
|
+
}
|
|
41
|
+
&.ds-input--width-5-char {
|
|
42
|
+
max-width: 10.8ex;
|
|
43
|
+
}
|
|
44
|
+
&.ds-input--width-4-char {
|
|
45
|
+
max-width: 9ex;
|
|
46
|
+
}
|
|
47
|
+
&.ds-input--width-3-char {
|
|
48
|
+
max-width: 7.2ex;
|
|
49
|
+
}
|
|
50
|
+
&.ds-input--width-2-char {
|
|
51
|
+
max-width: 5.4ex;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.ds-textarea {
|
|
55
|
+
border-radius: var(--textarea-border-radius);
|
|
56
|
+
}
|
|
33
57
|
.ds-input,
|
|
34
58
|
.ds-select,
|
|
35
59
|
.ds-textarea {
|
|
@@ -41,6 +65,7 @@
|
|
|
41
65
|
box-shadow: inset 0 0 0 2px;
|
|
42
66
|
}
|
|
43
67
|
}
|
|
68
|
+
/* stylelint-disable-next-line digigov/nest-related-rules */
|
|
44
69
|
.ds-input--dense,
|
|
45
70
|
.ds-dense .ds-input,
|
|
46
71
|
.ds-textarea--dense,
|
|
@@ -77,27 +102,11 @@
|
|
|
77
102
|
}
|
|
78
103
|
.ds-select {
|
|
79
104
|
@apply w-auto max-w-full;
|
|
105
|
+
border-radius: var(--select-border-radius);
|
|
80
106
|
}
|
|
81
107
|
.ds-select__option {
|
|
82
108
|
}
|
|
83
|
-
|
|
84
|
-
max-width: 41ex;
|
|
85
|
-
}
|
|
86
|
-
.ds-input--width-10-char {
|
|
87
|
-
max-width: 23ex;
|
|
88
|
-
}
|
|
89
|
-
.ds-input--width-5-char {
|
|
90
|
-
max-width: 10.8ex;
|
|
91
|
-
}
|
|
92
|
-
.ds-input--width-4-char {
|
|
93
|
-
max-width: 9ex;
|
|
94
|
-
}
|
|
95
|
-
.ds-input--width-3-char {
|
|
96
|
-
max-width: 7.2ex;
|
|
97
|
-
}
|
|
98
|
-
.ds-input--width-2-char {
|
|
99
|
-
max-width: 5.4ex;
|
|
100
|
-
}
|
|
109
|
+
|
|
101
110
|
.ds-single-character-input__item {
|
|
102
111
|
@apply text-center px-0 mr-3;
|
|
103
112
|
max-width: 4.4ex;
|
|
@@ -136,14 +145,15 @@
|
|
|
136
145
|
|
|
137
146
|
/* error handling */
|
|
138
147
|
.ds-error-message {
|
|
139
|
-
@apply md:text-lg text-base block mb-4 text-error font-semibold;
|
|
148
|
+
@apply md:text-lg text-base block mb-4 text-error-text font-semibold;
|
|
140
149
|
}
|
|
150
|
+
/* stylelint-disable-next-line digigov/nest-related-rules */
|
|
141
151
|
.ds-input--error {
|
|
142
|
-
@apply border-error border-3;
|
|
152
|
+
@apply border-error-text border-3;
|
|
143
153
|
&:focus {
|
|
144
154
|
outline: 4px solid var(--color-focus);
|
|
145
155
|
outline-offset: 0;
|
|
146
|
-
box-shadow: inset 0 0 0 1px var(--color-error);
|
|
156
|
+
box-shadow: inset 0 0 0 1px var(--color-error-text);
|
|
147
157
|
}
|
|
148
158
|
}
|
|
149
159
|
|
|
@@ -164,7 +174,7 @@
|
|
|
164
174
|
.ds-textarea:disabled,
|
|
165
175
|
.ds-checkboxes__input:disabled::before,
|
|
166
176
|
.ds-radios__input:disabled::before {
|
|
167
|
-
@apply border-base-
|
|
177
|
+
@apply border-base-700 text-base-800;
|
|
168
178
|
}
|
|
169
179
|
.ds-checkboxes__input:disabled:checked::after,
|
|
170
180
|
.ds-radios__input:disabled:checked::after {
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
.ds-header {
|
|
2
|
-
@apply relative
|
|
3
|
-
|
|
2
|
+
@apply relative border-b-8 print:border-b-2 border-tertiary print:bg-white;
|
|
3
|
+
background: var(--header-background);
|
|
4
|
+
border: var(--header-border);
|
|
5
|
+
border-width: var(--header-border-width);
|
|
4
6
|
}
|
|
5
7
|
.ds-header__content {
|
|
6
|
-
@apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center
|
|
8
|
+
@apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center flex-wrap sm:flex-nowrap
|
|
7
9
|
print:px-0 gap-3;
|
|
8
10
|
}
|
|
9
11
|
.ds-header__section {
|
|
10
12
|
@apply flex justify-start flex-wrap items-center gap-x-4 gap-y-2
|
|
11
13
|
print:gap-1;
|
|
14
|
+
&:last-child:not(:first-child) {
|
|
15
|
+
@apply flex-1 justify-end sm:flex-none sm:justify-start;
|
|
16
|
+
}
|
|
12
17
|
}
|
|
13
18
|
.ds-header__logo {
|
|
14
19
|
@apply h-12 print:hidden;
|
|
@@ -27,11 +32,13 @@
|
|
|
27
32
|
text-decoration: none;
|
|
28
33
|
}
|
|
29
34
|
.ds-header__title {
|
|
30
|
-
@apply
|
|
35
|
+
@apply font-bold text-2xl leading-10 tracking-wide no-underline
|
|
31
36
|
w-auto align-middle hover:no-underline
|
|
32
37
|
print:text-base-content;
|
|
38
|
+
color: var(--header__title-color);
|
|
33
39
|
&:hover {
|
|
34
|
-
@apply text-white;
|
|
40
|
+
/* @apply text-white; */
|
|
41
|
+
color: var(--header__title-color-hover);
|
|
35
42
|
}
|
|
36
43
|
&:focus {
|
|
37
44
|
text-decoration: none;
|
|
@@ -50,7 +57,21 @@
|
|
|
50
57
|
.ds-header__section {
|
|
51
58
|
> .ds-link,
|
|
52
59
|
> .ds-dropdown .ds-dropdown__button.ds-link {
|
|
53
|
-
@apply
|
|
60
|
+
@apply focus:text-link-active print:text-base-content;
|
|
61
|
+
color: var(--color-header-text);
|
|
62
|
+
}
|
|
63
|
+
> .ds-skeleton {
|
|
64
|
+
@apply bg-primary-100 w-80 max-w-xs;
|
|
65
|
+
&.ds-skeleton--animate {
|
|
66
|
+
&::after {
|
|
67
|
+
background: linear-gradient(
|
|
68
|
+
90deg,
|
|
69
|
+
transparent,
|
|
70
|
+
rgba(255, 255, 255, 0.05),
|
|
71
|
+
transparent
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
54
75
|
}
|
|
55
76
|
}
|
|
56
77
|
.ds-dropdown {
|
|
@@ -62,7 +83,7 @@
|
|
|
62
83
|
.ds-link {
|
|
63
84
|
&:hover {
|
|
64
85
|
.ds-svg-icon {
|
|
65
|
-
fill: var(--color-
|
|
86
|
+
fill: var(--color-header-text-hover);
|
|
66
87
|
}
|
|
67
88
|
}
|
|
68
89
|
&:focus {
|
|
@@ -75,7 +96,8 @@
|
|
|
75
96
|
}
|
|
76
97
|
}
|
|
77
98
|
.ds-phase-banner__text {
|
|
78
|
-
@apply
|
|
99
|
+
@apply print:text-base-content;
|
|
100
|
+
color: var(--color-header-text);
|
|
79
101
|
}
|
|
80
102
|
}
|
|
81
103
|
.ds-header__section {
|
|
@@ -88,12 +110,12 @@
|
|
|
88
110
|
.ds-header__section {
|
|
89
111
|
> .ds-svg-icon--burger {
|
|
90
112
|
@apply float-right focus:bg-focus;
|
|
91
|
-
fill: var(--color-
|
|
113
|
+
fill: var(--color-header-text);
|
|
92
114
|
}
|
|
93
115
|
> .ds-close-btn {
|
|
94
116
|
@apply sm:hidden;
|
|
95
117
|
.ds-svg-icon--close {
|
|
96
|
-
fill: var(--color-
|
|
118
|
+
fill: var(--color-header-text) !important;
|
|
97
119
|
}
|
|
98
120
|
}
|
|
99
121
|
> .ds-nav__list {
|
|
@@ -101,16 +123,16 @@
|
|
|
101
123
|
> .ds-nav__list-item-link,
|
|
102
124
|
> .ds-nav__list-item-btn {
|
|
103
125
|
&:not(:focus) {
|
|
104
|
-
|
|
126
|
+
color: var(--color-header-text);
|
|
105
127
|
}
|
|
106
128
|
}
|
|
107
129
|
> .ds-nav__list-item-link--active,
|
|
108
130
|
> .ds-nav__list-item-btn--active {
|
|
109
131
|
&:not(:focus) {
|
|
110
|
-
|
|
132
|
+
color: var(--color-header-text) !important;
|
|
111
133
|
}
|
|
112
134
|
.ds-svg-icon {
|
|
113
|
-
fill: var(--color-
|
|
135
|
+
fill: var(--color-header-text);
|
|
114
136
|
}
|
|
115
137
|
}
|
|
116
138
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
.ds-hidden {
|
|
2
|
-
@apply hidden;
|
|
2
|
+
@apply hidden !important;
|
|
3
3
|
}
|
|
4
4
|
.ds-hidden-xs-up {
|
|
5
|
-
@apply xs:hidden;
|
|
5
|
+
@apply xs:hidden !important;
|
|
6
6
|
}
|
|
7
7
|
.ds-hidden-sm-up {
|
|
8
|
-
@apply sm:hidden;
|
|
8
|
+
@apply sm:hidden !important;
|
|
9
9
|
}
|
|
10
10
|
.ds-hidden-md-up {
|
|
11
|
-
@apply md:hidden;
|
|
11
|
+
@apply md:hidden !important;
|
|
12
12
|
}
|
|
13
13
|
.ds-hidden-lg-up {
|
|
14
|
-
@apply lg:hidden;
|
|
14
|
+
@apply lg:hidden !important;
|
|
15
15
|
}
|
|
16
16
|
.ds-hidden-xl-up {
|
|
17
|
-
@apply xl:hidden;
|
|
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;
|
|
32
|
+
@apply xlOnly:hidden !important;
|
|
33
33
|
}
|