@digigov/css 2.0.0-4be8f7cc → 2.0.0-85c27c19

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.
@@ -59,7 +59,7 @@
59
59
  @apply min-w-full;
60
60
  }
61
61
  &.ds-dropdown__content--scrollable {
62
- @apply overflow-y-auto max-h-96;
62
+ @apply overflow-y-auto max-h-64 md:max-h-96;
63
63
  }
64
64
  *:last-child {
65
65
  @apply mb-0;
@@ -57,7 +57,7 @@
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;
@@ -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,
@@ -32,6 +32,24 @@
32
32
  }
33
33
  .ds-input {
34
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
+ }
35
53
  }
36
54
  .ds-textarea {
37
55
  border-radius: var(--textarea-border-radius);
@@ -47,6 +65,7 @@
47
65
  box-shadow: inset 0 0 0 2px;
48
66
  }
49
67
  }
68
+ /* stylelint-disable-next-line digigov/nest-related-rules */
50
69
  .ds-input--dense,
51
70
  .ds-dense .ds-input,
52
71
  .ds-textarea--dense,
@@ -82,29 +101,12 @@
82
101
  @apply flex flex-wrap gap-y-2;
83
102
  }
84
103
  .ds-select {
85
- border-radius: var(--select-border-radius);
86
104
  @apply w-auto max-w-full;
105
+ border-radius: var(--select-border-radius);
87
106
  }
88
107
  .ds-select__option {
89
108
  }
90
- .ds-input--width-20-char {
91
- max-width: 41ex;
92
- }
93
- .ds-input--width-10-char {
94
- max-width: 23ex;
95
- }
96
- .ds-input--width-5-char {
97
- max-width: 10.8ex;
98
- }
99
- .ds-input--width-4-char {
100
- max-width: 9ex;
101
- }
102
- .ds-input--width-3-char {
103
- max-width: 7.2ex;
104
- }
105
- .ds-input--width-2-char {
106
- max-width: 5.4ex;
107
- }
109
+
108
110
  .ds-single-character-input__item {
109
111
  @apply text-center px-0 mr-3;
110
112
  max-width: 4.4ex;
@@ -143,14 +145,15 @@
143
145
 
144
146
  /* error handling */
145
147
  .ds-error-message {
146
- @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;
147
149
  }
150
+ /* stylelint-disable-next-line digigov/nest-related-rules */
148
151
  .ds-input--error {
149
- @apply border-error border-3;
152
+ @apply border-error-text border-3;
150
153
  &:focus {
151
154
  outline: 4px solid var(--color-focus);
152
155
  outline-offset: 0;
153
- box-shadow: inset 0 0 0 1px var(--color-error);
156
+ box-shadow: inset 0 0 0 1px var(--color-error-text);
154
157
  }
155
158
  }
156
159
 
@@ -60,6 +60,19 @@
60
60
  @apply focus:text-link-active print:text-base-content;
61
61
  color: var(--color-header-text);
62
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
+ }
75
+ }
63
76
  }
64
77
  .ds-dropdown {
65
78
  @apply print:hidden;
@@ -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
  }
@@ -7,6 +7,7 @@
7
7
  @import './breadcrumbs.css';
8
8
  @import './button.css';
9
9
  @import './card.css';
10
+ @import './code.css';
10
11
  @import './form.css';
11
12
  @import './checkboxes.css';
12
13
  @import './chip.css';
@@ -57,3 +57,27 @@ div[class*='ds-grid__col-span'] {
57
57
  .ds-image-logo-dark {
58
58
  @apply h-10 hidden;
59
59
  }
60
+
61
+ .ds-test-variant {
62
+ @apply mb-4 mx-2;
63
+ }
64
+
65
+ .ds-test-variant__title {
66
+ @apply font-semibold text-3xl break-all -mb-1;
67
+ color: var(--color-red-300);
68
+ }
69
+
70
+ .ds-test-variant__content {
71
+ border-color: var(--color-red-100);
72
+ border-width: 10px;
73
+
74
+ /* For transparency check:
75
+ padding: 25px;
76
+ background-image:
77
+ linear-gradient(45deg, #ccc 25%, transparent 25%),
78
+ linear-gradient(135deg, #ccc 25%, transparent 25%),
79
+ linear-gradient(45deg, transparent 75%, #ccc 75%),
80
+ linear-gradient(135deg, transparent 75%, #ccc 75%);
81
+ background-size:25px 25px;
82
+ background-position:0 0, 12.5px 0, 12.5px -12.5px, 0px 12.5px; */
83
+ }
@@ -9,8 +9,11 @@
9
9
 
10
10
  &.ds-modal--dense,
11
11
  &.ds-dense & {
12
+ .ds-modal__body {
13
+ @apply px-4 py-0;
14
+ }
12
15
  .ds-modal__container {
13
- @apply px-4 py-0 gap-4;
16
+ @apply gap-4 my-0;
14
17
  }
15
18
  }
16
19
  }
@@ -18,11 +21,17 @@
18
21
  @apply w-full max-w-md md:max-w-lg lg:max-w-4xl
19
22
  h-fit md:h-auto overflow-y-auto
20
23
  bg-base-100
21
- border border-solid border-base-500;
24
+ border border-solid border-base-500 p-6;
22
25
  max-height: 95vh;
23
26
  }
24
27
  .ds-modal__container {
25
- @apply grid p-10 gap-6 px-6 py-2;
28
+ @apply grid gap-6 -my-4;
29
+ .ds-modal__action {
30
+ @apply mb-0;
31
+ }
32
+ >.ds-heading-xs, >.ds-heading-sm, >.ds-heading-md, >.ds-heading-lg, >.ds-heading-xl {
33
+ @apply mb-0;
34
+ }
26
35
  }
27
36
  .ds-modal__content {
28
37
  @apply text-base lg:text-xl text-lg;
@@ -38,10 +38,6 @@
38
38
  &.ds-nav--border {
39
39
  @apply sm:border-b sm:border-base-400;
40
40
  }
41
-
42
- /* .ds-nav__list {
43
- @apply px-3;
44
- } */
45
41
  .ds-nav__list-item-link,
46
42
  .ds-nav__list-item-btn {
47
43
  @apply md:no-underline !important;
@@ -81,6 +77,13 @@
81
77
  @apply font-semibold;
82
78
  }
83
79
 
80
+ .ds-nav__list-item-badge {
81
+ @apply inline-flex w-fit items-center justify-center p-1 ml-2
82
+ bg-error text-white text-xs md:text-xs font-semibold no-underline rounded-3xl
83
+ relative bottom-1;
84
+ min-width: 24px;
85
+ min-height: 24px;
86
+ }
84
87
  .ds-nav-menu {
85
88
  @apply flex w-full;
86
89
  &.ds-nav-menu--hidden {
@@ -1,11 +1,28 @@
1
1
  .ds-skeleton {
2
- @apply block bg-base-300 h-auto w-full max-w-full;
2
+ @apply block bg-base-300 h-auto w-full max-w-full rounded-sm;
3
3
 
4
4
  /* max-width: 105ch; */
5
5
  &.ds-skeleton--text {
6
6
  /* @apply text-lg; */
7
7
  &::before {
8
8
  content: '\00a0';
9
+ visibility: hidden;
10
+ }
11
+ &.ds-skeleton--font-xs {
12
+ @apply text-sm md:text-base mb-2 md:mb-4;
13
+ line-height: 1rem;
14
+ }
15
+ &.ds-skeleton--font-sm {
16
+ @apply text-base md:text-lg mb-3 md:mb-5;
17
+ }
18
+ &.ds-skeleton--font-md {
19
+ @apply text-xl md:text-2xl mb-5 md:mb-6;
20
+ }
21
+ &.ds-skeleton--font-lg {
22
+ @apply text-2xl md:text-3xl mb-6 md:mb-7;
23
+ }
24
+ &.ds-skeleton--font-xl {
25
+ @apply text-3xl md:text-4xl mb-8 md:mb-10;
9
26
  }
10
27
  }
11
28
  &.ds-skeleton--circular {
@@ -18,7 +35,7 @@
18
35
  border-b-2 border-gray-400
19
36
  flex items-center justify-center;
20
37
  .ds-skeleton__line {
21
- @apply block bg-base-400 w-full max-w-full max-h-full;
38
+ @apply block bg-base-400 w-full max-w-full max-h-full visible;
22
39
  &::before {
23
40
  content: '\00a0';
24
41
  }
@@ -50,7 +67,7 @@
50
67
  transform: translateX(-100%);
51
68
  }
52
69
  }
53
- > :not(.ds-skeleton__line) {
70
+ > * {
54
71
  @apply invisible;
55
72
  }
56
73
  }
@@ -3,13 +3,27 @@
3
3
  sm:table sm:w-full sm:table-fixed;
4
4
  font-size: var(--summary-list-font-size);
5
5
  &.ds-summary-list--no-border {
6
+ >.ds-summary-list__row:last-child {
7
+ @apply border-b-0 pb-0 mb-0;
8
+ }
6
9
  .ds-summary-list__key,
7
10
  .ds-summary-list__value,
8
11
  .ds-summary-list__actions {
9
12
  @apply sm:border-0 pb-2;
10
13
  }
11
14
  }
15
+ &.ds-summary-list--no-last-border {
16
+ >.ds-summary-list__row:last-child {
17
+ @apply border-b-0 pb-0 mb-0;
18
+ .ds-summary-list__key,
19
+ .ds-summary-list__value,
20
+ .ds-summary-list__actions {
21
+ @apply border-b-0;
22
+ }
23
+ }
24
+ }
12
25
  }
26
+
13
27
  .ds-summary-list__row {
14
28
  @apply block sm:flex
15
29
  pb-4 mb-4 border-b border-solid border-base-300
@@ -23,7 +23,7 @@
23
23
  fill: var(--color-warning) !important;
24
24
  }
25
25
  &.ds-svg-icon--error {
26
- fill: var(--color-error) !important;
26
+ fill: var(--color-error-text) !important;
27
27
  }
28
28
  &.ds-svg-icon--focus {
29
29
  fill: var(--color-focus) !important;
@@ -151,6 +151,11 @@
151
151
  content: attr(data-label);
152
152
  }
153
153
  }
154
+ .ds-table__cell {
155
+ .ds-body:last-child {
156
+ @apply mb-0;
157
+ }
158
+ }
154
159
  }
155
160
  .ds-table-sort__icons-container {
156
161
  @apply flex flex-col;
@@ -4,7 +4,7 @@
4
4
  .ds-dense & {
5
5
  .ds-tabs__list {
6
6
  .ds-tabs__list-item {
7
- @apply px-3 py-1;
7
+ @apply md:px-3 md:py-1;
8
8
  &.ds-tabs__list-item-selected {
9
9
  @apply md:px-4 md:pb-3 md:pt-2;
10
10
  }
@@ -14,70 +14,52 @@
14
14
  @apply pb-2 pt-3;
15
15
  }
16
16
  }
17
-
18
- &.ds-tabs--vertical {
19
- .ds-tabs__panel {
20
- @apply min-h-full pt-4 pl-6;
21
- }
22
- .ds-tabs__list {
23
- .ds-tabs__list-item {
24
- @apply w-full rounded-none mb-1 md:bg-base-200 border-base-200;
25
- width: calc(100% - 0.25rem);
26
- &.ds-tabs__list-item-selected {
27
- @apply md:border-b md:border-r-0 mb-1 mt-0 px-4 py-2;
28
-
29
- /* margin-right: -1px; */
30
- width: calc(100% + 1px);
31
-
32
- /* margin-top: 0px; */
33
- }
34
- }
17
+ }
18
+ .ds-tabs__title {
19
+ @apply block md:hidden;
20
+ }
21
+ .ds-tabs__list {
22
+ @apply list-none m-0 p-0
23
+ md:flex md:flex-nowrap md:w-full md:items-start;
24
+ &::after {
25
+ content: '';
26
+ display: block;
27
+ clear: both;
28
+ }
29
+ }
30
+ .ds-tabs__list-item {
31
+ @apply relative px-4 py-1 md:py-2 m-0 shadow-none cursor-pointer text-link
32
+ md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2 md:text-base-content
33
+ print:hidden;
34
+ word-break: break-word;
35
+ &.ds-tabs__list-item-selected {
36
+ @apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:py-4 md:-mt-1;
37
+ margin-bottom: -1px;
38
+ &:hover {
39
+ text-decoration-thickness: 2px;
35
40
  }
36
41
  }
37
- .ds-tabs__title {
38
- @apply block md:hidden lg:hidden;
42
+ }
43
+ .ds-tabs__tab {
44
+ @apply text-lg no-underline hover:underline;
45
+ &::before {
46
+ @apply absolute top-0 left-0 text-base-content;
47
+ @apply md:content-[''] !important;
48
+ content: '_';
39
49
  }
40
- .ds-tabs__list {
41
- @apply list-none m-0 p-0;
42
- &::after {
43
- content: '';
44
- display: block;
45
- clear: both;
46
- }
47
- .ds-tabs__list-item {
48
- @apply relative px-4 py-2 m-0 shadow-none cursor-pointer;
49
- @apply md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2;
50
- @apply print:hidden;
51
- &.ds-tabs__list-item-selected {
52
- @apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:py-4 md:-mt-1;
53
- margin-bottom: -1px;
54
- &:hover {
55
- text-decoration-thickness: 2px;
56
- }
57
- }
58
- }
59
- .ds-tabs__tab {
60
- @apply text-lg no-underline hover:underline focus:underline;
61
- text-underline-offset: 0.1em;
62
- &::after {
63
- @apply absolute top-0 right-0 bottom-0 left-0;
64
- content: '';
65
- }
66
- &:focus {
67
- background-color: var(--color-focus);
68
- outline: 3px solid transparent;
69
- box-shadow: inset 0 0 0 3px var(--color-focus);
70
- outline-offset: 0;
71
- text-decoration-thickness: 0.2rem;
72
- }
73
- }
50
+ &:focus {
51
+ @apply bg-focus underline text-link-active;
52
+ outline: 3px solid transparent;
53
+ box-shadow: inset 0 0 0 3px var(--color-focus);
54
+ outline-offset: 0;
55
+ text-decoration-thickness: 0.2rem;
74
56
  }
75
- .ds-tabs__panel {
76
- @apply bg-base-100 md:hidden block md:px-4 py-4 pt-8 md:border md:border-base-400 mb-0
77
- print:block print:border-0 print:py-3;
78
- border-radius: var(--tabs__panel-border-radius);
79
- &.ds-tabs__panel--visible {
80
- @apply block;
81
- }
57
+ }
58
+ .ds-tabs__panel {
59
+ @apply bg-base-100 md:hidden block md:px-4 py-4 pt-8 md:border md:border-base-400 mb-0
60
+ print:block print:border-0 print:py-3;
61
+ border-radius: var(--tabs__panel-border-radius);
62
+ &.ds-tabs__panel--visible {
63
+ @apply block;
82
64
  }
83
65
  }
@@ -341,19 +341,8 @@ button.ds-link {
341
341
  fill: var(--color-base-content);
342
342
  }
343
343
  }
344
- .ds-code-block__container {
345
- @apply p-4 bg-base-200 border border-base-300 w-full;
346
- & > pre {
347
- @apply bg-transparent p-0 m-0;
348
- font: inherit;
349
- color: inherit;
350
- }
351
- }
352
344
  .ds-table__cell {
353
345
  & > code {
354
346
  @apply border-none;
355
347
  }
356
348
  }
357
- .ds-code-block__content {
358
- @apply text-sm sm:text-base;
359
- }