@fremtind/jokul 4.2.0 → 4.4.0
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/checkbox/Checkbox.cjs +1 -1
- package/build/cjs/components/checkbox/Checkbox.cjs.map +1 -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/cookie-consent/CookieConsent.d.cts +1 -1
- package/build/cjs/components/cookie-consent/types.d.cts +4 -0
- package/build/cjs/components/modal/Modal.cjs +1 -1
- package/build/cjs/components/modal/Modal.cjs.map +1 -1
- package/build/cjs/components/modal/Modal.d.cts +2 -9
- package/build/cjs/components/modal/index.d.cts +1 -1
- package/build/cjs/components/modal/types.d.cts +18 -0
- package/build/cjs/components/radio-button/BaseRadioButton.cjs +1 -1
- package/build/cjs/components/radio-button/BaseRadioButton.cjs.map +1 -1
- package/build/es/components/checkbox/Checkbox.js +1 -1
- package/build/es/components/checkbox/Checkbox.js.map +1 -1
- package/build/es/components/cookie-consent/CookieConsent.d.ts +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/cookie-consent/types.d.ts +4 -0
- package/build/es/components/modal/Modal.d.ts +2 -9
- package/build/es/components/modal/Modal.js +1 -1
- package/build/es/components/modal/Modal.js.map +1 -1
- package/build/es/components/modal/index.d.ts +1 -1
- package/build/es/components/modal/types.d.ts +18 -0
- package/build/es/components/radio-button/BaseRadioButton.js +1 -1
- package/build/es/components/radio-button/BaseRadioButton.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/checkbox/checkbox.css +13 -9
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +25 -22
- package/styles/components/checkbox-panel/checkbox-panel.css +28 -22
- package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
- package/styles/components/countdown/countdown.css +2 -2
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/datepicker/_calendar-date-button.scss +5 -5
- package/styles/components/datepicker/_calendar.scss +5 -6
- package/styles/components/datepicker/datepicker.css +13 -5
- package/styles/components/datepicker/datepicker.min.css +1 -1
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file-input/file-input.css +9 -9
- package/styles/components/file-input/file-input.min.css +1 -1
- 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-panel/input-panel.css +15 -13
- package/styles/components/input-panel/input-panel.min.css +1 -1
- package/styles/components/input-panel/input-panel.scss +17 -15
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +3 -3
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/message/message.css +2 -2
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/modal/_layout.scss +22 -0
- package/styles/components/modal/_modal-base.scss +32 -0
- package/styles/components/modal/_motion.scss +45 -0
- package/styles/components/modal/_overlay.scss +20 -0
- package/styles/components/modal/_parts.scss +33 -0
- package/styles/components/modal/_placement.scss +59 -0
- package/styles/components/modal/modal.css +117 -33
- package/styles/components/modal/modal.min.css +1 -1
- package/styles/components/modal/modal.scss +6 -95
- package/styles/components/progress-bar/progress-bar.css +1 -1
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/radio-button/radio-button.css +12 -8
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-button/radio-button.scss +20 -17
- package/styles/components/radio-panel/radio-panel.css +15 -13
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.css +14 -10
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/toast/toast.css +4 -4
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components-beta/select/select.css +1 -1
- package/styles/components-beta/select/select.min.css +1 -1
- package/styles/components-beta/select/select.scss +1 -1
- package/styles/styles.css +194 -92
- package/styles/styles.min.css +1 -1
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
animation: 2500ms linear infinite;
|
|
20
20
|
}
|
|
21
21
|
.jkl-loader__dot--left {
|
|
22
|
-
animation-name: jkl-loader-left-spin-
|
|
22
|
+
animation-name: jkl-loader-left-spin-uy27qas;
|
|
23
23
|
margin-right: calc(var(--jkl-loader-spacing) * 0.9);
|
|
24
24
|
}
|
|
25
25
|
.jkl-loader__dot--middle {
|
|
26
|
-
animation-name: jkl-loader-middle-spin-
|
|
26
|
+
animation-name: jkl-loader-middle-spin-uy27qb2;
|
|
27
27
|
margin-right: var(--jkl-loader-spacing);
|
|
28
28
|
}
|
|
29
29
|
.jkl-loader__dot--right {
|
|
30
|
-
animation-name: jkl-loader-right-spin-
|
|
30
|
+
animation-name: jkl-loader-right-spin-uy27qbg;
|
|
31
31
|
}
|
|
32
32
|
@media screen and (forced-colors: active) {
|
|
33
33
|
.jkl-loader__dot {
|
|
34
34
|
background-color: CanvasText;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
@keyframes jkl-loader-left-spin-
|
|
37
|
+
@keyframes jkl-loader-left-spin-uy27qas {
|
|
38
38
|
0% {
|
|
39
39
|
transform: rotate(0) scale(0);
|
|
40
40
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
transform: rotate(180deg) scale(0);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
@keyframes jkl-loader-middle-spin-
|
|
51
|
+
@keyframes jkl-loader-middle-spin-uy27qb2 {
|
|
52
52
|
0% {
|
|
53
53
|
transform: rotate(20deg) scale(0);
|
|
54
54
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
transform: rotate(200deg) scale(0);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
@keyframes jkl-loader-right-spin-
|
|
68
|
+
@keyframes jkl-loader-right-spin-uy27qbg {
|
|
69
69
|
0% {
|
|
70
70
|
transform: rotate(40deg) scale(0);
|
|
71
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-loader{--jkl-loader-dot-size:var(--jkl-unit-10);--jkl-loader-spacing:var(--jkl-unit-20);display:flex}.jkl-loader--inline{display:inline-flex}.jkl-loader__dot{animation:2.5s linear infinite;background-color:currentColor;display:block;height:var(--jkl-loader-dot-size);transform-origin:center;width:var(--jkl-loader-dot-size)}.jkl-loader__dot--left{animation-name:jkl-loader-left-spin-
|
|
1
|
+
@layer jokul.components{.jkl-loader{--jkl-loader-dot-size:var(--jkl-unit-10);--jkl-loader-spacing:var(--jkl-unit-20);display:flex}.jkl-loader--inline{display:inline-flex}.jkl-loader__dot{animation:2.5s linear infinite;background-color:currentColor;display:block;height:var(--jkl-loader-dot-size);transform-origin:center;width:var(--jkl-loader-dot-size)}.jkl-loader__dot--left{animation-name:jkl-loader-left-spin-uy27qas;margin-right:calc(var(--jkl-loader-spacing)*.9)}.jkl-loader__dot--middle{animation-name:jkl-loader-middle-spin-uy27qb2;margin-right:var(--jkl-loader-spacing)}.jkl-loader__dot--right{animation-name:jkl-loader-right-spin-uy27qbg}@media screen and (forced-colors:active){.jkl-loader__dot{background-color:CanvasText}}@keyframes jkl-loader-left-spin-uy27qas{0%{transform:rotate(0) scale(0)}30%{transform:rotate(90deg) scale(1)}70%{transform:rotate(180deg) scale(0)}to{transform:rotate(180deg) scale(0)}}@keyframes jkl-loader-middle-spin-uy27qb2{0%{transform:rotate(20deg) scale(0)}10%{transform:rotate(20deg) scale(0)}40%{transform:rotate(110deg) scale(1.4)}85%{transform:rotate(200deg) scale(0)}to{transform:rotate(200deg) scale(0)}}@keyframes jkl-loader-right-spin-uy27qbg{0%{transform:rotate(40deg) scale(0)}20%{transform:rotate(40deg) scale(0)}50%{transform:rotate(130deg) scale(1)}to{transform:rotate(220deg) scale(0)}}}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@media screen and (forced-colors: active) {
|
|
27
27
|
.jkl-skeleton-element {
|
|
28
28
|
border: 1px solid CanvasText;
|
|
29
|
-
animation: 2s ease infinite jkl-blink-
|
|
29
|
+
animation: 2s ease infinite jkl-blink-umofwyi;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
.jkl-skeleton-input {
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
}
|
|
75
75
|
@media screen and (forced-colors: active) {
|
|
76
76
|
.jkl-skeleton-table {
|
|
77
|
-
animation: 2s ease-in-out infinite jkl-blink-
|
|
77
|
+
animation: 2s ease-in-out infinite jkl-blink-umofwyi;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
@keyframes jkl-blink-
|
|
80
|
+
@keyframes jkl-blink-umofwyi {
|
|
81
81
|
0% {
|
|
82
82
|
opacity: 1;
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{@property --jkl-skeleton-sweeper-position{syntax:"<percentage>";initial-value:0%;inherits:true}.jkl-skeleton-animation{--jkl-skeleton-element-color:var(--jkl-color-background-container-low);--jkl-skeleton-sweep-duration:4500ms;--jkl-skeleton-sweeper-width:40%;animation:var(--jkl-skeleton-sweep-duration) ease-in-out infinite --jkl-skeleton-sweep;-webkit-mask-image:linear-gradient(to right,#000 calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)),transparent calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)/2),#000 var(--jkl-skeleton-sweeper-position));mask-image:linear-gradient(to right,#000 calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)),transparent calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)/2),#000 var(--jkl-skeleton-sweeper-position));-webkit-mask-position:center;mask-position:center;-webkit-mask-size:100dvi 100dvb;mask-size:100dvi 100dvb}.jkl-skeleton-element{background-color:var(--jkl-skeleton-element-color);border-radius:.125rem}.jkl-skeleton-element--circle{border-radius:50%}@media screen and (forced-colors:active){.jkl-skeleton-element{animation:jkl-blink-
|
|
1
|
+
@layer jokul.components{@property --jkl-skeleton-sweeper-position{syntax:"<percentage>";initial-value:0%;inherits:true}.jkl-skeleton-animation{--jkl-skeleton-element-color:var(--jkl-color-background-container-low);--jkl-skeleton-sweep-duration:4500ms;--jkl-skeleton-sweeper-width:40%;animation:var(--jkl-skeleton-sweep-duration) ease-in-out infinite --jkl-skeleton-sweep;-webkit-mask-image:linear-gradient(to right,#000 calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)),transparent calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)/2),#000 var(--jkl-skeleton-sweeper-position));mask-image:linear-gradient(to right,#000 calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)),transparent calc(var(--jkl-skeleton-sweeper-position) - var(--jkl-skeleton-sweeper-width)/2),#000 var(--jkl-skeleton-sweeper-position));-webkit-mask-position:center;mask-position:center;-webkit-mask-size:100dvi 100dvb;mask-size:100dvi 100dvb}.jkl-skeleton-element{background-color:var(--jkl-skeleton-element-color);border-radius:.125rem}.jkl-skeleton-element--circle{border-radius:50%}@media screen and (forced-colors:active){.jkl-skeleton-element{animation:jkl-blink-umofwyi 2s ease infinite;border:1px solid CanvasText}}.jkl-skeleton-input{display:flex;flex-direction:column;gap:var(--jkl-spacing-12)}.jkl-skeleton-input__checkbox{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--jkl-spacing-8)}@media (width >= 0) and (max-width:679px){.jkl-skeleton-input{gap:var(--jkl-spacing-8)}}.jkl-skeleton-input--compact:after{gap:var(--jkl-spacing-8)}.jkl-skeleton-table{display:flex;flex-direction:column}.jkl-skeleton-table__header,.jkl-skeleton-table__row{border-bottom:1px solid var(--jkl-skeleton-element-color);display:flex;flex-direction:row;justify-content:space-between}.jkl-skeleton-table__header,.jkl-skeleton-table__row{padding:var(--jkl-unit-20) var(--jkl-unit-10)}@media (width >= 0) and (max-width:679px){.jkl-skeleton-table__header{padding:var(--jkl-unit-10) var(--jkl-unit-05)}.jkl-skeleton-table__row{padding:var(--jkl-unit-20) var(--jkl-unit-05)}}@media screen and (forced-colors:active){.jkl-skeleton-table{animation:jkl-blink-umofwyi 2s ease-in-out infinite}}@keyframes jkl-blink-umofwyi{0%{opacity:1}40%,50%{opacity:.3}70%,to{opacity:1}}@keyframes --jkl-skeleton-sweep{0%,67%{--jkl-skeleton-sweeper-position:0%}to{--jkl-skeleton-sweeper-position:calc(100% + var(--jkl-skeleton-sweeper-width))}}}
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
--background-color: var(--jkl-color-background-alert-success);
|
|
151
151
|
}
|
|
152
152
|
.jkl-message--dismissed {
|
|
153
|
-
animation: jkl-dismiss-
|
|
153
|
+
animation: jkl-dismiss-u3zlsfa 400ms ease-in-out forwards;
|
|
154
154
|
transition: visibility 0ms 400ms;
|
|
155
155
|
visibility: hidden;
|
|
156
156
|
}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
.jkl-form-error-message {
|
|
173
173
|
padding-bottom: calc(var(--jkl-unit-base) * 5);
|
|
174
174
|
}
|
|
175
|
-
@keyframes jkl-dismiss-
|
|
175
|
+
@keyframes jkl-dismiss-u3zlsfa {
|
|
176
176
|
from {
|
|
177
177
|
opacity: 1;
|
|
178
178
|
transform: translate3d(0, 0, 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-message{--jkl-message-icon-left:var(--jkl-unit-20);--jkl-message-icon-top:var(--jkl-unit-30);--jkl-message-title-margin:0 0 var(--jkl-unit-05) 0;--jkl-message-dismiss-button-size:var(--jkl-unit-50);--jkl-message-gap:var(--jkl-unit-20);--jkl-message-padding:var(--jkl-unit-25) var(--jkl-unit-15);--background-color:var(--jkl-color-background-alert-neutral);--text-color:var(--jkl-color-text-on-alert);align-items:start;background-color:var(--background-color);border-radius:.25rem;box-sizing:border-box;color:var(--text-color);display:grid;font-size:var(--jkl-font-size-3);font-weight:400;grid-template-areas:"icon content dismiss";grid-template-columns:auto 1fr auto;line-height:var(--jkl-line-height-relaxed);max-width:35rem;padding:var(--jkl-message-padding);width:100%;--jkl-icon-weight:300}.jkl-message:has(.jkl-message__title){font-size:var(--jkl-font-size-4);font-weight:700;line-height:var(--jkl-line-height-tight);--jkl-icon-weight:400}.jkl-message__icon{grid-area:icon;margin-right:var(--jkl-message-gap)}@media screen and (forced-colors:active){.jkl-message__icon,.jkl-message__icon path,.jkl-message__icon svg{stroke:CanvasText}}.jkl-message__content{grid-area:content}.jkl-message__message{font-size:var(--jkl-font-size-3);font-weight:400;line-height:var(--jkl-line-height-relaxed);--jkl-icon-weight:300;margin-top:-.125rem}.jkl-message__title{font-size:var(--jkl-font-size-4);font-weight:700;line-height:var(--jkl-line-height-tight);--jkl-icon-weight:400;margin:var(--jkl-message-title-margin)}.jkl-message__title~.jkl-message__message{margin-top:0}.jkl-message__dismiss-button{background-color:transparent;border-style:none;color:inherit;cursor:pointer;display:grid;grid-area:dismiss;justify-self:end;outline:0;outline-style:none;padding:0;place-content:center;position:relative}.jkl-message__dismiss-button:active,.jkl-message__dismiss-button:focus,.jkl-message__dismiss-button:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-message__dismiss-button{border-style:revert;outline:revert;outline-style:revert}.jkl-message__dismiss-button:active,.jkl-message__dismiss-button:focus,.jkl-message__dismiss-button:hover{outline:revert;outline-style:revert}}@media screen and (forced-colors:active){.jkl-message__dismiss-button,.jkl-message__dismiss-button path,.jkl-message__dismiss-button svg{stroke:ButtonText}.jkl-message__dismiss-button{background-color:ButtonFace}}.jkl-message__dismiss-button:after{content:"";display:block;height:var(--jkl-message-dismiss-button-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--jkl-message-dismiss-button-size)}.jkl-message__dismiss-button:hover{color:var(--jkl-color-text-interactive-hover)}@media screen and (forced-colors:active){.jkl-message__dismiss-button:hover{stroke:ButtonText}.jkl-message__dismiss-button:hover path,.jkl-message__dismiss-button:hover svg{stroke:ButtonText}}.jkl-message__dismiss-button:focus-visible{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-message--full{max-width:100%}.jkl-message--info{--background-color:var(--jkl-color-background-alert-info)}.jkl-message--warning{--background-color:var(--jkl-color-background-alert-warning)}.jkl-message--error{--background-color:var(--jkl-color-background-alert-error)}.jkl-message--success{--background-color:var(--jkl-color-background-alert-success)}.jkl-message--dismissed{animation:jkl-dismiss-
|
|
1
|
+
@layer jokul.components{.jkl-message{--jkl-message-icon-left:var(--jkl-unit-20);--jkl-message-icon-top:var(--jkl-unit-30);--jkl-message-title-margin:0 0 var(--jkl-unit-05) 0;--jkl-message-dismiss-button-size:var(--jkl-unit-50);--jkl-message-gap:var(--jkl-unit-20);--jkl-message-padding:var(--jkl-unit-25) var(--jkl-unit-15);--background-color:var(--jkl-color-background-alert-neutral);--text-color:var(--jkl-color-text-on-alert);align-items:start;background-color:var(--background-color);border-radius:.25rem;box-sizing:border-box;color:var(--text-color);display:grid;font-size:var(--jkl-font-size-3);font-weight:400;grid-template-areas:"icon content dismiss";grid-template-columns:auto 1fr auto;line-height:var(--jkl-line-height-relaxed);max-width:35rem;padding:var(--jkl-message-padding);width:100%;--jkl-icon-weight:300}.jkl-message:has(.jkl-message__title){font-size:var(--jkl-font-size-4);font-weight:700;line-height:var(--jkl-line-height-tight);--jkl-icon-weight:400}.jkl-message__icon{grid-area:icon;margin-right:var(--jkl-message-gap)}@media screen and (forced-colors:active){.jkl-message__icon,.jkl-message__icon path,.jkl-message__icon svg{stroke:CanvasText}}.jkl-message__content{grid-area:content}.jkl-message__message{font-size:var(--jkl-font-size-3);font-weight:400;line-height:var(--jkl-line-height-relaxed);--jkl-icon-weight:300;margin-top:-.125rem}.jkl-message__title{font-size:var(--jkl-font-size-4);font-weight:700;line-height:var(--jkl-line-height-tight);--jkl-icon-weight:400;margin:var(--jkl-message-title-margin)}.jkl-message__title~.jkl-message__message{margin-top:0}.jkl-message__dismiss-button{background-color:transparent;border-style:none;color:inherit;cursor:pointer;display:grid;grid-area:dismiss;justify-self:end;outline:0;outline-style:none;padding:0;place-content:center;position:relative}.jkl-message__dismiss-button:active,.jkl-message__dismiss-button:focus,.jkl-message__dismiss-button:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-message__dismiss-button{border-style:revert;outline:revert;outline-style:revert}.jkl-message__dismiss-button:active,.jkl-message__dismiss-button:focus,.jkl-message__dismiss-button:hover{outline:revert;outline-style:revert}}@media screen and (forced-colors:active){.jkl-message__dismiss-button,.jkl-message__dismiss-button path,.jkl-message__dismiss-button svg{stroke:ButtonText}.jkl-message__dismiss-button{background-color:ButtonFace}}.jkl-message__dismiss-button:after{content:"";display:block;height:var(--jkl-message-dismiss-button-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--jkl-message-dismiss-button-size)}.jkl-message__dismiss-button:hover{color:var(--jkl-color-text-interactive-hover)}@media screen and (forced-colors:active){.jkl-message__dismiss-button:hover{stroke:ButtonText}.jkl-message__dismiss-button:hover path,.jkl-message__dismiss-button:hover svg{stroke:ButtonText}}.jkl-message__dismiss-button:focus-visible{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-message--full{max-width:100%}.jkl-message--info{--background-color:var(--jkl-color-background-alert-info)}.jkl-message--warning{--background-color:var(--jkl-color-background-alert-warning)}.jkl-message--error{--background-color:var(--jkl-color-background-alert-error)}.jkl-message--success{--background-color:var(--jkl-color-background-alert-success)}.jkl-message--dismissed{animation:jkl-dismiss-u3zlsfa .4s ease-in-out forwards;transition:visibility 0s .4s;visibility:hidden}@media screen and (forced-colors:active){.jkl-message{border:2px solid CanvasText}.jkl-message--info{border-style:dotted}.jkl-message--warning{border-style:dashed}.jkl-message--error{border-style:double;border-width:4px}}.jkl-form-error-message{padding-bottom:calc(var(--jkl-unit-base)*5)}@keyframes jkl-dismiss-u3zlsfa{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-50%,0)}}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
/* Base layout */
|
|
5
|
+
.jkl-modal-container,
|
|
6
|
+
.jkl-modal-overlay {
|
|
7
|
+
position: fixed;
|
|
8
|
+
inset: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.jkl-modal-container {
|
|
12
|
+
z-index: jkl.$z-index--modal;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
|
|
17
|
+
&[aria-hidden="true"] {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
.jkl-modal {
|
|
5
|
+
--margin: var(--jkl-spacing-m);
|
|
6
|
+
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
margin: var(--margin);
|
|
10
|
+
padding: var(--modal-padding, var(--jkl-unit-40));
|
|
11
|
+
z-index: jkl.$z-index--modal;
|
|
12
|
+
|
|
13
|
+
background-color: var(--jkl-color-background-container-high);
|
|
14
|
+
border-radius: var(--jkl-border-radius-l);
|
|
15
|
+
box-shadow: jkl.$shadow-task-card;
|
|
16
|
+
|
|
17
|
+
width: min(
|
|
18
|
+
calc(100vw - 2 * var(--margin)),
|
|
19
|
+
var(--modal-width, 60ch /* ~650px ved vanlig zoom/size */)
|
|
20
|
+
);
|
|
21
|
+
max-width: none;
|
|
22
|
+
max-height: 90vh;
|
|
23
|
+
overflow: auto;
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
|
|
28
|
+
@include jkl.forced-colors-mode {
|
|
29
|
+
border-color: CanvasText;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
.jkl-modal-container--slide-in {
|
|
5
|
+
--jkl-modal-slide-x: 0px;
|
|
6
|
+
--jkl-modal-slide-y: 12px;
|
|
7
|
+
|
|
8
|
+
@include jkl.motion("exit", "expressive", visibility);
|
|
9
|
+
transition-duration: 0ms;
|
|
10
|
+
|
|
11
|
+
&[aria-hidden="true"] {
|
|
12
|
+
display: flex;
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
transition-delay: jkl.timing("expressive");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:not([aria-hidden="true"]) {
|
|
19
|
+
visibility: visible;
|
|
20
|
+
transition-delay: 0ms;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.jkl-modal-container--slide-in .jkl-modal {
|
|
25
|
+
@include jkl.motion("entrance", "expressive", transform, opacity);
|
|
26
|
+
|
|
27
|
+
transform: translate(
|
|
28
|
+
var(--jkl-modal-slide-x),
|
|
29
|
+
var(--jkl-modal-slide-y)
|
|
30
|
+
);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
will-change: transform, opacity;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.jkl-modal-container--slide-in:not([aria-hidden="true"]) .jkl-modal {
|
|
36
|
+
transform: translate(0, 0);
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.jkl-modal-container--slide-in .jkl-modal {
|
|
42
|
+
transition-duration: 0ms;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
.jkl-modal-overlay {
|
|
5
|
+
background-color: rgb(27 25 23 / 80%);
|
|
6
|
+
opacity: 0;
|
|
7
|
+
|
|
8
|
+
@include jkl.motion("entrance", "expressive", opacity);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.jkl-modal-container:not([aria-hidden="true"]) .jkl-modal-overlay {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (prefers-reduced-motion: reduce) {
|
|
16
|
+
.jkl-modal-overlay {
|
|
17
|
+
transition-duration: 0ms;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
.jkl-modal-header {
|
|
5
|
+
--jkl-modal-header-margin: 0 0 var(--jkl-unit-20);
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
margin: var(--jkl-modal-header-margin);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.jkl-modal-body {
|
|
15
|
+
@include jkl.text-style("paragraph-medium");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.jkl-modal-title {
|
|
19
|
+
@include jkl.text-style("heading-3");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.jkl-modal-actions {
|
|
23
|
+
margin-block-start: var(--jkl-unit-50);
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--jkl-unit-15) var(--jkl-unit-20);
|
|
27
|
+
|
|
28
|
+
@container (width > 35ch /* ~380px ved vanlig zoom/size */) {
|
|
29
|
+
flex-direction: row-reverse;
|
|
30
|
+
align-self: flex-end;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@layer jokul.components {
|
|
4
|
+
/* Placement: bottom */
|
|
5
|
+
.jkl-modal-container--placement-bottom {
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
|
|
8
|
+
&.jkl-modal-container--slide-in {
|
|
9
|
+
--jkl-modal-slide-x: 0px;
|
|
10
|
+
--jkl-modal-slide-y: 24px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.jkl-modal {
|
|
14
|
+
--margin: 0px;
|
|
15
|
+
|
|
16
|
+
width: min(100vw, var(--modal-width, 100vw));
|
|
17
|
+
border-bottom-left-radius: 0;
|
|
18
|
+
border-bottom-right-radius: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Placement: left */
|
|
23
|
+
.jkl-modal-container--placement-left {
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
|
|
26
|
+
&.jkl-modal-container--slide-in {
|
|
27
|
+
--jkl-modal-slide-x: -24px;
|
|
28
|
+
--jkl-modal-slide-y: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.jkl-modal {
|
|
32
|
+
height: 100%;
|
|
33
|
+
max-height: 100%;
|
|
34
|
+
margin-block: 0;
|
|
35
|
+
margin-inline-start: 0;
|
|
36
|
+
border-top-left-radius: 0;
|
|
37
|
+
border-bottom-left-radius: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Placement: right */
|
|
42
|
+
.jkl-modal-container--placement-right {
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
|
|
45
|
+
&.jkl-modal-container--slide-in {
|
|
46
|
+
--jkl-modal-slide-x: 24px;
|
|
47
|
+
--jkl-modal-slide-y: 0px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.jkl-modal {
|
|
51
|
+
height: 100%;
|
|
52
|
+
max-height: 100%;
|
|
53
|
+
margin-block: 0;
|
|
54
|
+
margin-inline-end: 0;
|
|
55
|
+
border-top-right-radius: 0;
|
|
56
|
+
border-bottom-right-radius: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
@layer jokul.components {
|
|
5
|
+
/* Base layout */
|
|
5
6
|
.jkl-modal-container,
|
|
6
7
|
.jkl-modal-overlay {
|
|
7
8
|
position: fixed;
|
|
@@ -10,29 +11,46 @@
|
|
|
10
11
|
.jkl-modal-container {
|
|
11
12
|
z-index: 9000;
|
|
12
13
|
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
13
16
|
}
|
|
14
17
|
.jkl-modal-container[aria-hidden=true] {
|
|
15
|
-
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
pointer-events: none;
|
|
16
20
|
}
|
|
21
|
+
}
|
|
22
|
+
@layer jokul.components {
|
|
17
23
|
.jkl-modal-overlay {
|
|
18
24
|
background-color: rgba(27, 25, 23, 0.8);
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transition-timing-function: ease-out;
|
|
27
|
+
transition-duration: 250ms;
|
|
28
|
+
transition-property: opacity;
|
|
29
|
+
}
|
|
30
|
+
.jkl-modal-container:not([aria-hidden=true]) .jkl-modal-overlay {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
.jkl-modal-overlay {
|
|
35
|
+
transition-duration: 0ms;
|
|
36
|
+
}
|
|
19
37
|
}
|
|
38
|
+
}
|
|
39
|
+
@layer jokul.components {
|
|
20
40
|
.jkl-modal {
|
|
21
|
-
--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
margin:
|
|
41
|
+
--margin: var(--jkl-spacing-m);
|
|
42
|
+
container-type: inline-size;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
margin: var(--margin);
|
|
45
|
+
padding: var(--modal-padding, var(--jkl-unit-40));
|
|
25
46
|
z-index: 9000;
|
|
26
|
-
position: relative;
|
|
27
47
|
background-color: var(--jkl-color-background-container-high);
|
|
28
|
-
border-radius:
|
|
48
|
+
border-radius: var(--jkl-border-radius-l);
|
|
29
49
|
box-shadow: 0 0.25rem 0.75rem rgba(37, 42, 49, 0.03);
|
|
30
|
-
width:
|
|
31
|
-
|
|
32
|
-
max-width: var(--jkl-modal-max-width);
|
|
50
|
+
width: min(100vw - 2 * var(--margin), var(--modal-width, 60ch));
|
|
51
|
+
max-width: none;
|
|
33
52
|
max-height: 90vh;
|
|
34
53
|
overflow: auto;
|
|
35
|
-
padding: var(--jkl-modal-padding);
|
|
36
54
|
display: flex;
|
|
37
55
|
flex-direction: column;
|
|
38
56
|
}
|
|
@@ -41,26 +59,100 @@
|
|
|
41
59
|
border-color: CanvasText;
|
|
42
60
|
}
|
|
43
61
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
62
|
+
}
|
|
63
|
+
@layer jokul.components {
|
|
64
|
+
.jkl-modal-container--slide-in {
|
|
65
|
+
--jkl-modal-slide-x: 0px;
|
|
66
|
+
--jkl-modal-slide-y: 12px;
|
|
67
|
+
transition-timing-function: ease-in;
|
|
68
|
+
transition-duration: 250ms;
|
|
69
|
+
transition-property: visibility;
|
|
70
|
+
transition-duration: 0ms;
|
|
71
|
+
}
|
|
72
|
+
.jkl-modal-container--slide-in[aria-hidden=true] {
|
|
73
|
+
display: flex;
|
|
74
|
+
visibility: hidden;
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
transition-delay: 250ms;
|
|
77
|
+
}
|
|
78
|
+
.jkl-modal-container--slide-in:not([aria-hidden=true]) {
|
|
79
|
+
visibility: visible;
|
|
80
|
+
transition-delay: 0ms;
|
|
81
|
+
}
|
|
82
|
+
.jkl-modal-container--slide-in .jkl-modal {
|
|
83
|
+
transition-timing-function: ease-out;
|
|
84
|
+
transition-duration: 250ms;
|
|
85
|
+
transition-property: transform, opacity;
|
|
86
|
+
transform: translate(var(--jkl-modal-slide-x), var(--jkl-modal-slide-y));
|
|
87
|
+
opacity: 0;
|
|
88
|
+
will-change: transform, opacity;
|
|
89
|
+
}
|
|
90
|
+
.jkl-modal-container--slide-in:not([aria-hidden=true]) .jkl-modal {
|
|
91
|
+
transform: translate(0, 0);
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
@media (prefers-reduced-motion: reduce) {
|
|
95
|
+
.jkl-modal-container--slide-in .jkl-modal {
|
|
96
|
+
transition-duration: 0ms;
|
|
47
97
|
}
|
|
48
98
|
}
|
|
99
|
+
}
|
|
100
|
+
@layer jokul.components {
|
|
101
|
+
/* Placement: bottom */
|
|
102
|
+
.jkl-modal-container--placement-bottom {
|
|
103
|
+
align-items: flex-end;
|
|
104
|
+
}
|
|
105
|
+
.jkl-modal-container--placement-bottom.jkl-modal-container--slide-in {
|
|
106
|
+
--jkl-modal-slide-x: 0px;
|
|
107
|
+
--jkl-modal-slide-y: 24px;
|
|
108
|
+
}
|
|
109
|
+
.jkl-modal-container--placement-bottom .jkl-modal {
|
|
110
|
+
--margin: 0px;
|
|
111
|
+
width: min(100vw, var(--modal-width, 100vw));
|
|
112
|
+
border-bottom-left-radius: 0;
|
|
113
|
+
border-bottom-right-radius: 0;
|
|
114
|
+
}
|
|
115
|
+
/* Placement: left */
|
|
116
|
+
.jkl-modal-container--placement-left {
|
|
117
|
+
justify-content: flex-start;
|
|
118
|
+
}
|
|
119
|
+
.jkl-modal-container--placement-left.jkl-modal-container--slide-in {
|
|
120
|
+
--jkl-modal-slide-x: -24px;
|
|
121
|
+
--jkl-modal-slide-y: 0px;
|
|
122
|
+
}
|
|
123
|
+
.jkl-modal-container--placement-left .jkl-modal {
|
|
124
|
+
height: 100%;
|
|
125
|
+
max-height: 100%;
|
|
126
|
+
margin-block: 0;
|
|
127
|
+
margin-inline-start: 0;
|
|
128
|
+
border-top-left-radius: 0;
|
|
129
|
+
border-bottom-left-radius: 0;
|
|
130
|
+
}
|
|
131
|
+
/* Placement: right */
|
|
132
|
+
.jkl-modal-container--placement-right {
|
|
133
|
+
justify-content: flex-end;
|
|
134
|
+
}
|
|
135
|
+
.jkl-modal-container--placement-right.jkl-modal-container--slide-in {
|
|
136
|
+
--jkl-modal-slide-x: 24px;
|
|
137
|
+
--jkl-modal-slide-y: 0px;
|
|
138
|
+
}
|
|
139
|
+
.jkl-modal-container--placement-right .jkl-modal {
|
|
140
|
+
height: 100%;
|
|
141
|
+
max-height: 100%;
|
|
142
|
+
margin-block: 0;
|
|
143
|
+
margin-inline-end: 0;
|
|
144
|
+
border-top-right-radius: 0;
|
|
145
|
+
border-bottom-right-radius: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
@layer jokul.components {
|
|
49
149
|
.jkl-modal-header {
|
|
50
150
|
--jkl-modal-header-margin: 0 0 var(--jkl-unit-20);
|
|
51
|
-
}
|
|
52
|
-
@media (width >= 0) and (max-width: 679px) {
|
|
53
|
-
.jkl-modal-header {
|
|
54
|
-
--jkl-modal-header-margin: 0 0 var(--jkl-unit-15);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.jkl-modal-header {
|
|
58
151
|
display: flex;
|
|
59
152
|
flex-direction: row;
|
|
60
153
|
justify-content: space-between;
|
|
61
154
|
align-items: center;
|
|
62
155
|
margin: var(--jkl-modal-header-margin);
|
|
63
|
-
gap: var(--jkl-modal-gap);
|
|
64
156
|
}
|
|
65
157
|
.jkl-modal-body {
|
|
66
158
|
font-size: var(--jkl-font-size-3);
|
|
@@ -75,20 +167,12 @@
|
|
|
75
167
|
--jkl-icon-weight: 400;
|
|
76
168
|
}
|
|
77
169
|
.jkl-modal-actions {
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
@media (width >= 0) and (max-width: 679px) {
|
|
81
|
-
.jkl-modal-actions {
|
|
82
|
-
--jkl-modal-actions-margin: var(--jkl-unit-40) 0 0 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
.jkl-modal-actions {
|
|
86
|
-
margin: var(--jkl-modal-actions-margin);
|
|
170
|
+
margin-block-start: var(--jkl-unit-50);
|
|
87
171
|
display: flex;
|
|
88
172
|
flex-direction: column;
|
|
89
|
-
gap: var(--jkl-unit-20);
|
|
173
|
+
gap: var(--jkl-unit-15) var(--jkl-unit-20);
|
|
90
174
|
}
|
|
91
|
-
@
|
|
175
|
+
@container (width > 35ch /* ~380px ved vanlig zoom/size */) {
|
|
92
176
|
.jkl-modal-actions {
|
|
93
177
|
flex-direction: row-reverse;
|
|
94
178
|
align-self: flex-end;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-modal-container,.jkl-modal-overlay{inset:0;position:fixed}.jkl-modal-container{display:flex;z-index:9000}.jkl-modal-container[aria-hidden=true]{
|
|
1
|
+
@layer jokul.components{.jkl-modal-container,.jkl-modal-overlay{inset:0;position:fixed}.jkl-modal-container{align-items:center;display:flex;justify-content:center;z-index:9000}.jkl-modal-container[aria-hidden=true]{pointer-events:none;visibility:hidden}}@layer jokul.components{.jkl-modal-overlay{background-color:rgba(27,25,23,.8);opacity:0;transition-duration:.25s;transition-property:opacity;transition-timing-function:ease-out}.jkl-modal-container:not([aria-hidden=true]) .jkl-modal-overlay{opacity:1}@media (prefers-reduced-motion:reduce){.jkl-modal-overlay{transition-duration:0s}}}@layer jokul.components{.jkl-modal{--margin:var(--jkl-spacing-m);background-color:var(--jkl-color-background-container-high);border-radius:var(--jkl-border-radius-l);box-shadow:0 .25rem .75rem rgba(37,42,49,.03);box-sizing:border-box;container-type:inline-size;display:flex;flex-direction:column;margin:var(--margin);max-height:90vh;max-width:none;overflow:auto;padding:var(--modal-padding,var(--jkl-unit-40));width:min(100vw - 2 * var(--margin),var(--modal-width,60ch));z-index:9000}@media screen and (forced-colors:active){.jkl-modal{border-color:CanvasText}}}@layer jokul.components{.jkl-modal-container--slide-in{--jkl-modal-slide-x:0px;--jkl-modal-slide-y:12px;transition-duration:.25s;transition-duration:0s;transition-property:visibility;transition-timing-function:ease-in}.jkl-modal-container--slide-in[aria-hidden=true]{display:flex;pointer-events:none;transition-delay:.25s;visibility:hidden}.jkl-modal-container--slide-in:not([aria-hidden=true]){transition-delay:0s;visibility:visible}.jkl-modal-container--slide-in .jkl-modal{opacity:0;transform:translate(var(--jkl-modal-slide-x),var(--jkl-modal-slide-y));transition-duration:.25s;transition-property:transform,opacity;transition-timing-function:ease-out;will-change:transform,opacity}.jkl-modal-container--slide-in:not([aria-hidden=true]) .jkl-modal{opacity:1;transform:translate(0)}@media (prefers-reduced-motion:reduce){.jkl-modal-container--slide-in .jkl-modal{transition-duration:0s}}}@layer jokul.components{.jkl-modal-container--placement-bottom{align-items:flex-end}.jkl-modal-container--placement-bottom.jkl-modal-container--slide-in{--jkl-modal-slide-x:0px;--jkl-modal-slide-y:24px}.jkl-modal-container--placement-bottom .jkl-modal{--margin:0px;border-bottom-left-radius:0;border-bottom-right-radius:0;width:min(100vw,var(--modal-width,100vw))}.jkl-modal-container--placement-left{justify-content:flex-start}.jkl-modal-container--placement-left.jkl-modal-container--slide-in{--jkl-modal-slide-x:-24px;--jkl-modal-slide-y:0px}.jkl-modal-container--placement-left .jkl-modal{height:100%;margin-block:0;max-height:100%;-webkit-margin-start:0;border-bottom-left-radius:0;border-top-left-radius:0;margin-inline-start:0}.jkl-modal-container--placement-right{justify-content:flex-end}.jkl-modal-container--placement-right.jkl-modal-container--slide-in{--jkl-modal-slide-x:24px;--jkl-modal-slide-y:0px}.jkl-modal-container--placement-right .jkl-modal{height:100%;margin-block:0;max-height:100%;-webkit-margin-end:0;border-bottom-right-radius:0;border-top-right-radius:0;margin-inline-end:0}.jkl-modal-header{--jkl-modal-header-margin:0 0 var(--jkl-unit-20);align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:var(--jkl-modal-header-margin)}.jkl-modal-body{font-size:var(--jkl-font-size-3);font-weight:400;line-height:var(--jkl-line-height-relaxed);--jkl-icon-weight:300}.jkl-modal-title{font-size:var(--jkl-font-size-6);font-weight:700;line-height:var(--jkl-line-height-tight);--jkl-icon-weight:400}.jkl-modal-actions{-webkit-margin-before:var(--jkl-unit-50);display:flex;flex-direction:column;gap:var(--jkl-unit-15) var(--jkl-unit-20);margin-block-start:var(--jkl-unit-50)}}@layer jokul.components{@container (width > 35ch ){.jkl-modal-actions{align-self:flex-end;flex-direction:row-reverse}}}
|
|
@@ -1,96 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
@
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
inset: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.jkl-modal-container {
|
|
12
|
-
z-index: jkl.$z-index--modal;
|
|
13
|
-
display: flex;
|
|
14
|
-
|
|
15
|
-
&[aria-hidden="true"] {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.jkl-modal-overlay {
|
|
21
|
-
background-color: rgb(27 25 23 / 80%);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.jkl-modal {
|
|
25
|
-
--jkl-modal-padding: var(--jkl-unit-50);
|
|
26
|
-
--jkl-modal-min-width: #{jkl.rem(220px)};
|
|
27
|
-
--jkl-modal-max-width: #{jkl.rem(660px)};
|
|
28
|
-
|
|
29
|
-
margin: auto;
|
|
30
|
-
z-index: jkl.$z-index--modal;
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
background-color: var(--jkl-color-background-container-high);
|
|
34
|
-
border-radius: jkl.rem(2px);
|
|
35
|
-
box-shadow: jkl.$shadow-task-card;
|
|
36
|
-
|
|
37
|
-
width: 100%;
|
|
38
|
-
min-width: var(--jkl-modal-min-width);
|
|
39
|
-
max-width: var(--jkl-modal-max-width);
|
|
40
|
-
max-height: 90vh;
|
|
41
|
-
overflow: auto;
|
|
42
|
-
|
|
43
|
-
padding: var(--jkl-modal-padding);
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
|
|
47
|
-
@include jkl.forced-colors-mode {
|
|
48
|
-
border-color: CanvasText;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include jkl.small-device {
|
|
52
|
-
margin: auto var(--jkl-unit-30);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.jkl-modal-header {
|
|
57
|
-
--jkl-modal-header-margin: 0 0 var(--jkl-unit-20);
|
|
58
|
-
|
|
59
|
-
@include jkl.small-device {
|
|
60
|
-
--jkl-modal-header-margin: 0 0 var(--jkl-unit-15);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
justify-content: space-between;
|
|
66
|
-
align-items: center;
|
|
67
|
-
margin: var(--jkl-modal-header-margin);
|
|
68
|
-
gap: var(--jkl-modal-gap);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.jkl-modal-body {
|
|
72
|
-
@include jkl.text-style("paragraph-medium");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.jkl-modal-title {
|
|
76
|
-
@include jkl.text-style("heading-3");
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.jkl-modal-actions {
|
|
80
|
-
--jkl-modal-actions-margin: var(--jkl-unit-50) 0 0 0;
|
|
81
|
-
|
|
82
|
-
@include jkl.small-device {
|
|
83
|
-
--jkl-modal-actions-margin: var(--jkl-unit-40) 0 0 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
margin: var(--jkl-modal-actions-margin);
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
gap: var(--jkl-unit-20);
|
|
90
|
-
|
|
91
|
-
@include jkl.screen-from(60ch) {
|
|
92
|
-
flex-direction: row-reverse;
|
|
93
|
-
align-self: flex-end;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
2
|
+
@forward "layout";
|
|
3
|
+
@forward "overlay";
|
|
4
|
+
@forward "modal-base";
|
|
5
|
+
@forward "motion";
|
|
6
|
+
@forward "placement";
|
|
7
|
+
@forward "parts";
|