kritzel-stencil 0.1.83 → 0.1.86
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/LICENSE +21 -21
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_42.cjs.entry.js +94 -94
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/{workspace.migrations-K5oVASsb.js → workspace.migrations-Dj-FiYEO.js} +6 -6
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +71 -71
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +12 -12
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +99 -99
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +14 -14
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/shared/kritzel-button/kritzel-button.css +72 -72
- package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +179 -179
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +3 -3
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +160 -160
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +58 -58
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +105 -105
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.js +1 -1
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +330 -330
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +5 -5
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +29 -29
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +45 -45
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +129 -129
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +133 -133
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +5 -5
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +6 -6
- package/dist/collection/helpers/svg-export.helper.js +31 -31
- package/dist/components/index.js +1 -1
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +1 -1
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-context-menu.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +1 -1
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/{p-B5WII1Lk.js → p-0cs6zQLB.js} +1 -1
- package/dist/components/p-7yTPTHbQ.js +1 -0
- package/dist/components/{p-DwemlMvt.js → p-B3UJucEe.js} +1 -1
- package/dist/components/{p-DUQmBcTy.js → p-B5a3arJg.js} +1 -1
- package/dist/components/{p-DCH4Rlqx.js → p-BIdZCZ_l.js} +1 -1
- package/dist/components/{p-CNMpVlot.js → p-BMPgR5Bt.js} +1 -1
- package/dist/components/{p-CKfjz1gj.js → p-BOcGfEkz.js} +1 -1
- package/dist/components/{p-DUnKjQN7.js → p-BVEYAGm1.js} +1 -1
- package/dist/components/{p-CMGHx71q.js → p-BYX50YSd.js} +1 -1
- package/dist/components/{p-BjPmEs5A.js → p-BfJav4Zz.js} +1 -1
- package/dist/components/{p-CLo-TjD_.js → p-BgopgrfE.js} +1 -1
- package/dist/components/{p-CJzg_ejc.js → p-BsQ4E7I8.js} +1 -1
- package/dist/components/{p-V3VW2JKl.js → p-C-ZoFpSf.js} +1 -1
- package/dist/components/p-C0U3Mg5I.js +1 -0
- package/dist/components/{p-Brwz_Dpb.js → p-C3Dwuqka.js} +1 -1
- package/dist/components/{p-CS7r-zhx.js → p-C4vg_-vg.js} +1 -1
- package/dist/components/{p-DrsORMoT.js → p-C4zfI-dj.js} +1 -1
- package/dist/components/{p-cjeDomsc.js → p-CBTqCoUx.js} +1 -1
- package/dist/components/{p-BaaFG0p-.js → p-CBq-KE9C.js} +1 -1
- package/dist/components/{p-CfEGaTaV.js → p-CTj2UdbS.js} +1 -1
- package/dist/components/{p-Bat829Bg.js → p-C_OSXZqJ.js} +1 -1
- package/dist/components/{p-B4F19Aqj.js → p-CaKSDRid.js} +1 -1
- package/dist/components/{p-BZ8bK8qT.js → p-CekG3_ce.js} +1 -1
- package/dist/components/{p-Dw0Obsn5.js → p-Cz2gQKbL.js} +1 -1
- package/dist/components/{p-VxgCvVox.js → p-CzIuqMQA.js} +1 -1
- package/dist/components/{p-1ppb4M65.js → p-D6KNaj_Y.js} +1 -1
- package/dist/components/{p-rNu5JVNH.js → p-D8fQwcNC.js} +1 -1
- package/dist/components/{p-CYl_JKvH.js → p-DBZRCL1u.js} +1 -1
- package/dist/components/{p-DkT0KZCm.js → p-DDBaFNFi.js} +1 -1
- package/dist/components/{p-CM7rYf9A.js → p-DEd2L0e3.js} +1 -1
- package/dist/components/{p-DYcsC2zO.js → p-DMvIGnOt.js} +1 -1
- package/dist/components/{p-C9zsWWH2.js → p-DPmAV68B.js} +1 -1
- package/dist/components/{p-7yR-sKH8.js → p-DRbR0Li3.js} +1 -1
- package/dist/components/{p-C-MtTi6x.js → p-DXO_ppUK.js} +1 -1
- package/dist/components/p-DemKKw9U.js +1 -0
- package/dist/components/{p-D5BXoK9m.js → p-Dxb22STM.js} +1 -1
- package/dist/components/p-Nq8UyPCc.js +1 -0
- package/dist/components/{p-DEOUiiyI.js → p-R9M5PnAz.js} +1 -1
- package/dist/components/{p-D7pwbRUy.js → p-qBqQhAmh.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kritzel-active-users_42.entry.js +94 -94
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/{workspace.migrations-D5iSPf3E.js → workspace.migrations-ByWmiPl8.js} +6 -6
- package/dist/stencil/index.esm.js +1 -1
- package/dist/stencil/{p-b0be4da1.entry.js → p-10c2b77c.entry.js} +1 -1
- package/dist/stencil/p-b38650d2.entry.js +9 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +114 -114
- package/dist/components/p-B4h_tGG1.js +0 -1
- package/dist/components/p-CJKsuQun.js +0 -1
- package/dist/components/p-DKeBfe_l.js +0 -1
- package/dist/components/p-HK-6khHo.js +0 -1
- package/dist/stencil/p-c28b30ab.entry.js +0 -9
- /package/dist/stencil/{p-D5iSPf3E.js → p-ByWmiPl8.js} +0 -0
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.backdrop {
|
|
6
|
-
position: fixed;
|
|
7
|
-
top: 0;
|
|
8
|
-
left: 0;
|
|
9
|
-
right: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
z-index: 10002;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
background-color: var(--kritzel-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
|
|
16
|
-
opacity: 1;
|
|
17
|
-
transition: opacity 150ms ease-out;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.backdrop.is-animating {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dialog-content {
|
|
25
|
-
position: relative;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
background-color: var(--kritzel-dialog-background-color, #ffffff);
|
|
29
|
-
border-radius: var(--kritzel-dialog-border-radius, 12px);
|
|
30
|
-
box-shadow: var(--kritzel-dialog-box-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
|
|
31
|
-
border: var(--kritzel-dialog-border, 1px solid #ebebeb);
|
|
32
|
-
max-height: var(--kritzel-dialog-max-height, 90vh);
|
|
33
|
-
max-width: var(--kritzel-dialog-max-width, 90vw);
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
transform: scale(1);
|
|
36
|
-
opacity: 1;
|
|
37
|
-
transition:
|
|
38
|
-
transform 200ms ease-out,
|
|
39
|
-
opacity 200ms ease-out;
|
|
40
|
-
font-family: var(--kritzel-dialog-font-family, sans-serif);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dialog-content.is-animating {
|
|
44
|
-
transform: scale(0.95);
|
|
45
|
-
opacity: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Size variants */
|
|
49
|
-
.dialog-content.size-small {
|
|
50
|
-
width: var(--kritzel-dialog-width-small, 320px);
|
|
51
|
-
height: var(--kritzel-dialog-height-small, auto);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.dialog-content.size-medium {
|
|
55
|
-
width: var(--kritzel-dialog-width-medium, 480px);
|
|
56
|
-
height: var(--kritzel-dialog-height-medium, auto);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dialog-content.size-large {
|
|
60
|
-
width: var(--kritzel-dialog-width-large, 640px);
|
|
61
|
-
height: var(--kritzel-dialog-height-large, auto);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.dialog-content.size-fullscreen {
|
|
65
|
-
width: 100vw;
|
|
66
|
-
height: 100vh;
|
|
67
|
-
height: 100dvh;
|
|
68
|
-
max-width: 100vw;
|
|
69
|
-
max-height: 100vh;
|
|
70
|
-
max-height: 100dvh;
|
|
71
|
-
border-radius: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* Responsive: auto fullscreen on mobile when enabled */
|
|
75
|
-
@media (max-width: 576px) {
|
|
76
|
-
.backdrop:has(.fullscreen-on-mobile) {
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.dialog-content.fullscreen-on-mobile {
|
|
81
|
-
width: 100vw;
|
|
82
|
-
height: 100vh;
|
|
83
|
-
height: 100dvh;
|
|
84
|
-
max-width: 100vw;
|
|
85
|
-
max-height: 100vh;
|
|
86
|
-
max-height: 100dvh;
|
|
87
|
-
border-radius: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.dialog-content.fullscreen-on-mobile .dialog-body {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.dialog-content.fullscreen-on-mobile .dialog-body ::slotted(*) {
|
|
96
|
-
flex: 1;
|
|
97
|
-
min-height: 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.dialog-header {
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
justify-content: space-between;
|
|
105
|
-
padding: var(--kritzel-dialog-header-padding, 16px 20px);
|
|
106
|
-
border-bottom: var(--kritzel-dialog-header-border, 1px solid #ebebeb);
|
|
107
|
-
gap: 12px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.dialog-title {
|
|
111
|
-
margin: 0;
|
|
112
|
-
font-size: var(--kritzel-dialog-title-font-size, 18px);
|
|
113
|
-
font-weight: var(--kritzel-dialog-title-font-weight, 600);
|
|
114
|
-
color: var(--kritzel-dialog-title-color, #1a1a1a);
|
|
115
|
-
flex: 1;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
text-overflow: ellipsis;
|
|
118
|
-
white-space: nowrap;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.close-button {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
width: 32px;
|
|
126
|
-
height: 32px;
|
|
127
|
-
padding: 0;
|
|
128
|
-
border: none;
|
|
129
|
-
border-radius: var(--kritzel-dialog-close-button-border-radius, 6px);
|
|
130
|
-
background-color: var(--kritzel-dialog-close-button-background, transparent);
|
|
131
|
-
color: var(--kritzel-dialog-close-button-color, #666666);
|
|
132
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
133
|
-
transition:
|
|
134
|
-
background-color 150ms ease,
|
|
135
|
-
color 150ms ease;
|
|
136
|
-
flex-shrink: 0;
|
|
137
|
-
-webkit-tap-highlight-color: transparent;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.close-button:hover {
|
|
141
|
-
background-color: var(--kritzel-dialog-close-button-hover-background, #f5f5f5);
|
|
142
|
-
color: var(--kritzel-dialog-close-button-hover-color, #1a1a1a);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.close-button:active {
|
|
146
|
-
background-color: var(--kritzel-dialog-close-button-active-background, #ebebeb);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.close-button:focus-visible {
|
|
150
|
-
outline: revert;
|
|
151
|
-
outline-offset: revert;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.dialog-body {
|
|
155
|
-
padding: var(--kritzel-dialog-body-padding, 20px);
|
|
156
|
-
overflow-y: auto;
|
|
157
|
-
flex: 1;
|
|
158
|
-
min-height: 0;
|
|
159
|
-
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
160
|
-
scrollbar-width: thin;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.dialog-footer {
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
justify-content: flex-end;
|
|
167
|
-
gap: var(--kritzel-dialog-footer-gap, 8px);
|
|
168
|
-
padding: var(--kritzel-dialog-footer-padding, 16px 20px);
|
|
169
|
-
border-top: var(--kritzel-dialog-footer-border, 1px solid #ebebeb);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/* Slotted content styling hints */
|
|
173
|
-
::slotted([slot='header']) {
|
|
174
|
-
flex: 1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
::slotted([slot='footer']) {
|
|
178
|
-
display: contents;
|
|
179
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.backdrop {
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
z-index: 10002;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
background-color: var(--kritzel-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transition: opacity 150ms ease-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.backdrop.is-animating {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dialog-content {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
background-color: var(--kritzel-dialog-background-color, #ffffff);
|
|
29
|
+
border-radius: var(--kritzel-dialog-border-radius, 12px);
|
|
30
|
+
box-shadow: var(--kritzel-dialog-box-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
|
|
31
|
+
border: var(--kritzel-dialog-border, 1px solid #ebebeb);
|
|
32
|
+
max-height: var(--kritzel-dialog-max-height, 90vh);
|
|
33
|
+
max-width: var(--kritzel-dialog-max-width, 90vw);
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
transform: scale(1);
|
|
36
|
+
opacity: 1;
|
|
37
|
+
transition:
|
|
38
|
+
transform 200ms ease-out,
|
|
39
|
+
opacity 200ms ease-out;
|
|
40
|
+
font-family: var(--kritzel-dialog-font-family, sans-serif);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dialog-content.is-animating {
|
|
44
|
+
transform: scale(0.95);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Size variants */
|
|
49
|
+
.dialog-content.size-small {
|
|
50
|
+
width: var(--kritzel-dialog-width-small, 320px);
|
|
51
|
+
height: var(--kritzel-dialog-height-small, auto);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dialog-content.size-medium {
|
|
55
|
+
width: var(--kritzel-dialog-width-medium, 480px);
|
|
56
|
+
height: var(--kritzel-dialog-height-medium, auto);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dialog-content.size-large {
|
|
60
|
+
width: var(--kritzel-dialog-width-large, 640px);
|
|
61
|
+
height: var(--kritzel-dialog-height-large, auto);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dialog-content.size-fullscreen {
|
|
65
|
+
width: 100vw;
|
|
66
|
+
height: 100vh;
|
|
67
|
+
height: 100dvh;
|
|
68
|
+
max-width: 100vw;
|
|
69
|
+
max-height: 100vh;
|
|
70
|
+
max-height: 100dvh;
|
|
71
|
+
border-radius: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Responsive: auto fullscreen on mobile when enabled */
|
|
75
|
+
@media (max-width: 576px) {
|
|
76
|
+
.backdrop:has(.fullscreen-on-mobile) {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dialog-content.fullscreen-on-mobile {
|
|
81
|
+
width: 100vw;
|
|
82
|
+
height: 100vh;
|
|
83
|
+
height: 100dvh;
|
|
84
|
+
max-width: 100vw;
|
|
85
|
+
max-height: 100vh;
|
|
86
|
+
max-height: 100dvh;
|
|
87
|
+
border-radius: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dialog-content.fullscreen-on-mobile .dialog-body {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dialog-content.fullscreen-on-mobile .dialog-body ::slotted(*) {
|
|
96
|
+
flex: 1;
|
|
97
|
+
min-height: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dialog-header {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
padding: var(--kritzel-dialog-header-padding, 16px 20px);
|
|
106
|
+
border-bottom: var(--kritzel-dialog-header-border, 1px solid #ebebeb);
|
|
107
|
+
gap: 12px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.dialog-title {
|
|
111
|
+
margin: 0;
|
|
112
|
+
font-size: var(--kritzel-dialog-title-font-size, 18px);
|
|
113
|
+
font-weight: var(--kritzel-dialog-title-font-weight, 600);
|
|
114
|
+
color: var(--kritzel-dialog-title-color, #1a1a1a);
|
|
115
|
+
flex: 1;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.close-button {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
width: 32px;
|
|
126
|
+
height: 32px;
|
|
127
|
+
padding: 0;
|
|
128
|
+
border: none;
|
|
129
|
+
border-radius: var(--kritzel-dialog-close-button-border-radius, 6px);
|
|
130
|
+
background-color: var(--kritzel-dialog-close-button-background, transparent);
|
|
131
|
+
color: var(--kritzel-dialog-close-button-color, #666666);
|
|
132
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
133
|
+
transition:
|
|
134
|
+
background-color 150ms ease,
|
|
135
|
+
color 150ms ease;
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
-webkit-tap-highlight-color: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.close-button:hover {
|
|
141
|
+
background-color: var(--kritzel-dialog-close-button-hover-background, #f5f5f5);
|
|
142
|
+
color: var(--kritzel-dialog-close-button-hover-color, #1a1a1a);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.close-button:active {
|
|
146
|
+
background-color: var(--kritzel-dialog-close-button-active-background, #ebebeb);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.close-button:focus-visible {
|
|
150
|
+
outline: revert;
|
|
151
|
+
outline-offset: revert;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.dialog-body {
|
|
155
|
+
padding: var(--kritzel-dialog-body-padding, 20px);
|
|
156
|
+
overflow-y: auto;
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-height: 0;
|
|
159
|
+
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
160
|
+
scrollbar-width: thin;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.dialog-footer {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: flex-end;
|
|
167
|
+
gap: var(--kritzel-dialog-footer-gap, 8px);
|
|
168
|
+
padding: var(--kritzel-dialog-footer-padding, 16px 20px);
|
|
169
|
+
border-top: var(--kritzel-dialog-footer-border, 1px solid #ebebeb);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Slotted content styling hints */
|
|
173
|
+
::slotted([slot='header']) {
|
|
174
|
+
flex: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
::slotted([slot='footer']) {
|
|
178
|
+
display: contents;
|
|
179
|
+
}
|