@fremtind/jokul 0.27.3 → 0.27.5
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/README.md +9 -2
- package/build/build-stats.html +1 -1
- package/build/cjs/components/card/Card.cjs.map +1 -1
- package/build/cjs/components/card/CardImage.cjs.map +1 -1
- package/build/cjs/components/combobox/Combobox.cjs +1 -1
- package/build/cjs/components/combobox/Combobox.cjs.map +1 -1
- package/build/cjs/components/datepicker/DatePicker.cjs +1 -1
- package/build/cjs/components/datepicker/DatePicker.cjs.map +1 -1
- package/build/cjs/components/datepicker/internal/Calendar.cjs +1 -1
- package/build/cjs/components/datepicker/internal/Calendar.cjs.map +1 -1
- package/build/cjs/components/expander/Expander.cjs +1 -1
- package/build/cjs/components/expander/Expander.cjs.map +1 -1
- package/build/cjs/components/feedback/questions/ContactQuestion.cjs.map +1 -1
- package/build/cjs/components/flex/Flex.cjs.map +1 -1
- package/build/cjs/components/input-group/SupportLabel.cjs +1 -1
- package/build/cjs/components/input-group/SupportLabel.cjs.map +1 -1
- package/build/cjs/components/link-list/LinkList.cjs +1 -1
- package/build/cjs/components/link-list/LinkList.cjs.map +1 -1
- package/build/cjs/components/menu/MenuItem.cjs +1 -1
- package/build/cjs/components/menu/MenuItem.cjs.map +1 -1
- package/build/cjs/components/menu/MenuItemCheckbox.cjs +1 -1
- package/build/cjs/components/menu/MenuItemCheckbox.cjs.map +1 -1
- package/build/cjs/components/message/DismissButton.cjs +1 -1
- package/build/cjs/components/message/DismissButton.cjs.map +1 -1
- package/build/cjs/components/message/Message.cjs +1 -1
- package/build/cjs/components/message/Message.cjs.map +1 -1
- package/build/cjs/components/modal/Modal.cjs +1 -1
- package/build/cjs/components/modal/Modal.cjs.map +1 -1
- package/build/cjs/components/pagination/Pagination.cjs +1 -1
- package/build/cjs/components/pagination/Pagination.cjs.map +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.cjs +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.cjs.map +1 -1
- package/build/cjs/components/select/NativeSelect.cjs +1 -1
- package/build/cjs/components/select/NativeSelect.cjs.map +1 -1
- package/build/cjs/components/select/Select.cjs +1 -1
- package/build/cjs/components/select/Select.cjs.map +1 -1
- package/build/cjs/components/system-message/common/DismissButton.cjs +1 -1
- package/build/cjs/components/system-message/common/DismissButton.cjs.map +1 -1
- package/build/cjs/components/system-message/common/MessageIcon.cjs +1 -1
- package/build/cjs/components/system-message/common/MessageIcon.cjs.map +1 -1
- package/build/cjs/components/table/ExpandableTableRow.cjs +1 -1
- package/build/cjs/components/table/ExpandableTableRow.cjs.map +1 -1
- package/build/cjs/components/table/TableHeader.cjs +1 -1
- package/build/cjs/components/table/TableHeader.cjs.map +1 -1
- package/build/cjs/components/table/TablePagination.cjs +1 -1
- package/build/cjs/components/table/TablePagination.cjs.map +1 -1
- package/build/cjs/components/tag/Tag.cjs +1 -1
- package/build/cjs/components/tag/Tag.cjs.map +1 -1
- package/build/cjs/components/text-input/BaseTextInput.cjs.map +1 -1
- package/build/cjs/components/text-input/BaseTextInput.d.cts +2 -2
- package/build/cjs/components/toast/Toast.cjs +1 -1
- package/build/cjs/components/toast/Toast.cjs.map +1 -1
- package/build/cjs/components/toggle-switch/ToggleSwitch.cjs +1 -1
- package/build/cjs/components/toggle-switch/ToggleSwitch.cjs.map +1 -1
- package/build/cjs/components/toggle-switch/ToggleSwitch.d.cts +1 -1
- package/build/cjs/components/tooltip/PopupTip.cjs +1 -1
- package/build/cjs/components/tooltip/PopupTip.cjs.map +1 -1
- package/build/cjs/components/tooltip/PopupTip.d.cts +1 -1
- package/build/es/components/card/Card.js.map +1 -1
- package/build/es/components/card/CardImage.js.map +1 -1
- package/build/es/components/combobox/Combobox.js +1 -1
- package/build/es/components/combobox/Combobox.js.map +1 -1
- package/build/es/components/datepicker/DatePicker.js +1 -1
- package/build/es/components/datepicker/DatePicker.js.map +1 -1
- package/build/es/components/datepicker/internal/Calendar.js +1 -1
- package/build/es/components/datepicker/internal/Calendar.js.map +1 -1
- package/build/es/components/expander/Expander.js +1 -1
- package/build/es/components/expander/Expander.js.map +1 -1
- package/build/es/components/feedback/questions/ContactQuestion.js.map +1 -1
- package/build/es/components/flex/Flex.js.map +1 -1
- package/build/es/components/input-group/SupportLabel.js +1 -1
- package/build/es/components/input-group/SupportLabel.js.map +1 -1
- package/build/es/components/link-list/LinkList.js +1 -1
- package/build/es/components/link-list/LinkList.js.map +1 -1
- package/build/es/components/menu/MenuItem.js +1 -1
- package/build/es/components/menu/MenuItem.js.map +1 -1
- package/build/es/components/menu/MenuItemCheckbox.js +1 -1
- package/build/es/components/menu/MenuItemCheckbox.js.map +1 -1
- package/build/es/components/message/DismissButton.js +1 -1
- package/build/es/components/message/DismissButton.js.map +1 -1
- package/build/es/components/message/Message.js +1 -1
- package/build/es/components/message/Message.js.map +1 -1
- package/build/es/components/modal/Modal.js +1 -1
- package/build/es/components/modal/Modal.js.map +1 -1
- package/build/es/components/pagination/Pagination.js +1 -1
- package/build/es/components/pagination/Pagination.js.map +1 -1
- package/build/es/components/radio-panel/RadioPanel.js +1 -1
- package/build/es/components/radio-panel/RadioPanel.js.map +1 -1
- package/build/es/components/select/NativeSelect.js +1 -1
- package/build/es/components/select/NativeSelect.js.map +1 -1
- package/build/es/components/select/Select.js +1 -1
- package/build/es/components/select/Select.js.map +1 -1
- package/build/es/components/system-message/common/DismissButton.js +1 -1
- package/build/es/components/system-message/common/DismissButton.js.map +1 -1
- package/build/es/components/system-message/common/MessageIcon.js +1 -1
- package/build/es/components/system-message/common/MessageIcon.js.map +1 -1
- package/build/es/components/table/ExpandableTableRow.js +1 -1
- package/build/es/components/table/ExpandableTableRow.js.map +1 -1
- package/build/es/components/table/TableHeader.js +1 -1
- package/build/es/components/table/TableHeader.js.map +1 -1
- package/build/es/components/table/TablePagination.js +1 -1
- package/build/es/components/table/TablePagination.js.map +1 -1
- package/build/es/components/tag/Tag.js +1 -1
- package/build/es/components/tag/Tag.js.map +1 -1
- package/build/es/components/text-input/BaseTextInput.d.ts +2 -2
- package/build/es/components/text-input/BaseTextInput.js.map +1 -1
- package/build/es/components/toast/Toast.js +1 -1
- package/build/es/components/toast/Toast.js.map +1 -1
- package/build/es/components/toggle-switch/ToggleSwitch.d.ts +1 -1
- package/build/es/components/toggle-switch/ToggleSwitch.js +1 -1
- package/build/es/components/toggle-switch/ToggleSwitch.js.map +1 -1
- package/build/es/components/tooltip/PopupTip.d.ts +1 -1
- package/build/es/components/tooltip/PopupTip.js +1 -1
- package/build/es/components/tooltip/PopupTip.js.map +1 -1
- package/package.json +2 -2
- package/styles/components/accordion/accordion.css +13 -5
- package/styles/components/accordion/accordion.min.css +7 -1
- package/styles/components/accordion/accordion.scss +17 -6
- package/styles/components/button/button.css +2 -2
- package/styles/components/button/button.min.css +1 -1
- package/styles/components/button/button.scss +2 -1
- package/styles/components/card/card.css +3 -1
- package/styles/components/card/card.scss +3 -1
- package/styles/components/checkbox/checkbox.css +4 -4
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +15 -5
- package/styles/components/combobox/combobox.css +4 -2
- package/styles/components/combobox/combobox.scss +20 -7
- package/styles/components/datepicker/_calendar.scss +6 -3
- package/styles/components/datepicker/datepicker.css +6 -3
- package/styles/components/datepicker/datepicker.scss +2 -1
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/feedback/feedback.scss +4 -1
- package/styles/components/icon/icon.scss +2 -2
- package/styles/components/input-group/_labels.scss +13 -5
- package/styles/components/input-group/input-group.css +2 -2
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/input-group/input-group.scss +4 -1
- package/styles/components/link/link.scss +14 -2
- package/styles/components/list/list.scss +21 -6
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +5 -5
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +2 -1
- package/styles/components/logo/logo.scss +12 -4
- package/styles/components/menu/menu.scss +2 -1
- package/styles/components/message/message.css +6 -3
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/message/message.scss +11 -4
- package/styles/components/progress-bar/progress-bar.css +2 -2
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/radio-button/radio-button.css +2 -2
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-button/radio-button.scss +24 -9
- package/styles/components/radio-panel/radio-panel.css +2 -2
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +2 -1
- package/styles/components/select/select.css +6 -3
- package/styles/components/select/select.scss +20 -7
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/system-message/system-message.scss +8 -3
- package/styles/components/table/_table-cell.scss +10 -4
- package/styles/components/table/_table-head.scss +2 -1
- package/styles/components/table/_table-row.scss +21 -9
- package/styles/components/tabs/tabs.css +6 -3
- package/styles/components/tabs/tabs.scss +6 -3
- package/styles/components/text-input/text-input.css +4 -2
- package/styles/components/text-input/text-input.scss +19 -8
- package/styles/components/toast/toast.css +7 -5
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toast/toast.scss +11 -4
- package/styles/components/toggle-switch/_toggle-slider.scss +2 -1
- package/styles/components/toggle-switch/toggle-switch.css +2 -1
- package/styles/components/toggle-switch/toggle-switch.scss +2 -1
- package/styles/components/tooltip/tooltip.scss +7 -2
- package/styles/core/_spacing.scss +12 -3
- package/styles/core/core.scss +7 -2
- package/styles/core/jkl/_convert.scss +4 -1
- package/styles/core/jkl/_helpers.scss +7 -1
- package/styles/core/jkl/_ornaments.scss +3 -1
- package/styles/core/jkl/_spacing.scss +4 -1
- package/styles/core/jkl/_tokens.scss +12 -4
- package/styles/core/jkl/_typography.scss +14 -6
- package/styles/fonts/webfonts.scss +14 -7
- package/styles/styles.css +86 -57
- package/styles/styles.min.css +7 -1
|
@@ -5,22 +5,30 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
7
|
@include jkl.comfortable-density {
|
|
8
|
-
--title-padding: var(--jkl-spacing-16) #{jkl.rem(48px)} var(
|
|
8
|
+
--title-padding: var(--jkl-spacing-16) #{jkl.rem(48px)} var(
|
|
9
|
+
--jkl-spacing-16
|
|
10
|
+
) var(--jkl-spacing-16);
|
|
9
11
|
--arrow-top: #{jkl.rem(20px)};
|
|
10
12
|
--arrow-right: var(--jkl-spacing-12);
|
|
11
|
-
--content-padding: var(--jkl-spacing-8) var(--jkl-spacing-16)
|
|
13
|
+
--content-padding: var(--jkl-spacing-8) var(--jkl-spacing-16)
|
|
14
|
+
var(--jkl-spacing-16);
|
|
12
15
|
@include jkl.declare-font-variables("title", "body");
|
|
13
16
|
@include jkl.declare-font-variables("content", "body");
|
|
14
17
|
|
|
15
18
|
@include jkl.small-device {
|
|
16
|
-
--title-padding: var(--jkl-spacing-12) #{jkl.rem(44px)} var(
|
|
17
|
-
|
|
19
|
+
--title-padding: var(--jkl-spacing-12) #{jkl.rem(44px)} var(
|
|
20
|
+
--jkl-spacing-12
|
|
21
|
+
) var(--jkl-spacing-12);
|
|
22
|
+
--content-padding: var(--jkl-spacing-8) var(--jkl-spacing-12)
|
|
23
|
+
var(--jkl-spacing-16) var(--jkl-spacing-12);
|
|
18
24
|
--arrow-top: #{jkl.rem(23px)};
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
@include jkl.compact-density {
|
|
23
|
-
--title-padding: var(--jkl-spacing-8) #{jkl.rem(32px)} var(
|
|
29
|
+
--title-padding: var(--jkl-spacing-8) #{jkl.rem(32px)} var(
|
|
30
|
+
--jkl-spacing-8
|
|
31
|
+
) var(--jkl-spacing-8);
|
|
24
32
|
--arrow-top: var(--jkl-spacing-8);
|
|
25
33
|
--arrow-right: var(--jkl-spacing-4);
|
|
26
34
|
--content-padding: var(--jkl-spacing-8);
|
|
@@ -104,7 +112,10 @@
|
|
|
104
112
|
@include jkl.motion("standard", "snappy");
|
|
105
113
|
transition-property: translate;
|
|
106
114
|
|
|
107
|
-
@include jkl.forced-colors-svg-fallback(
|
|
115
|
+
@include jkl.forced-colors-svg-fallback(
|
|
116
|
+
$stroke: ButtonText,
|
|
117
|
+
$fill: ButtonText
|
|
118
|
+
);
|
|
108
119
|
}
|
|
109
120
|
|
|
110
121
|
&__content-wrapper {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
height: 1rem;
|
|
137
137
|
}
|
|
138
138
|
html[data-touchnavigation] .jkl-button.jkl-button--pressed::before {
|
|
139
|
-
animation: cubic-bezier(0.6, 0.2, 0.35, 1) 250ms jkl-tertiary-flash-
|
|
139
|
+
animation: cubic-bezier(0.6, 0.2, 0.35, 1) 250ms jkl-tertiary-flash-ubnpk7x;
|
|
140
140
|
}
|
|
141
141
|
:not([data-touchnavigation]) .jkl-button--primary:hover, :not([data-touchnavigation]) .jkl-button--secondary:hover, :not([data-touchnavigation]) .jkl-button--tertiary:hover {
|
|
142
142
|
scale: 1.05;
|
|
@@ -180,7 +180,7 @@ html[data-touchnavigation] .jkl-button.jkl-button--pressed::before {
|
|
|
180
180
|
--background-color: var(--jkl-color-background-interactive-hover);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
@keyframes jkl-tertiary-flash-
|
|
183
|
+
@keyframes jkl-tertiary-flash-ubnpk7x {
|
|
184
184
|
0% {
|
|
185
185
|
opacity: 0.5;
|
|
186
186
|
scale: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.jkl .jkl-button,.jkl-button[data-density=comfortable],.jkl-button[data-layout-density=comfortable],[data-density=comfortable] .jkl-button,[data-layout-density=comfortable] .jkl-button{--padding-block:0.5rem;--padding-text:1.5rem;--padding-icon:1rem;--padding-icon-button:0.5rem;--padding-tertiary-inline:0.25rem;--padding-ghost-inline:0.5rem}.jkl-button[data-density=compact],.jkl-button[data-layout-density=compact],[data-density=compact] .jkl-button,[data-layout-density=compact] .jkl-button{--padding-block:0.25rem;--padding-text:0.75rem;--padding-icon:0.5rem;--padding-icon-button:0.25rem;--padding-tertiary-inline:0.125rem;--padding-ghost-inline:0.25rem;font-size:1rem;font-weight:400;line-height:1.5rem;--jkl-icon-weight:300;--jkl-icon-size:1.25rem;--jkl-icon-opsz:20;--jkl-icon-weight:500;font-weight:700}.jkl-button{--text-color:var(--jkl-color-text-default);--background-color:transparent;--border-radius:0;--border-width:0.0625rem;background-color:var(--background-color);border:unset;color:var(--text-color);cursor:pointer;text-decoration:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border-radius:var(--border-radius);font-size:1.125rem;font-weight:400;line-height:1.75rem;max-width:100%;overflow:hidden;padding-block:var(--padding-block);padding-inline:var(--padding-text);position:relative;transition-duration:.15s;transition-property:scale;transition-timing-function:ease;--jkl-icon-weight:300;--jkl-icon-weight:500;font-weight:700}@media (min-width:680px){.jkl-button{font-size:1.25rem;font-weight:400;line-height:2rem;--jkl-icon-weight:300;--jkl-icon-weight:500;font-weight:700}}.jkl-button:has(.jkl-icon:first-child){padding-inline-start:var(--padding-icon)}.jkl-button:has(.jkl-icon:last-child){padding-inline-end:var(--padding-icon)}.jkl-button:has(.jkl-icon:first-child):has(.jkl-icon:last-child){padding-inline:var(--padding-icon-button)}.jkl-button__label{align-items:center;display:flex;flex-direction:row;gap:.125rem;pointer-events:none;transition-duration:.25s;transition-property:translate;transition-timing-function:ease}.jkl-button__loader{left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transition-duration:.25s;transition-property:opacity,translate;transition-timing-function:ease;translate:-50% 350%}.jkl-button__text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jkl-button[data-loading=true] .jkl-button__label{translate:0 -120%}.jkl-button[data-loading=true] .jkl-button__loader{opacity:1;translate:-50% -50%}.jkl-button:focus-visible{outline:2px solid var(--jkl-color-border-action);outline-offset:2px}.jkl-button:before{background-color:var(--text-color);border-radius:9999px;content:"";display:block;height:1rem;left:var(--jkl-touch-xcoord,50%);opacity:0;pointer-events:none;position:absolute;top:var(--jkl-touch-ycoord,50%);transform-origin:center;translate:-100%,-100%;width:1rem}html[data-touchnavigation] .jkl-button.jkl-button--pressed:before{animation:jkl-tertiary-flash-
|
|
1
|
+
.jkl .jkl-button,.jkl-button[data-density=comfortable],.jkl-button[data-layout-density=comfortable],[data-density=comfortable] .jkl-button,[data-layout-density=comfortable] .jkl-button{--padding-block:0.5rem;--padding-text:1.5rem;--padding-icon:1rem;--padding-icon-button:0.5rem;--padding-tertiary-inline:0.25rem;--padding-ghost-inline:0.5rem}.jkl-button[data-density=compact],.jkl-button[data-layout-density=compact],[data-density=compact] .jkl-button,[data-layout-density=compact] .jkl-button{--padding-block:0.25rem;--padding-text:0.75rem;--padding-icon:0.5rem;--padding-icon-button:0.25rem;--padding-tertiary-inline:0.125rem;--padding-ghost-inline:0.25rem;font-size:1rem;font-weight:400;line-height:1.5rem;--jkl-icon-weight:300;--jkl-icon-size:1.25rem;--jkl-icon-opsz:20;--jkl-icon-weight:500;font-weight:700}.jkl-button{--text-color:var(--jkl-color-text-default);--background-color:transparent;--border-radius:0;--border-width:0.0625rem;background-color:var(--background-color);border:unset;color:var(--text-color);cursor:pointer;text-decoration:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border-radius:var(--border-radius);font-size:1.125rem;font-weight:400;line-height:1.75rem;max-width:100%;overflow:hidden;padding-block:var(--padding-block);padding-inline:var(--padding-text);position:relative;transition-duration:.15s;transition-property:scale;transition-timing-function:ease;--jkl-icon-weight:300;--jkl-icon-weight:500;font-weight:700}@media (min-width:680px){.jkl-button{font-size:1.25rem;font-weight:400;line-height:2rem;--jkl-icon-weight:300;--jkl-icon-weight:500;font-weight:700}}.jkl-button:has(.jkl-icon:first-child){padding-inline-start:var(--padding-icon)}.jkl-button:has(.jkl-icon:last-child){padding-inline-end:var(--padding-icon)}.jkl-button:has(.jkl-icon:first-child):has(.jkl-icon:last-child){padding-inline:var(--padding-icon-button)}.jkl-button__label{align-items:center;display:flex;flex-direction:row;gap:.125rem;pointer-events:none;transition-duration:.25s;transition-property:translate;transition-timing-function:ease}.jkl-button__loader{left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transition-duration:.25s;transition-property:opacity,translate;transition-timing-function:ease;translate:-50% 350%}.jkl-button__text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jkl-button[data-loading=true] .jkl-button__label{translate:0 -120%}.jkl-button[data-loading=true] .jkl-button__loader{opacity:1;translate:-50% -50%}.jkl-button:focus-visible{outline:2px solid var(--jkl-color-border-action);outline-offset:2px}.jkl-button:before{background-color:var(--text-color);border-radius:9999px;content:"";display:block;height:1rem;left:var(--jkl-touch-xcoord,50%);opacity:0;pointer-events:none;position:absolute;top:var(--jkl-touch-ycoord,50%);transform-origin:center;translate:-100%,-100%;width:1rem}html[data-touchnavigation] .jkl-button.jkl-button--pressed:before{animation:jkl-tertiary-flash-ubnpk7x .25s cubic-bezier(.6,.2,.35,1)}:not([data-touchnavigation]) .jkl-button--primary:hover,:not([data-touchnavigation]) .jkl-button--secondary:hover,:not([data-touchnavigation]) .jkl-button--tertiary:hover{scale:1.05;transform-origin:center}.jkl-button--primary,.jkl-button--secondary{--border-radius:999px}.jkl-button--primary{--background-color:var(--jkl-color-background-action);--text-color:var(--jkl-color-text-on-action)}.jkl-button--secondary:after{border:var(--border-width) solid var(--text-color);border-radius:var(--border-radius);content:"";inset:0;position:absolute}.jkl-button--tertiary,.jkl-button--tertiary:has(.jkl-icon:first-child),.jkl-button--tertiary:has(.jkl-icon:last-child){padding-inline:var(--padding-tertiary-inline)}.jkl-button--tertiary:after,.jkl-button--tertiary:has(.jkl-icon:first-child):after,.jkl-button--tertiary:has(.jkl-icon:last-child):after{border-bottom:var(--border-width) solid var(--text-color);border-radius:var(--border-radius);content:"";inset:0;position:absolute}.jkl-button--tertiary:focus-visible,.jkl-button--tertiary:has(.jkl-icon:first-child):focus-visible,.jkl-button--tertiary:has(.jkl-icon:first-child):hover,.jkl-button--tertiary:has(.jkl-icon:last-child):focus-visible,.jkl-button--tertiary:has(.jkl-icon:last-child):hover,.jkl-button--tertiary:hover{--border-width:0.125rem}.jkl-button--ghost,.jkl-button--ghost:has(.jkl-icon:first-child),.jkl-button--ghost:has(.jkl-icon:last-child){border-radius:.25rem;padding-inline:var(--padding-ghost-inline);transition-duration:.15s;transition-property:background-color;transition-timing-function:ease}.jkl-button--ghost:has(.jkl-icon:first-child):hover,.jkl-button--ghost:has(.jkl-icon:last-child):hover,.jkl-button--ghost:hover{--background-color:var(--jkl-color-background-interactive-hover)}@keyframes jkl-tertiary-flash-ubnpk7x{0%{opacity:.5;scale:1}to{opacity:0;scale:8}}
|
|
@@ -130,7 +130,8 @@ $_flash-animation-name: jkl-tertiary-flash-#{string.unique-id()};
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
html[data-touchnavigation] &.jkl-button--pressed::before {
|
|
133
|
-
animation: jkl.easing("focus") jkl.timing("expressive")
|
|
133
|
+
animation: jkl.easing("focus") jkl.timing("expressive")
|
|
134
|
+
$_flash-animation-name;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
&--primary,
|
|
@@ -321,7 +321,9 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-nav-card:focus
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.jkl-card-image {
|
|
324
|
-
--margin: calc(
|
|
324
|
+
--margin: calc(
|
|
325
|
+
var(--padding, 0) * -1
|
|
326
|
+
);
|
|
325
327
|
width: calc(100% + 2 * var(--padding, 0));
|
|
326
328
|
aspect-ratio: var(--image-aspect-ratio, 3/2);
|
|
327
329
|
margin-inline: var(--margin, 0);
|
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.jkl-card-image {
|
|
86
|
-
--margin: calc(
|
|
86
|
+
--margin: calc(
|
|
87
|
+
var(--padding, 0) * -1
|
|
88
|
+
); // Sett negativ margin tilsvarende padding (fra Card)
|
|
87
89
|
|
|
88
90
|
width: calc(100% + 2 * var(--padding, 0));
|
|
89
91
|
aspect-ratio: var(--image-aspect-ratio, 3/2);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--jkl-checkbox-line-height: 1.5rem;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
@keyframes jkl-checkbox-checked-
|
|
35
|
+
@keyframes jkl-checkbox-checked-u7v26ib {
|
|
36
36
|
0% {
|
|
37
37
|
width: 0;
|
|
38
38
|
height: 0;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
height: 58%;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
@keyframes jkl-checkbox-indeterminate-
|
|
49
|
+
@keyframes jkl-checkbox-indeterminate-u7v26jb {
|
|
50
50
|
0% {
|
|
51
51
|
width: 0;
|
|
52
52
|
}
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
top: -6px;
|
|
75
75
|
}
|
|
76
76
|
.jkl-checkbox__input:checked + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
|
|
77
|
-
animation: jkl-checkbox-checked-
|
|
77
|
+
animation: jkl-checkbox-checked-u7v26ib 150ms ease-in-out forwards;
|
|
78
78
|
opacity: 1;
|
|
79
79
|
}
|
|
80
80
|
.jkl-checkbox__input:indeterminate:not(:checked) + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
|
|
81
|
-
animation: jkl-checkbox-indeterminate-
|
|
81
|
+
animation: jkl-checkbox-indeterminate-u7v26jb 150ms ease-in-out forwards;
|
|
82
82
|
opacity: 1;
|
|
83
83
|
}
|
|
84
84
|
.jkl-checkbox__input:focus-visible + .jkl-checkbox__label {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-
|
|
1
|
+
:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-u7v26ib{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@keyframes jkl-checkbox-indeterminate-u7v26jb{0%{width:0}to{width:66%}}.jkl-checkbox{--box-color:var(--jkl-color-border-action);--check-color:var(--jkl-color-border-action);--text-color:var(--jkl-color-text-default);--background-color:transparent;color:var(--text-color);display:flex;flex-wrap:wrap;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:var(--jkl-checkbox-line-height);min-height:var(--jkl-checkbox-height);position:relative}.jkl-checkbox__input{opacity:0;position:absolute;top:-6px}.jkl-checkbox__input:checked+.jkl-checkbox__label .jkl-checkbox__check-mark:after{animation:jkl-checkbox-checked-u7v26ib .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:indeterminate:not(:checked)+.jkl-checkbox__label .jkl-checkbox__indeterminate-mark:after{animation:jkl-checkbox-indeterminate-u7v26jb .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label{color:var(--jkl-checkbox-focus-color)}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label>.jkl-checkbox__mark{--background-color:var(--jkl-color-background-input-focus);outline:2px solid var(--jkl-color-border-action);outline-offset:2px}.jkl-checkbox__input:disabled+.jkl-checkbox__label{color:var(--jkl-checkbox-disabled-color)}.jkl-checkbox__label{cursor:pointer;display:flex;flex-shrink:0;max-width:100%;min-width:0}.jkl-checkbox__label:active .jkl-checkbox__mark,.jkl-checkbox__label:hover .jkl-checkbox__mark{outline:1px solid var(--box-color)}.jkl-checkbox__label:active{--background-color:var(--jkl-color-background-input-focus)}.jkl-checkbox__text{margin:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height))*.5) 0;transition-duration:.15s;transition-property:color;transition-timing-function:ease;translate:0 .0625rem}.jkl-checkbox__mark{align-self:flex-start;background-color:var(--background-color);border:1px solid;border-color:var(--box-color);border-radius:0;box-sizing:border-box;flex-shrink:0;height:var(--jkl-checkbox-box-size);margin-block:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size))*.5);margin-inline-end:var(--jkl-spacing-8);outline:none;position:relative;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease;width:var(--jkl-checkbox-box-size)}@media screen and (forced-colors:active){.jkl-checkbox__mark{border:1px solid ButtonText;outline:revert}}.jkl-checkbox__check-mark:after{border-bottom:.125rem solid var(--check-color);border-left-width:.125rem;border-left:0 solid var(--check-color);border-right:.125rem solid var(--check-color);border-top-width:.125rem;border-top:0 solid var(--check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox__check-mark:after{border-color:ButtonText}}.jkl-checkbox__indeterminate-mark:after{--width:66%;--thickness:0.125rem;border-bottom:solid var(--thickness) var(--check-color);bottom:calc(50% - var(--thickness)/2);content:"";display:block;left:calc((100% - var(--width))/2);opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:var(--width)}@media screen and (forced-colors:active){.jkl-checkbox__indeterminate-mark:after{border-color:ButtonText}}.jkl-checkbox--inline{display:inline-flex}.jkl-checkbox--inline:not(:last-of-type){margin-right:1.5rem}.jkl-checkbox--error{--background-color:var(--jkl-color-background-alert-error);--check-color:var(--jkl-color-text-on-alert)}
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
$_checkbox-checked-animation-name: jkl-checkbox-checked-#{string.unique-id()};
|
|
29
|
-
$_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.unique-id(
|
|
29
|
+
$_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.unique-id(
|
|
30
|
+
|
|
31
|
+
)};
|
|
30
32
|
|
|
31
33
|
@keyframes #{$_checkbox-checked-animation-name} {
|
|
32
34
|
0% {
|
|
@@ -79,7 +81,8 @@ $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.uni
|
|
|
79
81
|
// Checked state:
|
|
80
82
|
&:checked {
|
|
81
83
|
+ .jkl-checkbox__label .jkl-checkbox__check-mark::after {
|
|
82
|
-
animation: $_checkbox-checked-animation-name
|
|
84
|
+
animation: $_checkbox-checked-animation-name
|
|
85
|
+
jkl.timing("productive") ease-in-out forwards;
|
|
83
86
|
opacity: 1;
|
|
84
87
|
}
|
|
85
88
|
}
|
|
@@ -87,7 +90,8 @@ $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.uni
|
|
|
87
90
|
// Indeterminate state:
|
|
88
91
|
&:indeterminate:not(:checked) {
|
|
89
92
|
+ .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
|
|
90
|
-
animation: $_checkbox-indeterminate-animation-name
|
|
93
|
+
animation: $_checkbox-indeterminate-animation-name
|
|
94
|
+
jkl.timing("productive") ease-in-out forwards;
|
|
91
95
|
opacity: 1;
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -128,7 +132,11 @@ $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.uni
|
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
&__text {
|
|
131
|
-
margin: calc(
|
|
135
|
+
margin: calc(
|
|
136
|
+
(var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height)) *
|
|
137
|
+
0.5
|
|
138
|
+
)
|
|
139
|
+
0;
|
|
132
140
|
translate: 0 jkl.rem(1px);
|
|
133
141
|
|
|
134
142
|
@include jkl.motion;
|
|
@@ -141,7 +149,9 @@ $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.uni
|
|
|
141
149
|
height: var(--jkl-checkbox-box-size);
|
|
142
150
|
width: var(--jkl-checkbox-box-size);
|
|
143
151
|
|
|
144
|
-
margin-block: calc(
|
|
152
|
+
margin-block: calc(
|
|
153
|
+
(var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size)) * 0.5
|
|
154
|
+
);
|
|
145
155
|
margin-inline-end: var(--jkl-spacing-8);
|
|
146
156
|
align-self: flex-start;
|
|
147
157
|
flex-shrink: 0; // Don't allow the mark to shrink in case of really long text
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
--jkl-combobox-font-size: var(--jkl-body-font-size);
|
|
83
83
|
--jkl-combobox-line-height: var(--jkl-body-line-height);
|
|
84
84
|
--jkl-combobox-font-weight: var(--jkl-body-font-weight);
|
|
85
|
-
--jkl-combobox-button-padding: 0.5rem 0.375rem 0.5rem
|
|
85
|
+
--jkl-combobox-button-padding: 0.5rem 0.375rem 0.5rem
|
|
86
|
+
0.75rem;
|
|
86
87
|
--jkl-combobox-button-active-value-padding: 0.5rem 0.375rem 0.5rem 0.5rem;
|
|
87
88
|
--jkl-combobox-input-height: 3rem;
|
|
88
89
|
--jkl-combobox-actions-right: 0.5rem;
|
|
@@ -109,7 +110,8 @@
|
|
|
109
110
|
--jkl-combobox-font-size: var(--jkl-small-font-size);
|
|
110
111
|
--jkl-combobox-line-height: var(--jkl-small-line-height);
|
|
111
112
|
--jkl-combobox-font-weight: var(--jkl-small-font-weight);
|
|
112
|
-
--jkl-combobox-button-padding: 0.25rem 1.875rem 0.25rem
|
|
113
|
+
--jkl-combobox-button-padding: 0.25rem 1.875rem 0.25rem
|
|
114
|
+
0.5rem;
|
|
113
115
|
--jkl-combobox-button-active-value-padding: 0.25rem 1.875rem 0.25rem 0.5rem;
|
|
114
116
|
--jkl-combobox-input-height: 2rem;
|
|
115
117
|
--jkl-combobox-actions-right: 0;
|
|
@@ -54,8 +54,11 @@ $_combobox-search-input-selection-color--inverted: color.scale(
|
|
|
54
54
|
@include jkl.comfortable-density-variables {
|
|
55
55
|
@include jkl.declare-font-variables("jkl-combobox", "body");
|
|
56
56
|
|
|
57
|
-
--jkl-combobox-button-padding: #{jkl.$spacing-8} #{jkl.rem(6px)} #{jkl.$spacing-8}
|
|
58
|
-
|
|
57
|
+
--jkl-combobox-button-padding: #{jkl.$spacing-8} #{jkl.rem(6px)} #{jkl.$spacing-8}
|
|
58
|
+
#{jkl.$spacing-12};
|
|
59
|
+
--jkl-combobox-button-active-value-padding: #{jkl.$spacing-8} #{jkl.rem(
|
|
60
|
+
6px
|
|
61
|
+
)} #{jkl.$spacing-8} #{jkl.$spacing-8};
|
|
59
62
|
--jkl-combobox-input-height: #{jkl.rem(48px)};
|
|
60
63
|
--jkl-combobox-actions-right: #{jkl.$spacing-8};
|
|
61
64
|
--jkl-combobox-actions-top: #{jkl.rem(12px)};
|
|
@@ -76,8 +79,11 @@ $_combobox-search-input-selection-color--inverted: color.scale(
|
|
|
76
79
|
@include jkl.compact-density-variables {
|
|
77
80
|
@include jkl.declare-font-variables("jkl-combobox", "small");
|
|
78
81
|
|
|
79
|
-
--jkl-combobox-button-padding: #{jkl.$spacing-4} #{jkl.rem(30px)} #{jkl.$spacing-4}
|
|
80
|
-
|
|
82
|
+
--jkl-combobox-button-padding: #{jkl.$spacing-4} #{jkl.rem(30px)} #{jkl.$spacing-4}
|
|
83
|
+
#{jkl.$spacing-8};
|
|
84
|
+
--jkl-combobox-button-active-value-padding: #{jkl.$spacing-4} #{jkl.rem(
|
|
85
|
+
30px
|
|
86
|
+
)} #{jkl.$spacing-4} #{jkl.$spacing-8};
|
|
81
87
|
--jkl-combobox-input-height: #{jkl.rem(32px)};
|
|
82
88
|
--jkl-combobox-actions-right: #{jkl.rem(0)};
|
|
83
89
|
--jkl-combobox-actions-top: #{jkl.rem(6px)};
|
|
@@ -170,7 +176,10 @@ $_combobox-search-input-selection-color--inverted: color.scale(
|
|
|
170
176
|
@include jkl.motion;
|
|
171
177
|
transition-property: transform, color;
|
|
172
178
|
|
|
173
|
-
@include jkl.forced-colors-svg-fallback(
|
|
179
|
+
@include jkl.forced-colors-svg-fallback(
|
|
180
|
+
$stroke: CanvasText,
|
|
181
|
+
$fill: CanvasText
|
|
182
|
+
);
|
|
174
183
|
}
|
|
175
184
|
|
|
176
185
|
&__menu {
|
|
@@ -188,7 +197,10 @@ $_combobox-search-input-selection-color--inverted: color.scale(
|
|
|
188
197
|
border-top: none;
|
|
189
198
|
border-radius: 0 0 jkl.rem(3px) jkl.rem(3px);
|
|
190
199
|
box-sizing: border-box;
|
|
191
|
-
max-height: calc(
|
|
200
|
+
max-height: calc(
|
|
201
|
+
calc(var(--jkl-combobox-max-shown-options, 5) + 0.5) *
|
|
202
|
+
var(--jkl-combobox-input-height)
|
|
203
|
+
);
|
|
192
204
|
}
|
|
193
205
|
|
|
194
206
|
&__option {
|
|
@@ -254,7 +266,8 @@ $_combobox-search-input-selection-color--inverted: color.scale(
|
|
|
254
266
|
|
|
255
267
|
&__marked {
|
|
256
268
|
border-radius: 6px;
|
|
257
|
-
box-shadow: 0 0 0 2px var(--jkl-combobox-marked-value-shadow)
|
|
269
|
+
box-shadow: 0 0 0 2px var(--jkl-combobox-marked-value-shadow)
|
|
270
|
+
inset;
|
|
258
271
|
box-sizing: border-box;
|
|
259
272
|
border: 1px solid var(--jkl-combobox-marked-value-border);
|
|
260
273
|
margin: 0 4px;
|
|
@@ -20,17 +20,20 @@
|
|
|
20
20
|
color: var(--jkl-calendar-text-color);
|
|
21
21
|
|
|
22
22
|
@include jkl.comfortable-density {
|
|
23
|
-
--jkl-calendar-padding: var(--jkl-spacing-12) var(--jkl-spacing-16)
|
|
23
|
+
--jkl-calendar-padding: var(--jkl-spacing-12) var(--jkl-spacing-16)
|
|
24
|
+
var(--jkl-spacing-16);
|
|
24
25
|
--jkl-calendar-gap: var(--jkl-spacing-12);
|
|
25
26
|
|
|
26
27
|
// Custom tweaks for iPhone SE
|
|
27
28
|
@include jkl.screen-to(375px) {
|
|
28
|
-
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
29
|
+
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
30
|
+
var(--jkl-spacing-16);
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
@include jkl.compact-density {
|
|
33
|
-
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
35
|
+
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
36
|
+
var(--jkl-spacing-16);
|
|
34
37
|
--jkl-calendar-gap: 0;
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -38,16 +38,19 @@
|
|
|
38
38
|
color: var(--jkl-calendar-text-color);
|
|
39
39
|
}
|
|
40
40
|
.jkl .jkl-calendar, .jkl-calendar[data-layout-density=comfortable], .jkl-calendar[data-density=comfortable], [data-layout-density=comfortable] .jkl-calendar, [data-density=comfortable] .jkl-calendar {
|
|
41
|
-
--jkl-calendar-padding: var(--jkl-spacing-12) var(--jkl-spacing-16)
|
|
41
|
+
--jkl-calendar-padding: var(--jkl-spacing-12) var(--jkl-spacing-16)
|
|
42
|
+
var(--jkl-spacing-16);
|
|
42
43
|
--jkl-calendar-gap: var(--jkl-spacing-12);
|
|
43
44
|
}
|
|
44
45
|
@media (width >= 0) and (max-width: 374px) {
|
|
45
46
|
.jkl .jkl-calendar, .jkl-calendar[data-layout-density=comfortable], .jkl-calendar[data-density=comfortable], [data-layout-density=comfortable] .jkl-calendar, [data-density=comfortable] .jkl-calendar {
|
|
46
|
-
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
47
|
+
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
48
|
+
var(--jkl-spacing-16);
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
.jkl-calendar[data-layout-density=compact], .jkl-calendar[data-density=compact], [data-layout-density=compact] .jkl-calendar, [data-density=compact] .jkl-calendar {
|
|
50
|
-
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
52
|
+
--jkl-calendar-padding: var(--jkl-spacing-4) var(--jkl-spacing-8)
|
|
53
|
+
var(--jkl-spacing-16);
|
|
51
54
|
--jkl-calendar-gap: 0;
|
|
52
55
|
}
|
|
53
56
|
.jkl-calendar__padding {
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
|
|
43
43
|
&--open {
|
|
44
44
|
.jkl-text-input-wrapper {
|
|
45
|
-
box-shadow: inset 0 0 0 jkl.rem(1px)
|
|
45
|
+
box-shadow: inset 0 0 0 jkl.rem(1px)
|
|
46
|
+
var(--jkl-text-input-focus-color),
|
|
46
47
|
0 0 0 jkl.rem(1px) var(--jkl-text-input-focus-color);
|
|
47
48
|
border-color: var(--jkl-text-input-focus-color);
|
|
48
49
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not edit directly
|
|
3
3
|
* Generated on Mon, 23 Sep 2024 08:51:40 GMT
|
|
4
4
|
*/
|
|
5
|
-
@keyframes jkl-show-
|
|
5
|
+
@keyframes jkl-show-uytl86e {
|
|
6
6
|
from {
|
|
7
7
|
transform: translate3d(0, 0.5rem, 0);
|
|
8
8
|
opacity: 0;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
.jkl-feedback__fade-in {
|
|
40
|
-
animation: jkl-show-
|
|
40
|
+
animation: jkl-show-uytl86e 0.25s ease-out;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.jkl-feedback-smileys {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes jkl-show-
|
|
1
|
+
@keyframes jkl-show-uytl86e{0%{opacity:0;transform:translate3d(0,.5rem,0)}}.jkl-feedback{max-width:34.375rem}.jkl-feedback__submit-wrapper{transition-duration:.25s;transition-property:height;transition-timing-function:ease;width:100%}.jkl-feedback__submit-wrapper--hidden{display:none}.jkl-feedback__step-counter{color:var(--jkl-color-text-subdued);font-size:1.125rem;font-weight:400;line-height:1.75rem;margin-bottom:1rem;--jkl-icon-weight:300}@media (min-width:680px){.jkl-feedback__step-counter{font-size:1.25rem;font-weight:400;line-height:2rem;--jkl-icon-weight:300}}.jkl-feedback__fade-in{animation:jkl-show-uytl86e .25s ease-out}.jkl-feedback-smileys{display:flex;flex-wrap:nowrap;gap:.75rem;justify-content:space-between;margin-top:.5rem;max-width:22.5rem;width:100%}.jkl-feedback-smiley-option{color:var(--jkl-color-text-subdued);cursor:pointer;display:inline-block;height:2.5rem;position:relative;transform:translateZ(0);transition-duration:.15s;transition-property:transform,color;transition-timing-function:ease;width:2.5rem}@media screen and (forced-colors:active){.jkl-feedback-smiley-option,.jkl-feedback-smiley-option path,.jkl-feedback-smiley-option svg{stroke:ButtonFace;fill:ButtonText}}.jkl-feedback-smiley-option:after,.jkl-feedback-smiley-option:before{border-radius:50%;content:"";opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity;transition-timing-function:ease}.jkl-feedback-smiley-option:after{box-shadow:0 0 0 .125rem currentColor;inset:-.125rem -.125rem -.125rem -.125rem}.jkl-feedback-smiley-option:before{box-shadow:0 .125rem 1.875rem rgba(0,0,0,.1);inset:0}.jkl-feedback-smiley-option:hover{color:var(--jkl-color-text-default)}input:checked+.jkl-feedback-smiley-option{color:var(--jkl-color-text-default);transform:translate3d(0,-20%,0)}input:checked+.jkl-feedback-smiley-option:before{opacity:1}html:not([data-mousenavigation]):not([data-touchnavigation]) input:focus+.jkl-feedback-smiley-option:after{opacity:1}
|
|
@@ -59,7 +59,10 @@ $_show-animation-name: jkl-show-#{string.unique-id()};
|
|
|
59
59
|
@include jkl.motion;
|
|
60
60
|
transition-property: transform, color;
|
|
61
61
|
|
|
62
|
-
@include jkl.forced-colors-svg-fallback(
|
|
62
|
+
@include jkl.forced-colors-svg-fallback(
|
|
63
|
+
$stroke: ButtonFace,
|
|
64
|
+
$fill: ButtonText
|
|
65
|
+
);
|
|
63
66
|
|
|
64
67
|
&::before,
|
|
65
68
|
&::after {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
--jkl-icon-fill: 0;
|
|
14
14
|
|
|
15
15
|
font-family: "Fremtind Material Symbols", Arial, Helvetica, sans-serif;
|
|
16
|
-
font-variation-settings: "FILL" var(--jkl-icon-fill, 0),
|
|
17
|
-
"opsz" var(--jkl-icon-opsz, 24);
|
|
16
|
+
font-variation-settings: "FILL" var(--jkl-icon-fill, 0),
|
|
17
|
+
"GRAD" var(--jkl-icon-grade, 0), "opsz" var(--jkl-icon-opsz, 24);
|
|
18
18
|
font-feature-settings: "liga";
|
|
19
19
|
-webkit-font-feature-settings: "liga";
|
|
20
20
|
font-size: var(--jkl-icon-size, #{jkl.rem(24px)});
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
$_support-icon-entrance-animation-name: jkl-support-icon-entrance-#{string.unique-id(
|
|
10
|
+
$_support-icon-entrance-animation-name: jkl-support-icon-entrance-#{string.unique-id(
|
|
11
|
+
|
|
12
|
+
)};
|
|
11
13
|
|
|
12
14
|
@include jkl.comfortable-density-variables {
|
|
13
15
|
@include jkl.declare-font-variables("jkl-form-support-label", "small");
|
|
@@ -43,7 +45,10 @@ $_support-icon-entrance-animation-name: jkl-support-icon-entrance-#{string.uniqu
|
|
|
43
45
|
height: var(--jkl-form-support-label-icon-size);
|
|
44
46
|
margin: var(--jkl-form-support-label-icon-margin);
|
|
45
47
|
|
|
46
|
-
@include jkl.forced-colors-svg-fallback(
|
|
48
|
+
@include jkl.forced-colors-svg-fallback(
|
|
49
|
+
$stroke: CanvasText,
|
|
50
|
+
$fill: Canvas
|
|
51
|
+
);
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
&--error,
|
|
@@ -52,8 +57,9 @@ $_support-icon-entrance-animation-name: jkl-support-icon-entrance-#{string.uniqu
|
|
|
52
57
|
--color: var(--jkl-color-text-default);
|
|
53
58
|
|
|
54
59
|
.jkl-form-support-label__icon {
|
|
55
|
-
animation: jkl.timing("lazy") cubic-bezier(0, 0, 0.3, 1)
|
|
56
|
-
$_support-icon-entrance-animation-name
|
|
60
|
+
animation: jkl.timing("lazy") cubic-bezier(0, 0, 0.3, 1)
|
|
61
|
+
jkl.timing("expressive") $_support-icon-entrance-animation-name
|
|
62
|
+
forwards;
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -83,7 +89,9 @@ $_support-icon-entrance-animation-name: jkl-support-icon-entrance-#{string.uniqu
|
|
|
83
89
|
|
|
84
90
|
--jkl-label-small-margin: 0 0 #{$_label-spacing-small--compact} 0;
|
|
85
91
|
--jkl-label-medium-margin: 0 0 #{$_label-spacing-medium--compact} 0;
|
|
86
|
-
--jkl-label-large-margin: 0 0 #{$_label-spacing-large--compact} #{jkl.rem(
|
|
92
|
+
--jkl-label-large-margin: 0 0 #{$_label-spacing-large--compact} #{jkl.rem(
|
|
93
|
+
-1px
|
|
94
|
+
)};
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
.jkl-label {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
--color: var(--jkl-color-text-default);
|
|
79
79
|
}
|
|
80
80
|
.jkl-form-support-label--error .jkl-form-support-label__icon, .jkl-form-support-label--warning .jkl-form-support-label__icon, .jkl-form-support-label--success .jkl-form-support-label__icon {
|
|
81
|
-
animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-
|
|
81
|
+
animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-unl5y5g forwards;
|
|
82
82
|
}
|
|
83
83
|
.jkl-form-support-label--sr-only {
|
|
84
84
|
border: 0 !important;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
white-space: nowrap !important; /* 3 */
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
@keyframes jkl-support-icon-entrance-
|
|
156
|
+
@keyframes jkl-support-icon-entrance-unl5y5g {
|
|
157
157
|
0% {
|
|
158
158
|
margin-right: 0;
|
|
159
159
|
opacity: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.jkl-field-group{border-style:none;outline:0;outline-style:none}.jkl-field-group:active,.jkl-field-group:focus,.jkl-field-group:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-field-group{border-style:revert;outline:revert;outline-style:revert}.jkl-field-group:active,.jkl-field-group:focus,.jkl-field-group:hover{outline:revert;outline-style:revert}}.jkl-dormant-form-support-label{display:none;opacity:0;pointer-events:none}:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-form-support-label-font-size:var(--jkl-small-font-size);--jkl-form-support-label-line-height:var(--jkl-small-line-height);--jkl-form-support-label-font-weight:var(--jkl-small-font-weight);--jkl-form-support-label-margin:0.5rem 0 0;--jkl-form-support-label-icon-size:1.25rem;--jkl-form-support-label-icon-margin:0 -1.25rem -0.375rem 0}[data-density=compact],[data-layout-density=compact]{--jkl-form-support-label-icon-size:1.375rem;--jkl-form-support-label-icon-margin:0 -1.375rem -0.3125rem 0}.jkl-form-support-label{--color:var(--jkl-color-text-subdued);color:var(--color);display:flex;font-size:var(--jkl-form-support-label-font-size);font-weight:var(--jkl-form-support-label-font-weight);line-height:var(--jkl-form-support-label-line-height);margin:var(--jkl-form-support-label-margin);transition-delay:.15s;transition-duration:.4s;transition-property:color;transition-timing-function:ease}.jkl-form-support-label__icon,.jkl-form-support-label__icon.jkl-icon{height:var(--jkl-form-support-label-icon-size);margin:var(--jkl-form-support-label-icon-margin);opacity:0}@media screen and (forced-colors:active){.jkl-form-support-label__icon,.jkl-form-support-label__icon path,.jkl-form-support-label__icon svg,.jkl-form-support-label__icon.jkl-icon,.jkl-form-support-label__icon.jkl-icon path,.jkl-form-support-label__icon.jkl-icon svg{stroke:CanvasText;fill:Canvas}}.jkl-form-support-label--error,.jkl-form-support-label--success,.jkl-form-support-label--warning{--color:var(--jkl-color-text-default)}.jkl-form-support-label--error .jkl-form-support-label__icon,.jkl-form-support-label--success .jkl-form-support-label__icon,.jkl-form-support-label--warning .jkl-form-support-label__icon{animation:jkl-support-icon-entrance-
|
|
1
|
+
.jkl-field-group{border-style:none;outline:0;outline-style:none}.jkl-field-group:active,.jkl-field-group:focus,.jkl-field-group:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-field-group{border-style:revert;outline:revert;outline-style:revert}.jkl-field-group:active,.jkl-field-group:focus,.jkl-field-group:hover{outline:revert;outline-style:revert}}.jkl-dormant-form-support-label{display:none;opacity:0;pointer-events:none}:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-form-support-label-font-size:var(--jkl-small-font-size);--jkl-form-support-label-line-height:var(--jkl-small-line-height);--jkl-form-support-label-font-weight:var(--jkl-small-font-weight);--jkl-form-support-label-margin:0.5rem 0 0;--jkl-form-support-label-icon-size:1.25rem;--jkl-form-support-label-icon-margin:0 -1.25rem -0.375rem 0}[data-density=compact],[data-layout-density=compact]{--jkl-form-support-label-icon-size:1.375rem;--jkl-form-support-label-icon-margin:0 -1.375rem -0.3125rem 0}.jkl-form-support-label{--color:var(--jkl-color-text-subdued);color:var(--color);display:flex;font-size:var(--jkl-form-support-label-font-size);font-weight:var(--jkl-form-support-label-font-weight);line-height:var(--jkl-form-support-label-line-height);margin:var(--jkl-form-support-label-margin);transition-delay:.15s;transition-duration:.4s;transition-property:color;transition-timing-function:ease}.jkl-form-support-label__icon,.jkl-form-support-label__icon.jkl-icon{height:var(--jkl-form-support-label-icon-size);margin:var(--jkl-form-support-label-icon-margin);opacity:0}@media screen and (forced-colors:active){.jkl-form-support-label__icon,.jkl-form-support-label__icon path,.jkl-form-support-label__icon svg,.jkl-form-support-label__icon.jkl-icon,.jkl-form-support-label__icon.jkl-icon path,.jkl-form-support-label__icon.jkl-icon svg{stroke:CanvasText;fill:Canvas}}.jkl-form-support-label--error,.jkl-form-support-label--success,.jkl-form-support-label--warning{--color:var(--jkl-color-text-default)}.jkl-form-support-label--error .jkl-form-support-label__icon,.jkl-form-support-label--success .jkl-form-support-label__icon,.jkl-form-support-label--warning .jkl-form-support-label__icon{animation:jkl-support-icon-entrance-unl5y5g .4s cubic-bezier(0,0,.3,1) .25s forwards}.jkl-form-support-label--sr-only{border:0!important;clip:rect(1px,1px,1px,1px)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-label-small-margin:0 0 0.25rem 0;--jkl-label-medium-margin:0 0 0.5rem 0;--jkl-label-large-margin:0 0 1rem -0.0625rem;--jkl-label-small-font-size:var(--jkl-small-font-size);--jkl-label-small-line-height:var(--jkl-small-line-height);--jkl-label-small-font-weight:var(--jkl-small-font-weight);--jkl-label-medium-font-size:var(--jkl-body-font-size);--jkl-label-medium-line-height:var(--jkl-body-line-height);--jkl-label-medium-font-weight:var(--jkl-body-font-weight);--jkl-label-large-font-size:var(--jkl-heading-2-font-size);--jkl-label-large-line-height:var(--jkl-heading-2-line-height);--jkl-label-large-font-weight:var(--jkl-heading-2-font-weight)}[data-density=compact],[data-layout-density=compact]{--jkl-label-small-margin:0 0 0.25rem 0;--jkl-label-medium-margin:0 0 0.5rem 0;--jkl-label-large-margin:0 0 0.75rem -0.0625rem}.jkl-label{color:var(--jkl-color-text-default);display:block;margin-left:0}.jkl-label--small{font-size:var(--jkl-label-small-font-size);font-weight:var(--jkl-label-small-font-weight);line-height:var(--jkl-label-small-line-height);margin:var(--jkl-label-small-margin)}.jkl-label--medium{font-size:var(--jkl-label-medium-font-size);font-weight:var(--jkl-label-medium-font-weight);line-height:var(--jkl-label-medium-line-height);margin:var(--jkl-label-medium-margin)}.jkl-label--large{font-size:var(--jkl-label-large-font-size);font-weight:var(--jkl-label-large-font-weight);line-height:var(--jkl-label-large-line-height);margin:var(--jkl-label-large-margin)}.jkl-label--sr-only{border:0!important;clip:rect(1px,1px,1px,1px)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}@keyframes jkl-support-icon-entrance-unl5y5g{0%{margin-right:0;opacity:0;transform:scale(1)}30%{margin-right:.5rem}50%{opacity:1}70%{transform:scale(1.1)}85%{transform:scale(.9)}to{margin-right:.5rem;opacity:1;transform:scale(1)}}@media screen and (forced-colors:active){.jkl-text-input-action-button,.jkl-text-input-action-button path,.jkl-text-input-action-button svg{stroke:ButtonText;fill:ButtonFace}}
|
|
@@ -25,7 +25,13 @@ $_link-underline-thickness--focus: jkl.rem(2px);
|
|
|
25
25
|
.jkl-link {
|
|
26
26
|
color: var(--jkl-link-color);
|
|
27
27
|
@include _underline-gradient(var(--jkl-link-color));
|
|
28
|
-
background-position: 0
|
|
28
|
+
background-position: 0
|
|
29
|
+
calc(
|
|
30
|
+
100% -
|
|
31
|
+
(
|
|
32
|
+
#{$_link-underline-thickness--focus} - #{$_link-underline-thickness}
|
|
33
|
+
)
|
|
34
|
+
);
|
|
29
35
|
background-size: $_link-underline-thickness $_link-underline-thickness;
|
|
30
36
|
background-repeat: repeat-x;
|
|
31
37
|
@include jkl.motion("standard", "energetic");
|
|
@@ -48,7 +54,13 @@ $_link-underline-thickness--focus: jkl.rem(2px);
|
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
&:active {
|
|
51
|
-
background-position: 0
|
|
57
|
+
background-position: 0
|
|
58
|
+
calc(
|
|
59
|
+
100% -
|
|
60
|
+
(
|
|
61
|
+
#{$_link-underline-thickness--focus} - #{$_link-underline-thickness}
|
|
62
|
+
)
|
|
63
|
+
);
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
/* Show arrow after external links, or links opening
|
|
@@ -49,16 +49,28 @@ $_color-feil--darkbg: #ff8b79;
|
|
|
49
49
|
@include jkl.light-mode-variables {
|
|
50
50
|
--jkl-list-marker-default: #{_solid-diamond(jkl.$color-granitt)};
|
|
51
51
|
--jkl-list-marker-secondary: #{_outline-diamond(jkl.$color-granitt)};
|
|
52
|
-
--jkl-list-marker-cross: #{_cross(
|
|
53
|
-
|
|
52
|
+
--jkl-list-marker-cross: #{_cross(
|
|
53
|
+
jkl.$color-functional-error,
|
|
54
|
+
jkl.$color-granitt
|
|
55
|
+
)};
|
|
56
|
+
--jkl-list-marker-check: #{_check(
|
|
57
|
+
jkl.$color-functional-success,
|
|
58
|
+
jkl.$color-granitt
|
|
59
|
+
)};
|
|
54
60
|
--jkl-list-text-color: #{jkl.$color-granitt};
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
@include jkl.dark-mode-variables {
|
|
58
64
|
--jkl-list-marker-default: #{_solid-diamond(jkl.$color-snohvit)};
|
|
59
65
|
--jkl-list-marker-secondary: #{_outline-diamond(jkl.$color-snohvit)};
|
|
60
|
-
--jkl-list-marker-cross: #{_cross(
|
|
61
|
-
|
|
66
|
+
--jkl-list-marker-cross: #{_cross(
|
|
67
|
+
jkl.$color-functional-error-dark,
|
|
68
|
+
jkl.$color-granitt
|
|
69
|
+
)};
|
|
70
|
+
--jkl-list-marker-check: #{_check(
|
|
71
|
+
jkl.$color-functional-success-dark,
|
|
72
|
+
jkl.$color-granitt
|
|
73
|
+
)};
|
|
62
74
|
--jkl-list-text-color: #{jkl.$color-snohvit};
|
|
63
75
|
}
|
|
64
76
|
|
|
@@ -145,11 +157,14 @@ $_color-feil--darkbg: #ff8b79;
|
|
|
145
157
|
}
|
|
146
158
|
|
|
147
159
|
@include jkl.forced-colors-mode {
|
|
148
|
-
&:not(.jkl-list--ordered)
|
|
160
|
+
&:not(.jkl-list--ordered)
|
|
161
|
+
> .jkl-list__item:not(.jkl-list__item--iconed) {
|
|
149
162
|
list-style: disc _solid-diamond(CanvasText);
|
|
150
163
|
}
|
|
151
164
|
|
|
152
|
-
&
|
|
165
|
+
&
|
|
166
|
+
&:not(.jkl-list--ordered):not(.jkl-list--iconed)
|
|
167
|
+
> .jkl-list__item:not(.jkl-list__item--iconed) {
|
|
153
168
|
list-style: disc _outline-diamond(CanvasText);
|
|
154
169
|
}
|
|
155
170
|
|