@fremtind/jokul 1.4.1 → 1.5.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/build/build-stats.html +1 -1
- package/build/cjs/components/card/CardImage.cjs.map +1 -1
- package/build/cjs/components/card/CardImage.d.cts +2 -1
- package/build/cjs/components/cookie-consent/CookieConsent.cjs +1 -1
- package/build/cjs/components/cookie-consent/CookieConsent.cjs.map +1 -1
- package/build/cjs/components/feedback/questions/SmileyQuestion.cjs +1 -1
- package/build/cjs/components/feedback/questions/SmileyQuestion.cjs.map +1 -1
- package/build/cjs/components/help/Help.cjs +1 -1
- package/build/cjs/components/help/Help.cjs.map +1 -1
- package/build/cjs/components/image/Image.cjs +1 -1
- package/build/cjs/components/image/Image.cjs.map +1 -1
- package/build/cjs/components/image/Image.d.cts +1 -2
- package/build/cjs/core/tokens/style-dictionary/build.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/build.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/build.d.cts +0 -0
- package/build/cjs/core/tokens/style-dictionary/config.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/config.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/config.d.cts +4 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/filters/index.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/index.d.cts +6 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.d.cts +3 -0
- package/build/cjs/core/tokens/style-dictionary/register.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/register.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/register.d.cts +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/index.d.cts +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs +2 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs.map +1 -0
- package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.d.cts +3 -0
- package/build/cjs/core/tokens.cjs +1 -1
- package/build/cjs/core/tokens.cjs.map +1 -1
- package/build/cjs/core/tokens.d.cts +15 -52
- package/build/cjs/tailwind/colors.cjs.map +1 -1
- package/build/cjs/tailwind/colors.d.cts +1 -2
- package/build/es/components/card/CardImage.d.ts +2 -1
- package/build/es/components/card/CardImage.js.map +1 -1
- package/build/es/components/cookie-consent/CookieConsent.js +1 -1
- package/build/es/components/cookie-consent/CookieConsent.js.map +1 -1
- package/build/es/components/feedback/questions/SmileyQuestion.js +1 -1
- package/build/es/components/feedback/questions/SmileyQuestion.js.map +1 -1
- package/build/es/components/help/Help.js +1 -1
- package/build/es/components/help/Help.js.map +1 -1
- package/build/es/components/image/Image.d.ts +1 -2
- package/build/es/components/image/Image.js +1 -1
- package/build/es/components/image/Image.js.map +1 -1
- package/build/es/core/tokens/style-dictionary/build.d.ts +0 -0
- package/build/es/core/tokens/style-dictionary/build.js +2 -0
- package/build/es/core/tokens/style-dictionary/build.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/config.d.ts +4 -0
- package/build/es/core/tokens/style-dictionary/config.js +2 -0
- package/build/es/core/tokens/style-dictionary/config.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/filters/index.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/filters/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/filters/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/index.d.ts +6 -0
- package/build/es/core/tokens/style-dictionary/formats/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js +2 -0
- package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/register.d.ts +1 -0
- package/build/es/core/tokens/style-dictionary/register.js +2 -0
- package/build/es/core/tokens/style-dictionary/register.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.d.ts +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.js +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/index.js.map +1 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.d.ts +3 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js +2 -0
- package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js.map +1 -0
- package/build/es/core/tokens.d.ts +15 -52
- package/build/es/core/tokens.js +1 -1
- package/build/es/core/tokens.js.map +1 -1
- package/build/es/tailwind/colors.d.ts +1 -2
- package/build/es/tailwind/colors.js.map +1 -1
- package/package.json +3 -2
- package/styles/components/autosuggest/autosuggest.css +8 -6
- package/styles/components/breadcrumb/breadcrumb.css +4 -2
- package/styles/components/button/button.css +7 -2
- package/styles/components/button/button.min.css +1 -1
- package/styles/components/button/button.scss +4 -0
- package/styles/components/card/card.css +9 -5
- package/styles/components/card/card.min.css +1 -1
- package/styles/components/card/card.scss +7 -4
- package/styles/components/checkbox/checkbox.css +181 -179
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +189 -180
- package/styles/components/checkbox-panel/checkbox-panel.css +60 -54
- package/styles/components/checkbox-panel/checkbox-panel.min.css +3 -1
- package/styles/components/checkbox-panel/checkbox-panel.scss +58 -54
- package/styles/components/checkbox-panel/development/styles.css +4 -2
- package/styles/components/chip/chip.css +4 -2
- package/styles/components/combobox/combobox.css +6 -4
- package/styles/components/cookie-consent/cookie-consent.css +4 -2
- package/styles/components/countdown/countdown.css +34 -31
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/countdown/countdown.scss +14 -12
- package/styles/components/datepicker/datepicker.css +8 -6
- package/styles/components/description-list/description-list.css +38 -34
- package/styles/components/description-list/description-list.min.css +1 -1
- package/styles/components/description-list/description-list.scss +18 -16
- package/styles/components/expander/expandable.css +4 -2
- package/styles/components/feedback/feedback.css +6 -4
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file/file.css +4 -2
- package/styles/components/file-input/file-input.css +219 -217
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/help/help.css +6 -16
- package/styles/components/help/help.min.css +1 -1
- package/styles/components/help/help.scss +2 -17
- package/styles/components/icon/icon.css +128 -130
- package/styles/components/icon/icon.min.css +1 -1
- package/styles/components/icon/icon.scss +96 -92
- package/styles/components/icon-button/icon-button.css +51 -47
- package/styles/components/icon-button/icon-button.min.css +1 -1
- package/styles/components/icon-button/icon-button.scss +26 -24
- package/styles/components/image/image.css +31 -27
- package/styles/components/image/image.min.css +1 -1
- package/styles/components/image/image.scss +27 -25
- package/styles/components/input-group/input-group.css +6 -4
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/link/link.css +6 -4
- package/styles/components/link/link.min.css +1 -1
- package/styles/components/link/link.scss +2 -3
- package/styles/components/link-list/link-list.css +4 -2
- package/styles/components/list/list.css +66 -62
- package/styles/components/list/list.min.css +1 -1
- package/styles/components/list/list.scss +69 -67
- package/styles/components/loader/loader.css +98 -95
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/loader.scss +91 -88
- package/styles/components/loader/skeleton-loader.css +119 -121
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +128 -126
- package/styles/components/logo/logo.css +83 -83
- package/styles/components/logo/logo.min.css +1 -1
- package/styles/components/logo/logo.scss +71 -67
- package/styles/components/menu/_menu-divider.scss +7 -5
- package/styles/components/menu/_menu-item.scss +55 -53
- package/styles/components/menu/menu.css +121 -119
- package/styles/components/menu/menu.min.css +1 -1
- package/styles/components/menu/menu.scss +28 -24
- package/styles/components/message/message.css +6 -4
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/modal/modal.css +104 -108
- package/styles/components/modal/modal.min.css +1 -1
- package/styles/components/modal/modal.scss +82 -79
- package/styles/components/nav-link/nav-link.css +66 -62
- package/styles/components/nav-link/nav-link.min.css +1 -1
- package/styles/components/nav-link/nav-link.scss +48 -46
- package/styles/components/pagination/development/styles.css +4 -2
- package/styles/components/pagination/pagination.css +4 -2
- package/styles/components/popover/popover.css +23 -21
- package/styles/components/popover/popover.min.css +1 -1
- package/styles/components/popover/popover.scss +14 -12
- package/styles/components/progress-bar/progress-bar.css +35 -32
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/progress-bar/progress-bar.scss +16 -14
- package/styles/components/radio-button/radio-button.css +6 -4
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-panel/development/styles.css +4 -2
- package/styles/components/radio-panel/radio-panel.css +60 -56
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +55 -54
- package/styles/components/segmented-control/segmented-control.css +133 -136
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.scss +1 -1
- package/styles/components/select/select.css +4 -2
- package/styles/components/summary-table/development/summary-table-example.css +4 -2
- package/styles/components/summary-table/summary-table.css +56 -54
- package/styles/components/summary-table/summary-table.min.css +1 -1
- package/styles/components/summary-table/summary-table.scss +44 -42
- package/styles/components/system-message/system-message.css +6 -4
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/table/table.css +4 -2
- package/styles/components/tabs/tabs.css +125 -128
- package/styles/components/tabs/tabs.min.css +1 -1
- package/styles/components/tabs/tabs.scss +90 -93
- package/styles/components/tag/tag.css +4 -2
- package/styles/components/text-area/text-area.css +4 -2
- package/styles/components/text-input/text-input.css +4 -2
- package/styles/components/toast/toast.css +8 -6
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toggle-switch/toggle-switch.css +14 -12
- package/styles/components/tooltip/tooltip.css +4 -2
- package/styles/core/_layers.scss +3 -0
- package/styles/core/core.css +1573 -1434
- package/styles/core/core.min.css +2 -1
- package/styles/core/core.scss +5 -76
- package/styles/core/global/_base-class.scss +30 -0
- package/styles/core/global/_index.scss +2 -0
- package/styles/core/global/_top-layer.scss +20 -0
- package/styles/core/jkl/_index.scss +1 -1
- package/styles/core/jkl/_legacy-tokens.scss +152 -5
- package/styles/core/jkl/_tokens.scss +36 -152
- package/styles/core/jkl/_typography.scss +1 -0
- package/styles/core/resets/_index.scss +2 -0
- package/styles/core/resets/_normalize.scss +251 -0
- package/styles/core/resets/_reset.scss +68 -0
- package/styles/core/theme/_color-tokens.scss +73 -0
- package/styles/core/theme/_dynamic-spacing.scss +55 -0
- package/styles/core/theme/_index.scss +8 -0
- package/styles/core/theme/_legacy-color-tokens.scss +81 -0
- package/styles/core/theme/_legacy-tokens.scss +150 -0
- package/styles/core/theme/_old-vars.scss +30 -0
- package/styles/core/theme/_spacing-tokens.scss +30 -0
- package/styles/core/theme/_tokens.scss +30 -0
- package/styles/core/theme/_typography.scss +27 -0
- package/styles/core/utility/_headings.scss +31 -0
- package/styles/core/utility/_index.scss +4 -0
- package/styles/core/utility/_paragraphs.scss +18 -0
- package/styles/core/utility/_screen-reader.scss +11 -0
- package/styles/core/utility/_spacing.scss +49 -0
- package/styles/shared/input/shared-input-styles.css +4 -2
- package/styles/shared/input-panel/shared.css +4 -2
- package/styles/shared/track/track.css +4 -2
- package/styles/styles.css +1452 -1474
- package/styles/styles.min.css +3 -1
- package/styles/core/_color-tokens.scss +0 -78
- package/styles/core/_headings.scss +0 -29
- package/styles/core/_index.scss +0 -9
- package/styles/core/_legacy-tokens.scss +0 -38
- package/styles/core/_normalize.scss +0 -250
- package/styles/core/_paragraphs.scss +0 -16
- package/styles/core/_reset.scss +0 -66
- package/styles/core/_screen-reader.scss +0 -9
- package/styles/core/_spacing.scss +0 -86
- package/styles/core/_tokens.scss +0 -129
|
@@ -1,118 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 18 Dec 2024 12:25:37 GMT
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
$breakpoint-large: 1200px;
|
|
8
|
-
$breakpoint-xl: 1600px;
|
|
9
|
-
$color-brand-snohvit: #f9f9f9;
|
|
10
|
-
$color-brand-varde: #e0dbd4;
|
|
11
|
-
$color-brand-granitt: #1b1917;
|
|
12
|
-
$color-brand-hvit: #ffffff;
|
|
13
|
-
$color-brand-svart: #000000;
|
|
14
|
-
$color-brand-skifer: #313030;
|
|
15
|
-
$color-brand-fjellgra: #444141;
|
|
16
|
-
$color-brand-stein: #636060;
|
|
17
|
-
$color-brand-svaberg: #c8c5c3;
|
|
18
|
-
$color-brand-dis: #ece9e5;
|
|
19
|
-
$color-brand-sand: #f4f2ef;
|
|
20
|
-
$color-functional-info: #d3d3f6;
|
|
21
|
-
$color-functional-info-dark: #a9a9ca;
|
|
22
|
-
$color-functional-success: #acd3b5;
|
|
23
|
-
$color-functional-success-dark: #94b79b;
|
|
24
|
-
$color-functional-warning: #efdd9e;
|
|
25
|
-
$color-functional-warning-dark: #decc8d;
|
|
26
|
-
$color-functional-error: #f6b3b3;
|
|
27
|
-
$color-functional-error-dark: #de9e9e;
|
|
28
|
-
$motion-timing-energetic: 75ms;
|
|
29
|
-
$motion-timing-snappy: 100ms;
|
|
30
|
-
$motion-timing-productive: 150ms;
|
|
31
|
-
$motion-timing-expressive: 250ms;
|
|
32
|
-
$motion-timing-lazy: 400ms;
|
|
33
|
-
$motion-easing-standard: ease;
|
|
34
|
-
$motion-easing-entrance: ease-out;
|
|
35
|
-
$motion-easing-exit: ease-in;
|
|
36
|
-
$motion-easing-ease-in-bounce-out: cubic-bezier(0, 0, 0.375, 1.17);
|
|
37
|
-
$motion-easing-focus: cubic-bezier(0.6, 0.2, 0.35, 1);
|
|
38
|
-
$icon-weight-normal: 300;
|
|
39
|
-
$icon-weight-bold: 400;
|
|
40
|
-
$typography-weight-normal: 400;
|
|
41
|
-
$typography-weight-bold: 700;
|
|
42
|
-
$typography-font-size-16: 1rem;
|
|
43
|
-
$typography-font-size-18: 1.125rem;
|
|
44
|
-
$typography-font-size-20: 1.25rem;
|
|
45
|
-
$typography-font-size-21: 1.3125rem;
|
|
46
|
-
$typography-font-size-23: 1.4375rem;
|
|
47
|
-
$typography-font-size-25: 1.5625rem;
|
|
48
|
-
$typography-font-size-26: 1.625rem;
|
|
49
|
-
$typography-font-size-28: 1.75rem;
|
|
50
|
-
$typography-font-size-30: 1.875rem;
|
|
51
|
-
$typography-font-size-36: 2.25rem;
|
|
52
|
-
$typography-font-size-44: 2.75rem;
|
|
53
|
-
$typography-font-size-56: 3.5rem;
|
|
54
|
-
$typography-line-height-24: 1.5rem;
|
|
55
|
-
$typography-line-height-28: 1.75rem;
|
|
56
|
-
$typography-line-height-32: 2rem;
|
|
57
|
-
$typography-line-height-36: 2.25rem;
|
|
58
|
-
$typography-line-height-40: 2.5rem;
|
|
59
|
-
$typography-line-height-44: 2.75rem;
|
|
60
|
-
$typography-line-height-52: 3.25rem;
|
|
61
|
-
$typography-line-height-64: 4rem;
|
|
62
|
-
$typography-title-small-font-size: 2.25rem;
|
|
63
|
-
$typography-title-small-line-height: 2.75rem;
|
|
64
|
-
$typography-title-small-font-weight: 400;
|
|
65
|
-
$typography-title-base-font-size: 3.5rem;
|
|
66
|
-
$typography-title-base-line-height: 4rem;
|
|
67
|
-
$typography-title-base-font-weight: 400;
|
|
68
|
-
$typography-title-small-small-font-size: 1.875rem;
|
|
69
|
-
$typography-title-small-small-line-height: 2.25rem;
|
|
70
|
-
$typography-title-small-small-font-weight: 400;
|
|
71
|
-
$typography-title-small-base-font-size: 2.75rem;
|
|
72
|
-
$typography-title-small-base-line-height: 3.25rem;
|
|
73
|
-
$typography-title-small-base-font-weight: 400;
|
|
74
|
-
$typography-heading-1-small-font-size: 1.625rem;
|
|
75
|
-
$typography-heading-1-small-line-height: 2rem;
|
|
76
|
-
$typography-heading-1-small-font-weight: 400;
|
|
77
|
-
$typography-heading-1-base-font-size: 2.25rem;
|
|
78
|
-
$typography-heading-1-base-line-height: 2.75rem;
|
|
79
|
-
$typography-heading-1-base-font-weight: 400;
|
|
80
|
-
$typography-heading-2-small-font-size: 1.4375rem;
|
|
81
|
-
$typography-heading-2-small-line-height: 2rem;
|
|
82
|
-
$typography-heading-2-small-font-weight: 400;
|
|
83
|
-
$typography-heading-2-base-font-size: 1.75rem;
|
|
84
|
-
$typography-heading-2-base-line-height: 2.5rem;
|
|
85
|
-
$typography-heading-2-base-font-weight: 400;
|
|
86
|
-
$typography-heading-3-small-font-size: 1.3125rem;
|
|
87
|
-
$typography-heading-3-small-line-height: 1.75rem;
|
|
88
|
-
$typography-heading-3-small-font-weight: 700;
|
|
89
|
-
$typography-heading-3-base-font-size: 1.5625rem;
|
|
90
|
-
$typography-heading-3-base-line-height: 2rem;
|
|
91
|
-
$typography-heading-3-base-font-weight: 700;
|
|
92
|
-
$typography-heading-4-small-font-size: 1.125rem;
|
|
93
|
-
$typography-heading-4-small-line-height: 1.5rem;
|
|
94
|
-
$typography-heading-4-small-font-weight: 700;
|
|
95
|
-
$typography-heading-4-base-font-size: 1.3125rem;
|
|
96
|
-
$typography-heading-4-base-line-height: 1.75rem;
|
|
97
|
-
$typography-heading-4-base-font-weight: 700;
|
|
98
|
-
$typography-heading-5-small-font-size: 1rem;
|
|
99
|
-
$typography-heading-5-small-line-height: 1.5rem;
|
|
100
|
-
$typography-heading-5-small-font-weight: 700;
|
|
101
|
-
$typography-heading-5-base-font-size: 1rem;
|
|
102
|
-
$typography-heading-5-base-line-height: 1.5rem;
|
|
103
|
-
$typography-heading-5-base-font-weight: 700;
|
|
104
|
-
$typography-body-small-font-size: 1.125rem;
|
|
105
|
-
$typography-body-small-line-height: 1.75rem;
|
|
106
|
-
$typography-body-small-font-weight: 400;
|
|
107
|
-
$typography-body-base-font-size: 1.25rem;
|
|
108
|
-
$typography-body-base-line-height: 2rem;
|
|
109
|
-
$typography-body-base-font-weight: 400;
|
|
110
|
-
$typography-small-small-font-size: 1rem;
|
|
111
|
-
$typography-small-small-line-height: 1.5rem;
|
|
112
|
-
$typography-small-small-font-weight: 400;
|
|
113
|
-
$typography-small-base-font-size: 1rem;
|
|
114
|
-
$typography-small-base-line-height: 1.5rem;
|
|
115
|
-
$typography-small-base-font-weight: 400;
|
|
5
|
+
|
|
116
6
|
$unit-10: 0.5rem;
|
|
117
7
|
$unit-15: calc(var(--jkl-unit-10) * 1.5);
|
|
118
8
|
$unit-20: calc(var(--jkl-unit-10) * 2);
|
|
@@ -126,48 +16,42 @@ $unit-80: calc(var(--jkl-unit-10) * 8);
|
|
|
126
16
|
$unit-90: calc(var(--jkl-unit-10) * 9);
|
|
127
17
|
$unit-130: calc(var(--jkl-unit-10) * 13);
|
|
128
18
|
$unit-210: calc(var(--jkl-unit-10) * 21);
|
|
129
|
-
$unit-02: calc(var(--jkl-unit-10) *
|
|
130
|
-
$unit-05: calc(var(--jkl-unit-10) *
|
|
19
|
+
$unit-02: calc(var(--jkl-unit-10) * .25);
|
|
20
|
+
$unit-05: calc(var(--jkl-unit-10) * .5);
|
|
21
|
+
$spacing-xs: 0.5rem;
|
|
22
|
+
$spacing-s: calc(var(--jkl-unit-10) * 2);
|
|
23
|
+
$spacing-m: calc(var(--jkl-unit-10) * 3);
|
|
24
|
+
$spacing-l: calc(var(--jkl-unit-10) * 5);
|
|
25
|
+
$spacing-xl: calc(var(--jkl-unit-10) * 8);
|
|
26
|
+
$spacing-2xl: calc(var(--jkl-unit-10) * 13);
|
|
131
27
|
|
|
132
28
|
// Dynamiske variabler for farge, via referanse til CSS-variabler
|
|
133
29
|
$color-background-page: var(--jkl-color-background-page);
|
|
134
|
-
$color-background-
|
|
135
|
-
$color-background-
|
|
136
|
-
$color-background-
|
|
137
|
-
$color-background-
|
|
138
|
-
$color-background-
|
|
139
|
-
|
|
140
|
-
);
|
|
141
|
-
$color-background-
|
|
142
|
-
|
|
143
|
-
);
|
|
144
|
-
$color-
|
|
145
|
-
$color-
|
|
146
|
-
$color-
|
|
147
|
-
$color-
|
|
148
|
-
$color-
|
|
149
|
-
|
|
150
|
-
);
|
|
151
|
-
$color-background-interactive-selected: var(
|
|
152
|
-
--jkl-color-background-interactive-selected
|
|
153
|
-
);
|
|
154
|
-
$color-background-alert-neutral: var(--jkl-color-background-alert-neutral);
|
|
155
|
-
$color-background-alert-info: var(--jkl-color-background-alert-info);
|
|
156
|
-
$color-background-alert-success: var(--jkl-color-background-alert-success);
|
|
157
|
-
$color-background-alert-warning: var(--jkl-color-background-alert-warning);
|
|
158
|
-
$color-background-alert-error: var(--jkl-color-background-alert-error);
|
|
30
|
+
$color-background-surface-default: var(--jkl-color-background-surface-default);
|
|
31
|
+
$color-background-surface-highlight: var(--jkl-color-background-surface-highlight);
|
|
32
|
+
$color-background-surface-on-surface: var(--jkl-color-background-surface-on-surface);
|
|
33
|
+
$color-background-surface-moderate: var(--jkl-color-background-surface-moderate);
|
|
34
|
+
$color-background-surface-knockout: var(--jkl-color-background-surface-knockout);
|
|
35
|
+
$color-background-surface-error: var(--jkl-color-background-surface-error);
|
|
36
|
+
$color-background-surface-warning: var(--jkl-color-background-surface-warning);
|
|
37
|
+
$color-background-surface-info: var(--jkl-color-background-surface-info);
|
|
38
|
+
$color-background-surface-succes: var(--jkl-color-background-surface-succes);
|
|
39
|
+
$color-border-subdued: var(--jkl-color-border-subdued);
|
|
40
|
+
$color-border-strong: var(--jkl-color-border-strong);
|
|
41
|
+
$color-border-strongest: var(--jkl-color-border-strongest);
|
|
42
|
+
$color-border-knockout: var(--jkl-color-border-knockout);
|
|
43
|
+
$color-border-info: var(--jkl-color-border-info);
|
|
44
|
+
$color-border-success: var(--jkl-color-border-success);
|
|
45
|
+
$color-border-error: var(--jkl-color-border-error);
|
|
46
|
+
$color-border-warning: var(--jkl-color-border-warning);
|
|
159
47
|
$color-text-default: var(--jkl-color-text-default);
|
|
160
48
|
$color-text-subdued: var(--jkl-color-text-subdued);
|
|
161
|
-
$color-text-
|
|
162
|
-
$color-text-
|
|
163
|
-
$color-text-
|
|
164
|
-
$color-text-
|
|
165
|
-
$color-text-
|
|
166
|
-
$color-text-
|
|
167
|
-
$color-
|
|
168
|
-
$color-
|
|
169
|
-
$color-
|
|
170
|
-
$color-border-separator: var(--jkl-color-border-separator);
|
|
171
|
-
$color-border-separator-strong: var(--jkl-color-border-separator-strong);
|
|
172
|
-
$color-border-separator-hover: var(--jkl-color-border-separator-hover);
|
|
173
|
-
$color-border-subdued: var(--jkl-color-border-subdued);
|
|
49
|
+
$color-text-knockout: var(--jkl-color-text-knockout);
|
|
50
|
+
$color-text-info: var(--jkl-color-text-info);
|
|
51
|
+
$color-text-info-strong: var(--jkl-color-text-info-strong);
|
|
52
|
+
$color-text-success: var(--jkl-color-text-success);
|
|
53
|
+
$color-text-success-strong: var(--jkl-color-text-success-strong);
|
|
54
|
+
$color-text-error: var(--jkl-color-text-error);
|
|
55
|
+
$color-text-error-strong: var(--jkl-color-text-error-strong);
|
|
56
|
+
$color-text-warning: var(--jkl-color-text-warning);
|
|
57
|
+
$color-text-warning-strong: var(--jkl-color-text-warning-strong);
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
@layer jokul.resets {
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
29
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
h1 {
|
|
33
|
+
font-size: 2em;
|
|
34
|
+
margin: 0.67em 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Grouping content
|
|
38
|
+
========================================================================== */
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 1. Add the correct box sizing in Firefox.
|
|
42
|
+
* 2. Show the overflow in Edge and IE.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
hr {
|
|
46
|
+
box-sizing: content-box; /* 1 */
|
|
47
|
+
height: 0; /* 1 */
|
|
48
|
+
overflow: visible; /* 2 */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
53
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
pre {
|
|
57
|
+
font-family: monospace, monospace; /* 1 */
|
|
58
|
+
font-size: 1em; /* 2 */
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Text-level semantics
|
|
62
|
+
========================================================================== */
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
66
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
abbr[title] {
|
|
70
|
+
border-bottom: none; /* 1 */
|
|
71
|
+
text-decoration: underline; /* 2 */
|
|
72
|
+
text-decoration: underline dotted; /* 2 */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
b,
|
|
80
|
+
strong {
|
|
81
|
+
font-weight: bolder;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
86
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
code,
|
|
90
|
+
kbd,
|
|
91
|
+
samp {
|
|
92
|
+
font-family: monospace, monospace; /* 1 */
|
|
93
|
+
font-size: 1em; /* 2 */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Add the correct font size in all browsers.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
small {
|
|
101
|
+
font-size: 80%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
106
|
+
* all browsers.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
sub,
|
|
110
|
+
sup {
|
|
111
|
+
font-size: 75%;
|
|
112
|
+
line-height: 0;
|
|
113
|
+
position: relative;
|
|
114
|
+
vertical-align: baseline;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
sub {
|
|
118
|
+
bottom: -0.25em;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
sup {
|
|
122
|
+
top: -0.5em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Forms
|
|
126
|
+
========================================================================== */
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 1. Change the font styles in all browsers.
|
|
130
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
button,
|
|
134
|
+
input,
|
|
135
|
+
optgroup,
|
|
136
|
+
select,
|
|
137
|
+
textarea {
|
|
138
|
+
font-family: inherit; /* 1 */
|
|
139
|
+
font-size: 100%; /* 1 */
|
|
140
|
+
line-height: 1.15; /* 1 */
|
|
141
|
+
margin: 0; /* 2 */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
146
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
button,
|
|
150
|
+
select {
|
|
151
|
+
/* 1 */
|
|
152
|
+
text-transform: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
button,
|
|
160
|
+
[type="button"],
|
|
161
|
+
[type="reset"],
|
|
162
|
+
[type="submit"] {
|
|
163
|
+
-webkit-appearance: button;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Correct the padding in Firefox.
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
fieldset {
|
|
171
|
+
padding: 0.35em 0.75em 0.625em;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
176
|
+
* 2. Remove the padding so developers are not caught out when they zero out
|
|
177
|
+
* `fieldset` elements in all browsers.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
legend {
|
|
181
|
+
box-sizing: border-box; /* 1 */
|
|
182
|
+
display: table; /* 1 */
|
|
183
|
+
max-width: 100%; /* 1 */
|
|
184
|
+
padding: 0; /* 2 */
|
|
185
|
+
white-space: normal; /* 1 */
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
progress {
|
|
193
|
+
vertical-align: baseline;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
201
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
202
|
+
height: auto;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
207
|
+
* 2. Correct the outline style in Safari.
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
[type="search"] {
|
|
211
|
+
-webkit-appearance: textfield; /* 1 */
|
|
212
|
+
outline-offset: -2px; /* 2 */
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
[type="search"]::-webkit-search-decoration {
|
|
220
|
+
-webkit-appearance: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
225
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
::-webkit-file-upload-button {
|
|
229
|
+
-webkit-appearance: button; /* 1 */
|
|
230
|
+
font: inherit; /* 2 */
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Interactive
|
|
234
|
+
========================================================================== */
|
|
235
|
+
|
|
236
|
+
/*
|
|
237
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
details {
|
|
241
|
+
display: block;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/*
|
|
245
|
+
* Add the correct display in all browsers.
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
summary {
|
|
249
|
+
display: list-item;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@layer jokul.resets {
|
|
2
|
+
/* Text blocks
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Remove default margins from all block-level text elements
|
|
7
|
+
* such as `p` and headings
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
h1,
|
|
11
|
+
h2,
|
|
12
|
+
h3,
|
|
13
|
+
h4,
|
|
14
|
+
h5,
|
|
15
|
+
h6,
|
|
16
|
+
p {
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Forms
|
|
21
|
+
========================================================================== */
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Remove margins from fieldset element.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
fieldset {
|
|
28
|
+
margin: 0;
|
|
29
|
+
border: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
display: block;
|
|
32
|
+
line-height: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Forms
|
|
36
|
+
========================================================================== */
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Remove borders from table elements.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
table {
|
|
43
|
+
border-collapse: collapse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Remove margins from table elements.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
table,
|
|
51
|
+
thead,
|
|
52
|
+
tbody,
|
|
53
|
+
tr,
|
|
54
|
+
td,
|
|
55
|
+
th {
|
|
56
|
+
margin: 0;
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* https://css-tricks.com/the-hidden-attribute-is-visibly-weak/
|
|
62
|
+
* tl;dr – hidden er en User Agent style, så hvis et element har noen som helst display som ikke er
|
|
63
|
+
* hidden vil ikke hidden-attributtet gjøre noe som helst visuelt. Her gjør vi det til vår egen author style.
|
|
64
|
+
*/
|
|
65
|
+
.jkl [hidden] {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* stylelint-disable */
|
|
7
|
+
@use "../jkl";
|
|
8
|
+
|
|
9
|
+
@layer jokul.theme {
|
|
10
|
+
@include jkl.light-mode-variables {
|
|
11
|
+
--jkl-color-background-page: oklch(96% 0.004 67);
|
|
12
|
+
--jkl-color-background-surface-default: oklch(92% 0.008 67);
|
|
13
|
+
--jkl-color-background-surface-highlight: oklch(100% 0.001 67);
|
|
14
|
+
--jkl-color-background-surface-on-surface: oklch(96% 0.004 67);
|
|
15
|
+
--jkl-color-background-surface-moderate: oklch(80% 0.008 67);
|
|
16
|
+
--jkl-color-background-surface-knockout: oklch(35% 0.007 67);
|
|
17
|
+
--jkl-color-background-surface-error: oklch(80% 0.09 16);
|
|
18
|
+
--jkl-color-background-surface-warning: oklch(90% 0.08 94);
|
|
19
|
+
--jkl-color-background-surface-info: oklch(80% 0.09 285);
|
|
20
|
+
--jkl-color-background-surface-succes: oklch(80% 0.066 156);
|
|
21
|
+
--jkl-color-border-subdued: oklch(80% 0.008 67);
|
|
22
|
+
--jkl-color-border-strong: oklch(50% 0.007 67);
|
|
23
|
+
--jkl-color-border-strongest: oklch(0% 0.007 64);
|
|
24
|
+
--jkl-color-border-knockout: oklch(100% 0.001 67);
|
|
25
|
+
--jkl-color-border-info: oklch(70% 0.145 285);
|
|
26
|
+
--jkl-color-border-success: oklch(70% 0.089 156);
|
|
27
|
+
--jkl-color-border-error: oklch(70% 0.13 16);
|
|
28
|
+
--jkl-color-border-warning: oklch(70% 0.1 94);
|
|
29
|
+
--jkl-color-text-default: oklch(0% 0.007 64);
|
|
30
|
+
--jkl-color-text-subdued: oklch(50% 0.007 67);
|
|
31
|
+
--jkl-color-text-knockout: oklch(100% 0.001 67);
|
|
32
|
+
--jkl-color-text-info: oklch(25% 0.056 285);
|
|
33
|
+
--jkl-color-text-info-strong: oklch(50% 0.186 285);
|
|
34
|
+
--jkl-color-text-success: oklch(25% 0.024 156);
|
|
35
|
+
--jkl-color-text-success-strong: oklch(50% 0.106 156);
|
|
36
|
+
--jkl-color-text-error: oklch(25% 0.056 16);
|
|
37
|
+
--jkl-color-text-error-strong: oklch(50% 0.16 16);
|
|
38
|
+
--jkl-color-text-warning: oklch(25% 0.03 94);
|
|
39
|
+
--jkl-color-text-warning-strong: oklch(70% 0.1 94);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include jkl.dark-mode-variables {
|
|
43
|
+
--jkl-color-background-page: oklch(10% 0.007 67);
|
|
44
|
+
--jkl-color-background-surface-default: oklch(25% 0.007 67);
|
|
45
|
+
--jkl-color-background-surface-highlight: oklch(35% 0.007 67);
|
|
46
|
+
--jkl-color-background-surface-on-surface: oklch(10% 0.007 67);
|
|
47
|
+
--jkl-color-background-surface-moderate: oklch(50% 0.007 67);
|
|
48
|
+
--jkl-color-background-surface-knockout: oklch(85% 0.008 67);
|
|
49
|
+
--jkl-color-background-surface-error: oklch(45% 0.146 16);
|
|
50
|
+
--jkl-color-background-surface-warning: oklch(45% 0.065 94);
|
|
51
|
+
--jkl-color-background-surface-info: oklch(45% 0.169 285);
|
|
52
|
+
--jkl-color-background-surface-succes: oklch(45% 0.095 156);
|
|
53
|
+
--jkl-color-border-subdued: oklch(50% 0.007 67);
|
|
54
|
+
--jkl-color-border-strong: oklch(80% 0.008 67);
|
|
55
|
+
--jkl-color-border-strongest: oklch(100% 0.001 67);
|
|
56
|
+
--jkl-color-border-knockout: oklch(0% 0.007 64);
|
|
57
|
+
--jkl-color-border-info: oklch(60% 0.17 285);
|
|
58
|
+
--jkl-color-border-success: oklch(60% 0.1 156);
|
|
59
|
+
--jkl-color-border-error: oklch(60% 0.149 16);
|
|
60
|
+
--jkl-color-border-warning: oklch(60% 0.09 94);
|
|
61
|
+
--jkl-color-text-default: oklch(100% 0.001 67);
|
|
62
|
+
--jkl-color-text-subdued: oklch(80% 0.008 67);
|
|
63
|
+
--jkl-color-text-knockout: oklch(0% 0.007 64);
|
|
64
|
+
--jkl-color-text-info: oklch(90% 0.034 285);
|
|
65
|
+
--jkl-color-text-info-strong: oklch(70% 0.145 285);
|
|
66
|
+
--jkl-color-text-success: oklch(90% 0.035 156);
|
|
67
|
+
--jkl-color-text-success-strong: oklch(70% 0.089 156);
|
|
68
|
+
--jkl-color-text-error: oklch(90% 0.045 16);
|
|
69
|
+
--jkl-color-text-error-strong: oklch(70% 0.13 16);
|
|
70
|
+
--jkl-color-text-warning: oklch(90% 0.08 94);
|
|
71
|
+
--jkl-color-text-warning-strong: oklch(70% 0.1 94);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:string";
|
|
4
|
+
@use "../jkl/screens";
|
|
5
|
+
@use "../jkl/spacing";
|
|
6
|
+
|
|
7
|
+
@function get-class-name($spacing-combination) {
|
|
8
|
+
$class-name: "jkl-spacing";
|
|
9
|
+
|
|
10
|
+
@each $spacing in $spacing-combination {
|
|
11
|
+
$class-name: "#{$class-name}-#{$spacing}";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@return $class-name;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer jokul.theme {
|
|
18
|
+
// Sett CSS-variabler for alle spacing-kombinasjoner
|
|
19
|
+
:root {
|
|
20
|
+
@each $spacing-combination in spacing.$combinations {
|
|
21
|
+
$_step: list.nth($spacing-combination, 1);
|
|
22
|
+
|
|
23
|
+
--#{get-class-name($spacing-combination)}: #{map.get(
|
|
24
|
+
spacing.$spacing,
|
|
25
|
+
$_step
|
|
26
|
+
)};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include screens.from-medium-device {
|
|
30
|
+
@each $spacing-combination in spacing.$combinations {
|
|
31
|
+
@if list.length($spacing-combination) > 1 {
|
|
32
|
+
$_step: list.nth($spacing-combination, 2);
|
|
33
|
+
|
|
34
|
+
--#{get-class-name($spacing-combination)}: #{map.get(
|
|
35
|
+
spacing.$spacing,
|
|
36
|
+
$_step
|
|
37
|
+
)};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include screens.from-large-device {
|
|
43
|
+
@each $spacing-combination in spacing.$combinations {
|
|
44
|
+
@if list.length($spacing-combination) > 2 {
|
|
45
|
+
$_step: list.nth($spacing-combination, 3);
|
|
46
|
+
|
|
47
|
+
--#{get-class-name($spacing-combination)}: #{map.get(
|
|
48
|
+
spacing.$spacing,
|
|
49
|
+
$_step
|
|
50
|
+
)};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|