@digdir/designsystemet-css 0.0.0-next-20240724125515

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.
@@ -0,0 +1,56 @@
1
+ .ds-dropdownmenu {
2
+ --dsc-dropdownmenu-background: var(--ds-color-neutral-background-default);
3
+ --dsc-dropdownmenu-padding: var(--ds-spacing-2);
4
+ --dsc-dropdownmenu-border-radius: min(1rem, var(--ds-border-radius-md));
5
+ --dsc-dropdownmenu-border: 1px solid var(--ds-color-neutral-border-subtle);
6
+ --dsc-dropdownmenu-min-width: 260px;
7
+ --dsc-dropdownmenu-shadow: var(--ds-shadow-md);
8
+ --dsc-dropdownmenu-hr-border-color: var(--ds-color-neutral-border-subtle);
9
+ --dsc-dropdownmenu-item-padding: 0 var(--ds-spacing-4);
10
+ --dsc-dropdownmenu-header-padding: var(--ds-spacing-2) var(--ds-spacing-4);
11
+
12
+ position: relative;
13
+ padding: var(--dsc-dropdownmenu-padding);
14
+ z-index: 1500;
15
+ margin: 0;
16
+ list-style: none;
17
+ border-radius: var(--dsc-dropdownmenu-border-radius);
18
+ box-shadow: var(--dsc-dropdownmenu-shadow);
19
+ background-color: var(--dsc-dropdownmenu-background);
20
+ border: var(--dsc-dropdownmenu-border);
21
+ min-width: var(--dsc-dropdownmenu-min-width);
22
+ }
23
+
24
+ .ds-dropdownmenu--sm {
25
+ --dsc-dropdownmenu-padding: var(--ds-spacing-2);
26
+ --dsc-dropdownmenu-min-width: 240px;
27
+ }
28
+
29
+ .ds-dropdownmenu--md {
30
+ --dsc-dropdownmenu-padding: var(--ds-spacing-3) var(--ds-spacing-2);
31
+ --dsc-dropdownmenu-min-width: 260px;
32
+ }
33
+
34
+ .ds-dropdownmenu--lg {
35
+ --dsc-dropdownmenu-padding: var(--ds-spacing-4) var(--ds-spacing-2);
36
+ --dsc-dropdownmenu-min-width: 280px;
37
+ }
38
+
39
+ .ds-dropdownmenu > hr {
40
+ border-color: var(--dsc-dropdownmenu-hr-border-color) !important;
41
+ }
42
+
43
+ .ds-dropdownmenu__item {
44
+ justify-content: start;
45
+ padding: var(--dsc-dropdownmenu-item-padding);
46
+ }
47
+
48
+ .ds-dropdownmenu__section {
49
+ margin: 0;
50
+ padding: 0;
51
+ list-style: none;
52
+ }
53
+
54
+ .ds-dropdownmenu__heading {
55
+ padding: var(--dsc-dropdownmenu-header-padding);
56
+ }
@@ -0,0 +1,23 @@
1
+ .ds-error-summary {
2
+ --dsc-errorsummary-background: var(--ds-color-danger-surface-default);
3
+ --dsc-errorsummary-border-radius: min(1rem, var(--ds-border-radius-lg));
4
+ --dsc-errorsummary-padding: var(--ds-spacing-6) var(--ds-spacing-8);
5
+ --dsc-errorsummary-link-color: var(--ds-color-neutral-text-default);
6
+ --dsc-errorsummary-heading-color: var(--ds-color-danger-text-default);
7
+
8
+ padding: var(--dsc-errorsummary-padding);
9
+ border-radius: var(--dsc-errorsummary-border-radius);
10
+ background-color: var(--dsc-errorsummary-background);
11
+ }
12
+
13
+ .ds-error-summary a {
14
+ color: var(--dsc-errorsummary-link-color);
15
+ }
16
+
17
+ .ds-error-summary li:last-of-type {
18
+ margin-bottom: 0;
19
+ }
20
+
21
+ .ds-error-summary__heading {
22
+ color: var(--dsc-errorsummary-heading-color);
23
+ }
package/fieldset.css ADDED
@@ -0,0 +1,43 @@
1
+ .ds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ min-width: 0;
6
+ }
7
+
8
+ .ds-fieldset--spacing {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: var(--ds-spacing-2);
12
+ }
13
+
14
+ .ds-fieldset__description {
15
+ color: var(--ds-color-neutral-text-subtle);
16
+ margin-bottom: var(--ds-spacing-2);
17
+ }
18
+
19
+ .ds-fieldset__legend {
20
+ display: contents;
21
+ }
22
+
23
+ .ds-fieldset--readonly .ds-fieldset__legend__content {
24
+ display: inline-flex;
25
+ }
26
+
27
+ .ds-fieldset:not(:has(.ds-fieldset__description)) .ds-fieldset__legend__content {
28
+ margin-bottom: var(--ds-spacing-4);
29
+ }
30
+
31
+ .ds-fieldset--readonly .ds-fieldset__readonly__icon {
32
+ height: 1.2em;
33
+ width: 1.2em;
34
+ }
35
+
36
+ .ds-fieldset:disabled .ds-fieldset__legend,
37
+ .ds-fieldset:disabled .ds-fieldset__description {
38
+ color: var(--ds-color-neutral-border-subtle);
39
+ }
40
+
41
+ .ds-fieldset__error-message {
42
+ display: contents;
43
+ }
package/helptext.css ADDED
@@ -0,0 +1,60 @@
1
+ .ds-helptext__button {
2
+ --dsc-helptext-color: var(--ds-color-neutral-text-default);
3
+ --dsc-helptext-icon-color: var(--ds-color-accent-base-default);
4
+ --dsc-helptext-icon-width: var(--ds-sizing-7);
5
+ --dsc-helptext-icon-height: var(--ds-sizing-7);
6
+
7
+ background-color: transparent;
8
+ border-radius: 50px;
9
+ padding: 0 !important;
10
+ cursor: pointer;
11
+ display: flex;
12
+ border: none;
13
+ min-width: 0;
14
+ min-height: 0;
15
+ }
16
+
17
+ @media print {
18
+ .ds-helptext__button {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+ .ds-helptext__icon--filled {
24
+ display: none;
25
+ }
26
+
27
+ .ds-helptext__icon {
28
+ color: var(--dsc-helptext-icon-color);
29
+ width: var(--dsc-helptext-icon-width);
30
+ height: var(--dsc-helptext-icon-height);
31
+ }
32
+
33
+ .ds-helptext__button:where(:hover, :focus, [data-state^='open']) > .ds-helptext__icon {
34
+ display: none;
35
+ }
36
+
37
+ .ds-helptext__button:where(:hover, :focus, [data-state^='open']) > .ds-helptext__icon--filled {
38
+ display: inline-block;
39
+ }
40
+
41
+ .ds-helptext__content {
42
+ color: var(--dsc-helptext-color);
43
+ width: fit-content;
44
+ max-width: 700px;
45
+ }
46
+
47
+ .ds-helptext--sm .ds-helptext__icon {
48
+ --dsc-helptext-icon-width: var(--ds-sizing-6);
49
+ --dsc-helptext-icon-height: var(--ds-sizing-6);
50
+ }
51
+
52
+ .ds-helptext--md .ds-helptext__icon {
53
+ --dsc-helptext-icon-width: var(--ds-sizing-7);
54
+ --dsc-helptext-icon-height: var(--ds-sizing-7);
55
+ }
56
+
57
+ .ds-helptext--lg .ds-helptext__icon {
58
+ --dsc-helptext-icon-width: var(--ds-sizing-8);
59
+ --dsc-helptext-icon-height: var(--ds-sizing-8);
60
+ }
package/index.css ADDED
@@ -0,0 +1,44 @@
1
+ @charset "UTF-8";
2
+
3
+ @layer ds.reset, ds.theme, ds.base, ds.utilities, ds.components;
4
+
5
+ /** Import order defines ordinal specificity for layers */
6
+ @import url('./baseline/ds-reset.css') layer(ds.reset);
7
+ @import url('./baseline/typography/label.css') layer(ds.base.typography);
8
+ @import url('./baseline/typography/heading.css') layer(ds.base.typography);
9
+ @import url('./baseline/typography/paragraph.css') layer(ds.base.typography);
10
+ @import url('./baseline/typography/ingress.css') layer(ds.base.typography);
11
+ @import url('./baseline/typography/error-message.css') layer(ds.base.typography);
12
+ @import url('./utilities.css') layer(ds.utilities);
13
+ @import url('./box.css') layer(ds.components);
14
+ @import url('./button.css') layer(ds.components);
15
+ @import url('./alert.css') layer(ds.components);
16
+ @import url('./skiplink.css') layer(ds.components);
17
+ @import url('./accordion.css') layer(ds.components);
18
+ @import url('./switch.css') layer(ds.components);
19
+ @import url('./checkbox.css') layer(ds.components);
20
+ @import url('./radio.css') layer(ds.components);
21
+ @import url('./search.css') layer(ds.components);
22
+ @import url('./native-select.css') layer(ds.components);
23
+ @import url('./textfield.css') layer(ds.components);
24
+ @import url('./textarea.css') layer(ds.components);
25
+ @import url('./helptext.css') layer(ds.components);
26
+ @import url('./modal.css') layer(ds.components);
27
+ @import url('./list.css') layer(ds.components);
28
+ @import url('./card.css') layer(ds.components);
29
+ @import url('./link.css') layer(ds.components);
30
+ @import url('./fieldset.css') layer(ds.components);
31
+ @import url('./dropdownmenu.css') layer(ds.components);
32
+ @import url('./chip') layer(ds.components);
33
+ @import url('./divider.css') layer(ds.components);
34
+ @import url('./tabs.css') layer(ds.components);
35
+ @import url('./pagination.css') layer(ds.components);
36
+ @import url('./popover.css') layer(ds.components);
37
+ @import url('./skeleton.css') layer(ds.components);
38
+ @import url('./tag.css') layer(ds.components);
39
+ @import url('./error-summary.css') layer(ds.components);
40
+ @import url('./togglegroup.css') layer(ds.components);
41
+ @import url('./tooltip.css') layer(ds.components);
42
+ @import url('./spinner.css') layer(ds.components);
43
+ @import url('./table.css') layer(ds.components);
44
+ @import url('./combobox.css') layer(ds.components);
package/link.css ADDED
@@ -0,0 +1,58 @@
1
+ .ds-link {
2
+ --dsc-link-color: var(--ds-color-accent-text-subtle);
3
+ --dsc-link-color-hover: var(--ds-color-accent-text-default);
4
+ --dsc-link-color-active: var(--ds-color-accent-text-default);
5
+ --dsc-link-color-active-background: var(--ds-color-accent-surface-default);
6
+ --dsc-link-color-visited: var(--ds-global-purple-12);
7
+ --dsc-link-color-focus: var(--ds-color-focus-inner);
8
+ --dsc-link-color-focus-background: var(--ds-color-focus-outer);
9
+
10
+ position: relative;
11
+ color: var(--dsc-link-color);
12
+ cursor: pointer;
13
+ text-decoration: underline;
14
+ text-decoration-thickness: max(1px, 0.0625rem);
15
+ text-underline-offset: max(5px, 0.25rem);
16
+ display: inline-flex;
17
+ align-items: center;
18
+ gap: var(--ds-spacing-1);
19
+ }
20
+
21
+ .ds-link--accent {
22
+ --dsc-link-color: var(--ds-color-accent-text-subtle);
23
+ --dsc-link-color-hover: var(--ds-color-accent-text-default);
24
+ --dsc-link-color-active: var(--ds-color-accent-text-default);
25
+ --dsc-link-color-active-background: var(--ds-color-accent-surface-default);
26
+ --dsc-link-color-visited: var(--ds-global-purple-12);
27
+ }
28
+
29
+ .ds-link--neutral {
30
+ --dsc-link-color: var(--ds-color-neutral-text-default);
31
+ --dsc-link-color-hover: var(--ds-color-neutral-text-subtle);
32
+ --dsc-link-color-active: var(--ds-color-neutral-text-subtle);
33
+ --dsc-link-color-active-background: var(--ds-color-neutral-surface-default);
34
+ --dsc-link-color-visited: var(--ds-global-purple-12);
35
+ }
36
+
37
+ .ds-link:visited {
38
+ color: var(--dsc-link-color-visited);
39
+ text-decoration: none;
40
+ }
41
+
42
+ .ds-link:hover {
43
+ color: var(--dsc-link-color-hover);
44
+ text-decoration-thickness: max(2px, 0.125rem, 0.12em);
45
+ }
46
+
47
+ .ds-link:focus-visible {
48
+ color: var(--dsc-link-color-focus);
49
+ background: var(--dsc-link-color-focus-background);
50
+ outline: none;
51
+ }
52
+
53
+ .ds-link:active {
54
+ color: var(--dsc-link-color-active);
55
+ background: var(--dsc-link-color-active-background);
56
+ border-radius: min(0.25rem, var(--ds-border-radius-md));
57
+ outline: none;
58
+ }
package/list.css ADDED
@@ -0,0 +1,22 @@
1
+ .ds-list {
2
+ --dsc-list-padding-left: var(--ds-spacing-6);
3
+
4
+ padding-left: var(--dsc-list-padding-left);
5
+ }
6
+
7
+ .ds-list--sm {
8
+ --dsc-list-padding-left: var(--ds-spacing-4);
9
+ }
10
+
11
+ .ds-list--md,
12
+ .ds-list--lg {
13
+ --dsc-list-padding-left: var(--ds-spacing-6);
14
+ }
15
+
16
+ .ds-list__item {
17
+ margin-bottom: var(--ds-spacing-2);
18
+ }
19
+
20
+ .ds-list__item > .ds-list {
21
+ margin-top: var(--ds-spacing-2);
22
+ }
package/modal.css ADDED
@@ -0,0 +1,109 @@
1
+ .ds-modal {
2
+ --dsc-modal-max-width: 650px;
3
+ --dsc-modal-background: var(--ds-color-neutral-background-default);
4
+ --dsc-modal-color: var(--ds-color-neutral-text-default);
5
+ --dsc-modal-backdrop-background: rgb(0 0 0 / 0.5);
6
+ --dsc-modal-header-padding: var(--ds-spacing-6) var(--ds-spacing-18) var(--ds-spacing-2) var(--ds-spacing-6);
7
+ --dsc-modal-footer-padding: var(--ds-spacing-3) var(--ds-spacing-6) var(--ds-spacing-6) var(--ds-spacing-6);
8
+ --dsc-modal-content-padding: var(--ds-spacing-2) var(--ds-spacing-6);
9
+ --dsc-modal-content-max-height: 80vh;
10
+
11
+ padding: 0;
12
+ width: 100%;
13
+ max-width: var(--dsc-modal-max-width);
14
+ border: none;
15
+ border-radius: min(1rem, var(--ds-border-radius-md));
16
+ box-shadow: var(--ds-shadow-xl);
17
+ background-color: var(--dsc-modal-background);
18
+ color: var(--dsc-modal-color);
19
+ }
20
+
21
+ .ds-modal::backdrop {
22
+ background-color: var(--dsc-modal-backdrop-background);
23
+ animation: fade-in 300ms ease-in-out;
24
+ }
25
+
26
+ .ds-modal[open] {
27
+ animation:
28
+ slide-in 300ms ease-in-out,
29
+ fade-in 300ms ease-in-out;
30
+ }
31
+
32
+ .ds-modal > hr {
33
+ margin: var(--ds-spacing-3) 0 !important;
34
+ border-color: var(--ds-color-neutral-border-subtle);
35
+ }
36
+
37
+ .ds-modal--lock-scroll {
38
+ overflow: hidden;
39
+ }
40
+
41
+ @media (max-width: 650px) {
42
+ .ds-modal {
43
+ min-width: 100%;
44
+ max-width: 100%;
45
+ border-radius: 0;
46
+ }
47
+ }
48
+
49
+ @media (prefers-reduced-motion: reduce) {
50
+ .ds-modal[open] {
51
+ animation: none;
52
+ }
53
+
54
+ .ds-modal::backdrop {
55
+ animation: none;
56
+ }
57
+ }
58
+
59
+ .ds-modal__header {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ flex-direction: column;
63
+ padding: var(--dsc-modal-header-padding);
64
+ gap: var(--ds-spacing-1);
65
+ color: var(--dsc-modal-color);
66
+ }
67
+
68
+ .ds-modal__header--no-button {
69
+ --dsc-modal-header-padding: var(--ds-spacing-6) var(--ds-spacing-6) var(--ds-spacing-2) var(--ds-spacing-6);
70
+ }
71
+
72
+ .ds-modal__header__button {
73
+ position: absolute;
74
+ top: var(--ds-spacing-3);
75
+ right: var(--ds-spacing-3);
76
+ }
77
+
78
+ .ds-modal__footer {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: var(--ds-spacing-4);
82
+ padding: var(--dsc-modal-footer-padding);
83
+ }
84
+
85
+ .ds-modal__content {
86
+ padding: var(--dsc-modal-content-padding);
87
+ max-height: var(--dsc-modal-content-max-height);
88
+ overflow-y: auto;
89
+ }
90
+
91
+ @keyframes slide-in {
92
+ 0% {
93
+ transform: translateY(50px);
94
+ }
95
+
96
+ 100% {
97
+ transform: translateY(0);
98
+ }
99
+ }
100
+
101
+ @keyframes fade-in {
102
+ 0% {
103
+ opacity: 0;
104
+ }
105
+
106
+ 100% {
107
+ opacity: 1;
108
+ }
109
+ }
@@ -0,0 +1,106 @@
1
+ .ds-native-select__wrapper {
2
+ position: relative;
3
+ display: grid;
4
+ flex: 0 1 auto;
5
+ }
6
+
7
+ /* chevron for native select */
8
+ .ds-native-select__wrapper::after {
9
+ content: '';
10
+ position: absolute;
11
+ background-color: var(--ds-color-neutral-text-default);
12
+ pointer-events: none;
13
+ top: 50%;
14
+ right: var(--ds-spacing-2);
15
+ transform: translateY(-50%);
16
+ width: 1.5em;
17
+ height: 1.5em;
18
+ mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMWVtJyBoZWlnaHQ9JzFlbScgdmlld0JveD0nMCAwIDI0IDI0JyBmaWxsPSdub25lJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGZvY3VzYWJsZT0nZmFsc2UnIHJvbGU9J2ltZyc+PHBhdGggZmlsbC1ydWxlPSdldmVub2RkJyBjbGlwLXJ1bGU9J2V2ZW5vZGQnIGQ9J001Ljk3IDkuNDdhLjc1Ljc1IDAgMCAxIDEuMDYgMEwxMiAxNC40NGw0Ljk3LTQuOTdhLjc1Ljc1IDAgMSAxIDEuMDYgMS4wNmwtNS41IDUuNWEuNzUuNzUgMCAwIDEtMS4wNiAwbC01LjUtNS41YS43NS43NSAwIDAgMSAwLTEuMDZaJyBmaWxsPSdjdXJyZW50Q29sb3InPjwvcGF0aD48L3N2Zz4=');
19
+ mask-size: contain;
20
+ }
21
+
22
+ .ds-native-select {
23
+ position: relative;
24
+ font-family: inherit;
25
+ box-sizing: border-box;
26
+ padding: 0 var(--ds-spacing-2);
27
+ border: solid 1px var(--ds-color-neutral-border-default);
28
+ border-radius: var(--ds-border-radius-md);
29
+ background-color: var(--ds-color-neutral-background-default);
30
+ color: var(--ds-color-neutral-text-default);
31
+ appearance: none;
32
+ }
33
+
34
+ @media (hover: hover) and (pointer: fine) {
35
+ .ds-native-select:not(:focus-visible, :disabled, [aria-disabled]):hover {
36
+ border-color: var(--ds-color-accent-border-strong);
37
+ box-shadow: inset 0 0 0 1px var(--ds-color-accent-border-strong);
38
+ }
39
+ }
40
+
41
+ .ds-native-select.ds-native-select--multiple {
42
+ background-image: none;
43
+ }
44
+
45
+ .ds-native-select--sm {
46
+ padding: 0 var(--ds-spacing-2);
47
+ padding-right: var(--ds-spacing-8);
48
+ height: var(--ds-sizing-10);
49
+ }
50
+
51
+ .ds-native-select--md {
52
+ padding: 0 var(--ds-spacing-3);
53
+ padding-right: var(--ds-spacing-10);
54
+ height: var(--ds-sizing-12);
55
+ }
56
+
57
+ .ds-native-select--lg {
58
+ padding: 0 var(--ds-spacing-4);
59
+ padding-right: var(--ds-spacing-12);
60
+ height: var(--ds-sizing-14);
61
+ }
62
+
63
+ .ds-native-select--container {
64
+ display: grid;
65
+ gap: var(--ds-spacing-2);
66
+ }
67
+
68
+ .ds-native-select--container:has(.ds-native-select:disabled) {
69
+ opacity: var(--ds-disabled-opacity);
70
+ }
71
+
72
+ .ds-native-select:disabled {
73
+ cursor: not-allowed;
74
+ }
75
+
76
+ .ds-native-select--readonly .ds-native-select {
77
+ background: var(--ds-color-neutral-background-subtle);
78
+ border-color: var(--ds-color-neutral-border-strong);
79
+ }
80
+
81
+ .ds-native-select--error > .ds-native-select:not(:focus-visible) {
82
+ border-color: var(--ds-color-danger-border-default);
83
+ box-shadow: inset 0 0 0 1px var(--ds-color-danger-border-default);
84
+ }
85
+
86
+ .ds-native-select__readonly__icon {
87
+ height: 1.2em;
88
+ width: 1.2em;
89
+ }
90
+
91
+ .ds-native-select__error-message:empty {
92
+ display: none;
93
+ }
94
+
95
+ .ds-native-select__label {
96
+ min-width: min-content;
97
+ display: inline-flex;
98
+ flex-direction: row;
99
+ gap: var(--ds-spacing-1);
100
+ align-items: center;
101
+ }
102
+
103
+ .ds-native-select__description {
104
+ color: var(--ds-color-neutral-text-subtle);
105
+ margin-top: calc(var(--ds-spacing-2) * -1);
106
+ }
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@digdir/designsystemet-css",
3
+ "version": "0.0.0-next-20240724125515",
4
+ "description": "CSS for Designsystemet",
5
+ "author": "Designsystemet team",
6
+ "repository": "https://github.com/digdir/designsystemet",
7
+ "license": "MIT",
8
+ "main": "./dist/index.css",
9
+ "files": [
10
+ "dist",
11
+ "*.css"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "browserslist": [
17
+ "cover 90% in NO",
18
+ "last 2 versions",
19
+ "Firefox ESR",
20
+ "not dead",
21
+ "not ie <= 11",
22
+ "not op_mini all"
23
+ ],
24
+ "keywords": [
25
+ "css",
26
+ "designsystem",
27
+ "designsystemet",
28
+ "digdir"
29
+ ],
30
+ "scripts": {
31
+ "build": "rimraf dist && postcss ./*.css --base . --dir ./dist",
32
+ "test": "echo \"Error: no test specified\" && exit 1"
33
+ },
34
+ "devDependencies": {
35
+ "autoprefixer": "^10.4.19",
36
+ "cssnano": "^6.0.2",
37
+ "postcss": "^8.4.35",
38
+ "postcss-cli": "^11.0.0",
39
+ "postcss-import": "^16.0.1",
40
+ "rimraf": "^5.0.5"
41
+ }
42
+ }
package/pagination.css ADDED
@@ -0,0 +1,67 @@
1
+ .ds-pagination {
2
+ --dsc-pagination-listitem-margin: var(--ds-spacing-4);
3
+ --dsc-pagination-ellipsis-width: var(--ds-sizing-12);
4
+ --dsc-pagination-chevron-margin: var(--ds-spacing-2);
5
+
6
+ list-style-type: none;
7
+ display: flex;
8
+ padding: 0;
9
+ margin: 0;
10
+ position: relative;
11
+ width: fit-content;
12
+ }
13
+
14
+ .ds-pagination--hidden {
15
+ visibility: hidden;
16
+ }
17
+
18
+ .ds-pagination--sm {
19
+ --dsc-pagination-chevron-margin: var(--ds-spacing-2);
20
+ }
21
+
22
+ .ds-pagination--md {
23
+ --dsc-pagination-chevron-margin: var(--ds-spacing-2);
24
+ }
25
+
26
+ .ds-pagination--lg {
27
+ --dsc-pagination-chevron-margin: var(--ds-spacing-2);
28
+ }
29
+
30
+ .ds-pagination li:first-child {
31
+ margin-right: var(--dsc-pagination-chevron-margin);
32
+ }
33
+
34
+ .ds-pagination li:last-child {
35
+ margin-left: var(--dsc-pagination-chevron-margin);
36
+ }
37
+
38
+ .ds-pagination__item {
39
+ flex: 1;
40
+ margin-right: var(--dsc-pagination-listitem-margin);
41
+ }
42
+
43
+ .ds-pagination--sm .ds-pagination__item {
44
+ --dsc-pagination-listitem-margin: var(--ds-spacing-2);
45
+ --dsc-pagination-ellipsis-width: var(--ds-sizing-10);
46
+ }
47
+
48
+ .ds-pagination--md .ds-pagination__item {
49
+ --dsc-pagination-listitem-margin: var(--ds-spacing-4);
50
+ --dsc-pagination-ellipsis-width: var(--ds-sizing-12);
51
+ }
52
+
53
+ .ds-pagination--lg .ds-pagination__item {
54
+ --dsc-pagination-listitem-margin: var(--ds-spacing-6);
55
+ --dsc-pagination-ellipsis-width: var(--ds-sizing-14);
56
+ }
57
+
58
+ .ds-pagination__item.ds-pagination--compact {
59
+ --dsc-pagination-listitem-margin: var(--ds-spacing-0);
60
+ --dsc-pagination-chevron-margin: var(--ds-spacing-1);
61
+ }
62
+
63
+ .ds-pagination__ellipsis {
64
+ margin-top: 0.5em;
65
+ text-align: center;
66
+ width: var(--dsc-pagination-ellipsis-width);
67
+ }