@navikt/ds-css 1.3.34 → 1.3.37-alpha.1

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/loader.css DELETED
@@ -1,124 +0,0 @@
1
- :root,
2
- :host {
3
- --navds-loader-color-foreground: var(--navds-global-color-gray-400);
4
- --navds-loader-color-background: rgb(0 0 0 / 0.05);
5
- --navds-loader-color-neutral-foreground: var(--navds-global-color-gray-400);
6
- --navds-loader-color-interaction-foreground: var(--navds-global-color-blue-500);
7
- --navds-loader-color-inverted-foreground: var(--navds-global-color-white);
8
- --navds-loader-color-inverted-background: rgb(255 255 255 / 0.25);
9
- --navds-loader-color-transparent-background: transparent;
10
- }
11
-
12
- .navds-loader {
13
- width: 1.5rem;
14
- display: inline-block;
15
- position: relative;
16
- animation: loader-rotate 1.8s linear infinite;
17
- stroke-width: 6;
18
-
19
- --navds-loader-background-stroke-width: 5.9;
20
- }
21
-
22
- .navds-loader__foreground {
23
- animation: loader-dasharray 1.8s ease-in-out infinite;
24
- stroke-dasharray: 80px, 200px;
25
- stroke-dashoffset: 0;
26
- stroke: var(--navds-loader-color-foreground);
27
- }
28
-
29
- .navds-loader__background {
30
- stroke: var(--navds-loader-color-background);
31
- stroke-width: var(--navds-loader-background-stroke-width);
32
- }
33
-
34
- .navds-loader--neutral .navds-loader__foreground {
35
- stroke: var(--navds-loader-color-neutral-foreground);
36
- }
37
-
38
- .navds-loader--interaction .navds-loader__foreground {
39
- stroke: var(--navds-loader-color-interaction-foreground);
40
- }
41
-
42
- .navds-loader--inverted .navds-loader__foreground {
43
- stroke: var(--navds-loader-color-inverted-foreground);
44
- }
45
-
46
- .navds-loader--inverted .navds-loader__background {
47
- stroke: var(--navds-loader-color-inverted-background);
48
- }
49
-
50
- .navds-loader--transparent .navds-loader__background {
51
- stroke: var(--navds-loader-color-transparent-background);
52
- }
53
-
54
- .navds-loader--3xlarge {
55
- width: 5.5rem;
56
- stroke-width: 5;
57
-
58
- --navds-loader-background-stroke-width: 4.8;
59
- }
60
-
61
- .navds-loader--2xlarge {
62
- width: 4rem;
63
- stroke-width: 6;
64
-
65
- --navds-loader-background-stroke-width: 5.8;
66
- }
67
-
68
- .navds-loader--xlarge {
69
- width: 2.5rem;
70
- stroke-width: 6;
71
-
72
- --navds-loader-background-stroke-width: 5.8;
73
- }
74
-
75
- .navds-loader--large {
76
- width: 2rem;
77
- stroke-width: 7;
78
-
79
- --navds-loader-background-stroke-width: 6.8;
80
- }
81
-
82
- .navds-loader--medium {
83
- width: 1.5rem;
84
- stroke-width: 7;
85
-
86
- --navds-loader-background-stroke-width: 6.8;
87
- }
88
-
89
- .navds-loader--small {
90
- width: 1.25rem;
91
- stroke-width: 8;
92
-
93
- --navds-loader-background-stroke-width: 7.8;
94
- }
95
-
96
- .navds-loader--xsmall {
97
- width: 1rem;
98
- stroke-width: 8;
99
-
100
- --navds-loader-background-stroke-width: 7.8;
101
- }
102
-
103
- @keyframes loader-rotate {
104
- 100% {
105
- transform: rotate(360deg);
106
- }
107
- }
108
-
109
- @keyframes loader-dasharray {
110
- 0% {
111
- stroke-dasharray: 1px, 200px;
112
- stroke-dashoffset: 0;
113
- }
114
-
115
- 50% {
116
- stroke-dasharray: 100px, 200px;
117
- stroke-dashoffset: -15px;
118
- }
119
-
120
- 100% {
121
- stroke-dasharray: 100px, 200px;
122
- stroke-dashoffset: -120px;
123
- }
124
- }
package/modal.css DELETED
@@ -1,67 +0,0 @@
1
- :root,
2
- :host {
3
- --navds-modal-color-background: var(--navds-semantic-color-component-background-light);
4
- --navds-modal-color-overlay: rgb(38 38 38 / 0.7);
5
- }
6
-
7
- .ReactModal__Body--open {
8
- overflow: hidden;
9
- }
10
-
11
- .navds-modal {
12
- background-color: var(--navds-modal-color-background);
13
- border-radius: var(--navds-border-radius-medium);
14
- display: block;
15
- position: relative;
16
- overflow: auto;
17
- max-height: 100%;
18
- }
19
-
20
- .navds-modal__content {
21
- padding: var(--navds-spacing-4);
22
- }
23
-
24
- .navds-modal:focus,
25
- .navds-modal--focus {
26
- box-shadow: var(--navds-shadow-focus);
27
- outline: none;
28
- }
29
-
30
- .navds-modal__overlay {
31
- position: fixed;
32
- z-index: var(--navds-z-index-modal);
33
- top: 0;
34
- bottom: 0;
35
- left: 0;
36
- right: 0;
37
- background-color: var(--navds-modal-color-overlay);
38
- padding: var(--navds-spacing-4);
39
- display: flex;
40
- align-items: center;
41
- justify-content: center;
42
- }
43
-
44
- .navds-modal__button--shake {
45
- transform: rotate(0deg);
46
- transition: transform 100ms cubic-bezier(0.82, 2, 1, 0.3);
47
- }
48
-
49
- /* prettier-ignore */
50
- .navds-modal__overlay:active > .navds-modal:not(:active) > .navds-modal__button--shake {
51
- transform: rotate(10deg);
52
- transition: transform 100ms cubic-bezier(0.82, -2, 1, 0.3);
53
- }
54
-
55
- .navds-modal__button {
56
- position: absolute;
57
- top: var(--navds-spacing-4);
58
- right: var(--navds-spacing-4);
59
- display: flex;
60
- padding: var(--navds-spacing-2);
61
- }
62
-
63
- .navds-modal__button svg {
64
- /* 24x24px */
65
- height: 1.5rem;
66
- width: 1.5rem;
67
- }
package/pagination.css DELETED
@@ -1,66 +0,0 @@
1
- :root,
2
- :host {
3
- --navds-pagination-color-background-selected: var(--navds-semantic-color-interaction-primary-selected);
4
- --navds-pagination-color-text-selected: var(--navds-semantic-color-text-inverted);
5
- }
6
-
7
- .navds-pagination__list {
8
- margin: 0;
9
- padding: 0;
10
- list-style: none;
11
- display: flex;
12
- gap: var(--navds-spacing-3);
13
- }
14
-
15
- .navds-pagination__ellipsis {
16
- display: flex;
17
- align-items: center;
18
- justify-content: center;
19
- width: var(--navds-spacing-12);
20
- cursor: default;
21
- }
22
-
23
- .navds-pagination--small .navds-pagination__ellipsis {
24
- width: var(--navds-spacing-8);
25
- }
26
-
27
- .navds-pagination--xsmall .navds-pagination__ellipsis {
28
- width: var(--navds-spacing-6);
29
- }
30
-
31
- .navds-pagination__item {
32
- color: var(--navds-semantic-color-text);
33
- }
34
-
35
- .navds-pagination--medium .navds-pagination__item {
36
- border-radius: var(--navds-border-radius-medium);
37
- }
38
-
39
- .navds-pagination__item[aria-current="true"] {
40
- background-color: var(--navds-pagination-color-background-selected);
41
- color: var(--navds-pagination-color-text-selected);
42
- }
43
-
44
- .navds-pagination__item[aria-current="true"]:focus {
45
- box-shadow: inset 0 0 0 1px var(--navds-button-color-tertiary-border-active), var(--navds-shadow-focus);
46
- }
47
-
48
- .navds-pagination__prev-next {
49
- display: flex;
50
- align-items: center;
51
- gap: var(--navds-spacing-1);
52
- }
53
-
54
- .navds-pagination--small .navds-pagination__prev-next:where(.navds-pagination--prev-next--with-text) {
55
- padding-left: 0.375rem;
56
- padding-right: 0.375rem;
57
- }
58
-
59
- .navds-pagination--xsmall .navds-pagination__prev-next:where(.navds-pagination--prev-next--with-text) {
60
- padding-left: 0.125rem;
61
- padding-right: 0.125rem;
62
- }
63
-
64
- .navds-pagination--invisible {
65
- visibility: hidden;
66
- }
package/panel.css DELETED
@@ -1,16 +0,0 @@
1
- :root,
2
- :host {
3
- --navds-panel-color-background: var(--navds-semantic-color-component-background-light);
4
- --navds-panel-color-border: var(--navds-semantic-color-border-muted);
5
- }
6
-
7
- .navds-panel {
8
- background-color: var(--navds-panel-color-background);
9
- padding: var(--navds-spacing-4);
10
- border-radius: var(--navds-border-radius-small);
11
- border: 1px solid transparent;
12
- }
13
-
14
- .navds-panel--border {
15
- border-color: var(--navds-panel-color-border);
16
- }
package/popover.css DELETED
@@ -1,59 +0,0 @@
1
- :root,
2
- :host {
3
- --navds-popover-color-background: var(--navds-semantic-color-component-background-light);
4
- --navds-popover-color-border: var(--navds-semantic-color-border-muted);
5
- }
6
-
7
- .navds-popover {
8
- z-index: var(--navds-z-index-popover);
9
- background-color: var(--navds-popover-color-background);
10
- box-shadow: var(--navds-shadow-medium);
11
- border: 1px solid;
12
- border-color: var(--navds-popover-color-border);
13
- border-radius: var(--navds-border-radius-medium);
14
- }
15
-
16
- .navds-popover__content {
17
- padding: var(--navds-spacing-4);
18
- }
19
-
20
- .navds-popover--hidden {
21
- display: none;
22
- }
23
-
24
- .navds-popover:focus {
25
- outline: none;
26
- box-shadow: var(--navds-shadow-focus);
27
- }
28
-
29
- .navds-popover__arrow {
30
- position: absolute;
31
- z-index: -1;
32
- transform: rotate(45deg);
33
- background-color: var(--navds-popover-color-background);
34
- border: 1px solid;
35
- border-color: var(--navds-popover-color-border);
36
- width: 1rem;
37
- height: 1rem;
38
- }
39
-
40
- .navds-popover[data-placement^="top"] > .navds-popover__arrow {
41
- border-left-color: transparent;
42
- border-top-color: transparent;
43
- }
44
-
45
- /* prettier-ignore */
46
- .navds-popover[data-placement^="bottom"] > .navds-popover__arrow {
47
- border-bottom-color: transparent;
48
- border-right-color: transparent;
49
- }
50
-
51
- .navds-popover[data-placement^="left"] > .navds-popover__arrow {
52
- border-left-color: transparent;
53
- border-bottom-color: transparent;
54
- }
55
-
56
- .navds-popover[data-placement^="right"] > .navds-popover__arrow {
57
- border-right-color: transparent;
58
- border-top-color: transparent;
59
- }
package/read-more.css DELETED
@@ -1,63 +0,0 @@
1
- .navds-read-more__button {
2
- cursor: pointer;
3
- margin: 0;
4
- border: none;
5
- background: none;
6
- display: flex;
7
- align-items: flex-start;
8
- gap: 0.125rem;
9
- color: var(--navds-semantic-color-link);
10
- border-radius: var(--navds-border-radius-small);
11
- padding: var(--navds-spacing-1) var(--navds-spacing-1) var(--navds-spacing-1) 2px;
12
- text-align: start;
13
- }
14
-
15
- .navds-read-more--small .navds-read-more__button {
16
- padding: 2px var(--navds-spacing-1) 2px 2px;
17
- }
18
-
19
- .navds-read-more__button:hover {
20
- background-color: rgba(38 38 38 / 0.06);
21
- }
22
-
23
- .navds-read-more__button:active {
24
- background-color: rgba(38 38 38 / 0.1);
25
- }
26
-
27
- .navds-read-more__button:focus {
28
- outline: none;
29
- box-shadow: var(--navds-shadow-focus);
30
- }
31
-
32
- .navds-read-more__content {
33
- margin-top: var(--navds-spacing-1);
34
- border-left: 2px solid rgba(38 38 38 / 0.36);
35
- margin-left: 11px;
36
- padding-left: 11px;
37
- }
38
-
39
- .navds-read-more__expand-icon {
40
- font-size: 1.25rem;
41
- height: 1.5rem;
42
- flex-shrink: 0;
43
- }
44
-
45
- .navds-read-more--small .navds-read-more__expand-icon {
46
- height: 1.25rem;
47
- }
48
-
49
- .navds-read-more--open > .navds-read-more__button > .navds-read-more__expand-icon {
50
- transform: rotate(-180deg);
51
- }
52
-
53
- .navds-read-more__expand-icon--filled {
54
- display: none;
55
- }
56
-
57
- .navds-read-more__button:hover > .navds-read-more__expand-icon.navds-read-more__expand-icon--filled {
58
- display: inherit;
59
- }
60
-
61
- .navds-read-more__button:hover > .navds-read-more__expand-icon {
62
- display: none;
63
- }
package/stepper.css DELETED
@@ -1,222 +0,0 @@
1
- .navds-stepper {
2
- --navds-stepper-circle-size: 1.75rem;
3
- --navds-stepper-border-width: 2px;
4
- --navds-stepper-line-length: 1rem;
5
-
6
- color: var(--navds-semantic-color-interaction-primary);
7
- font-weight: 600;
8
- line-height: 1;
9
- list-style: none;
10
- padding-left: 0;
11
- margin: 0;
12
- }
13
-
14
- .navds-stepper--horizontal {
15
- display: flex;
16
- align-items: flex-start;
17
- text-align: center;
18
- }
19
-
20
- .navds-stepper__item {
21
- display: grid;
22
- grid-template-rows:
23
- [line-1] auto [step-start] var(--navds-stepper-circle-size)
24
- [line-2 step-end] auto;
25
- grid-template-columns: var(--navds-stepper-circle-size) auto;
26
- justify-items: flex-start;
27
- gap: 0.5rem;
28
- }
29
-
30
- .navds-stepper__line {
31
- background-color: var(--navds-semantic-color-border-muted);
32
- width: var(--navds-stepper-border-width);
33
- height: 100%;
34
- min-height: var(--navds-stepper-line-length);
35
- justify-self: center;
36
- grid-column: 1;
37
- }
38
-
39
- .navds-stepper__step--behind.navds-stepper__step--completed + .navds-stepper__line {
40
- background-color: var(--navds-global-color-blue-500);
41
- }
42
-
43
- .navds-stepper__line--1 {
44
- grid-row: line-1;
45
- display: none;
46
- }
47
-
48
- .navds-stepper__line--2 {
49
- grid-row: line-2;
50
- }
51
-
52
- :where(.navds-stepper__item:last-of-type) .navds-stepper__line--2 {
53
- display: none;
54
- }
55
-
56
- .navds-stepper__step {
57
- grid-row: 2 / -1;
58
- grid-column: 1 / -1;
59
- display: grid;
60
- grid-template-columns: [circle] var(--navds-stepper-circle-size) [content] auto;
61
- gap: var(--navds-spacing-2);
62
- justify-content: flex-start;
63
- text-decoration: none;
64
- cursor: pointer;
65
- padding: var(--navds-stepper-border-width);
66
- margin: calc(var(--navds-stepper-border-width) * -1) calc(var(--navds-stepper-border-width) * -1) 1.75rem;
67
- }
68
-
69
- button.navds-stepper__step {
70
- appearance: none;
71
- border: none;
72
- background-color: transparent;
73
- font: inherit;
74
- color: inherit;
75
- text-align: inherit;
76
- }
77
-
78
- .navds-stepper__step--non-interactive {
79
- color: var(--navds-global-color-gray-600);
80
- cursor: default;
81
- }
82
-
83
- :where(.navds-stepper__step):focus {
84
- outline: none;
85
- box-shadow: var(--navds-shadow-focus);
86
- isolation: isolate;
87
- }
88
-
89
- .navds-stepper__circle {
90
- grid-column: circle;
91
- display: inline-grid;
92
- place-items: center;
93
- flex-shrink: 0;
94
- width: var(--navds-stepper-circle-size);
95
- height: var(--navds-stepper-circle-size);
96
- border: var(--navds-stepper-border-width) solid currentColor;
97
- border-radius: var(--navds-border-radius-full);
98
- line-height: 1;
99
- }
100
-
101
- .navds-stepper__circle--success {
102
- border: none;
103
- background: none;
104
- font-size: 28px;
105
- }
106
-
107
- .navds-stepper__content {
108
- min-width: fit-content;
109
- line-height: 1.5;
110
- grid-column: content;
111
- padding-top: 0.035rem;
112
- }
113
-
114
- /* Horizontal */
115
- :where(.navds-stepper--horizontal) .navds-stepper__item {
116
- flex: 1 1 100%;
117
- grid-template-columns:
118
- [line-1-start] 1fr [step-start] auto [line-1-end] var(--navds-stepper-circle-size)
119
- [line-2-start] auto [step-end] 1fr [line-2-end];
120
- grid-template-rows: var(--navds-stepper-circle-size) auto;
121
- }
122
-
123
- :where(.navds-stepper--horizontal) .navds-stepper__line {
124
- height: var(--navds-stepper-border-width);
125
- width: 100%;
126
- min-height: auto;
127
- grid-row: 1;
128
- display: block;
129
- align-self: center;
130
- }
131
-
132
- :where(.navds-stepper--horizontal) .navds-stepper__line--1 {
133
- grid-column: line-1;
134
- }
135
-
136
- :where(.navds-stepper--horizontal) .navds-stepper__line--2 {
137
- grid-column: line-2;
138
- }
139
-
140
- :where(.navds-stepper--horizontal .navds-stepper__item:first-of-type) .navds-stepper__line--1,
141
- :where(.navds-stepper--horizontal .navds-stepper__item:last-of-type) .navds-stepper__line--2 {
142
- visibility: hidden;
143
- }
144
-
145
- :where(.navds-stepper--horizontal) .navds-stepper__step {
146
- grid-row: 1 / -1;
147
- grid-column: step;
148
- display: grid;
149
- grid-template-rows: [circle] var(--navds-stepper-circle-size) [content] auto;
150
- grid-template-columns:
151
- [content-start] auto [circle] var(--navds-stepper-circle-size)
152
- [content-end] auto;
153
- justify-items: center;
154
- align-items: center;
155
- margin-bottom: 0;
156
- }
157
-
158
- :where(.navds-stepper--horizontal) .navds-stepper__circle {
159
- grid-row: circle;
160
- grid-column: 2;
161
- }
162
-
163
- :where(.navds-stepper--horizontal) .navds-stepper__content {
164
- grid-row: content;
165
- grid-column: 1 / -1;
166
- max-width: 24ch;
167
- }
168
-
169
- /* Active step */
170
- :where(.navds-stepper__step--active) .navds-stepper__content {
171
- color: var(--navds-semantic-color-interaction-primary-selected);
172
- }
173
-
174
- :where(.navds-stepper__step:hover) .navds-stepper__content {
175
- text-decoration: underline;
176
- }
177
-
178
- :where(.navds-stepper__step--non-interactive:hover, .navds-stepper__step--active:hover) .navds-stepper__content {
179
- text-decoration: none;
180
- }
181
-
182
- :where(.navds-stepper__step--active) .navds-stepper__circle {
183
- background-color: var(--navds-semantic-color-interaction-primary-selected);
184
- border-color: var(--navds-semantic-color-interaction-primary-selected);
185
- color: var(--navds-semantic-color-text-inverted);
186
- }
187
-
188
- :where(.navds-stepper__step:not(.navds-stepper__step--active):hover) .navds-stepper__circle {
189
- background-color: var(--navds-semantic-color-interaction-primary-hover-subtle);
190
- }
191
-
192
- /* Non-interactive */
193
- :where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__content {
194
- color: var(--navds-global-color-gray-900);
195
- }
196
-
197
- .navds-stepper__step--non-interactive.navds-stepper__step--behind.navds-stepper__step--completed + .navds-stepper__line {
198
- background-color: var(--navds-global-color-gray-600);
199
- }
200
-
201
- :where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__circle {
202
- background-color: var(--navds-global-color-gray-900);
203
- border-color: var(--navds-global-color-gray-900);
204
- color: var(--navds-global-color-white);
205
- }
206
-
207
- :where(.navds-stepper__step--non-interactive:hover) .navds-stepper__circle {
208
- background-color: transparent;
209
- }
210
-
211
- :where(.navds-stepper__step--non-interactive.navds-stepper__step--active:hover) .navds-stepper__circle {
212
- background-color: var(--navds-global-color-gray-900);
213
- }
214
-
215
- :where(.navds-stepper__step--completed.navds-stepper__step--active) .navds-stepper__circle {
216
- background-color: inherit;
217
- color: var(--navds-global-color-deepblue-500);
218
- }
219
-
220
- :where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive) .navds-stepper__circle {
221
- color: var(--navds-global-color-gray-900);
222
- }