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,190 +1,190 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
vertical-align: middle;
|
|
4
|
-
width: 100%;
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.dropdown-wrapper {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
border: 1px solid var(--kritzel-dropdown-border-color, #ebebeb);
|
|
12
|
-
border-radius: 6px;
|
|
13
|
-
overflow: visible;
|
|
14
|
-
height: 38px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dropdown-wrapper:hover:not(:focus-within) {
|
|
20
|
-
border-color: var(--kritzel-dropdown-hover-border-color, #cccccc);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dropdown-container {
|
|
24
|
-
flex: 1;
|
|
25
|
-
height: 100%;
|
|
26
|
-
min-width: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dropdown-trigger {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
gap: 8px;
|
|
34
|
-
padding: 0 8px;
|
|
35
|
-
height: 100%;
|
|
36
|
-
width: 100%;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
border-radius: 6px;
|
|
39
|
-
border: none;
|
|
40
|
-
background-color: var(--kritzel-dropdown-background, #ffffff);
|
|
41
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
42
|
-
outline: none;
|
|
43
|
-
font-size: inherit;
|
|
44
|
-
font-family: inherit;
|
|
45
|
-
color: var(--kritzel-dropdown-text-color, #333333);
|
|
46
|
-
-webkit-tap-highlight-color: transparent;
|
|
47
|
-
text-align: left;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dropdown-trigger:focus-visible {
|
|
51
|
-
outline: revert;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.dropdown-trigger.has-suffix-border {
|
|
55
|
-
border-right: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
56
|
-
border-top-right-radius: 0;
|
|
57
|
-
border-bottom-right-radius: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.dropdown-trigger.has-prefix-border {
|
|
61
|
-
border-left: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
62
|
-
border-top-left-radius: 0;
|
|
63
|
-
border-bottom-left-radius: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.dropdown-trigger-label {
|
|
67
|
-
flex: 1;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
text-overflow: ellipsis;
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
min-width: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.dropdown-trigger-arrow {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
width: 16px;
|
|
79
|
-
height: 16px;
|
|
80
|
-
flex-shrink: 0;
|
|
81
|
-
transition: transform 0.2s ease;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.dropdown-trigger-arrow svg {
|
|
85
|
-
width: 100%;
|
|
86
|
-
height: 100%;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dropdown-trigger.is-open .dropdown-trigger-arrow {
|
|
90
|
-
transform: rotate(180deg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.dropdown-trigger.is-open.open-up .dropdown-trigger-arrow {
|
|
94
|
-
transform: rotate(0deg);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.dropdown-menu {
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 0;
|
|
100
|
-
right: 0;
|
|
101
|
-
margin: 0;
|
|
102
|
-
padding: 4px 0;
|
|
103
|
-
list-style: none;
|
|
104
|
-
background-color: var(--kritzel-dropdown-background, #ffffff);
|
|
105
|
-
border: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
106
|
-
border-radius: 6px;
|
|
107
|
-
box-shadow: var(--kritzel-controls-box-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));
|
|
108
|
-
z-index: 1000;
|
|
109
|
-
max-height: 240px;
|
|
110
|
-
overflow-y: auto;
|
|
111
|
-
opacity: 0;
|
|
112
|
-
visibility: hidden;
|
|
113
|
-
transition:
|
|
114
|
-
opacity 0.15s ease,
|
|
115
|
-
transform 0.15s ease,
|
|
116
|
-
visibility 0.15s;
|
|
117
|
-
outline: none;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Open downward (default) */
|
|
121
|
-
.dropdown-menu.open-down {
|
|
122
|
-
top: calc(100% + 4px);
|
|
123
|
-
bottom: auto;
|
|
124
|
-
transform: translateY(-8px);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Open upward */
|
|
128
|
-
.dropdown-menu.open-up {
|
|
129
|
-
bottom: calc(100% + 4px);
|
|
130
|
-
top: auto;
|
|
131
|
-
transform: translateY(8px);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.dropdown-menu.is-open {
|
|
135
|
-
opacity: 1;
|
|
136
|
-
visibility: inherit;
|
|
137
|
-
transform: translateY(0);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Adjust box shadow for upward opening */
|
|
141
|
-
.dropdown-menu.open-up {
|
|
142
|
-
box-shadow: var(--kritzel-controls-box-shadow, 0 -4px 12px rgba(0, 0, 0, 0.15));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.dropdown-option {
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: space-between;
|
|
149
|
-
gap: 8px;
|
|
150
|
-
padding: 8px 12px;
|
|
151
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
152
|
-
color: var(--kritzel-dropdown-text-color, #333333);
|
|
153
|
-
transition: background-color 0.1s ease;
|
|
154
|
-
-webkit-tap-highlight-color: transparent;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.dropdown-option.is-focused {
|
|
158
|
-
background-color: var(--kritzel-dropdown-hover-background-color, #f0f0f0);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.dropdown-option.is-selected {
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
background-color: var(--kritzel-dropdown-selected-background-color, #007bff1a);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.dropdown-option-check {
|
|
167
|
-
display: flex;
|
|
168
|
-
align-items: center;
|
|
169
|
-
justify-content: center;
|
|
170
|
-
width: 16px;
|
|
171
|
-
height: 16px;
|
|
172
|
-
flex-shrink: 0;
|
|
173
|
-
color: var(--kritzel-dropdown-accent-color, #007bff);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.dropdown-option-check svg {
|
|
177
|
-
width: 100%;
|
|
178
|
-
height: 100%;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/* Scrollbar styling */
|
|
182
|
-
.dropdown-menu {
|
|
183
|
-
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
184
|
-
scrollbar-width: thin;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
::slotted(*) {
|
|
188
|
-
height: 100%;
|
|
189
|
-
box-sizing: border-box;
|
|
190
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
vertical-align: middle;
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dropdown-wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
border: 1px solid var(--kritzel-dropdown-border-color, #ebebeb);
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
height: 38px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dropdown-wrapper:hover:not(:focus-within) {
|
|
20
|
+
border-color: var(--kritzel-dropdown-hover-border-color, #cccccc);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dropdown-container {
|
|
24
|
+
flex: 1;
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dropdown-trigger {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
padding: 0 8px;
|
|
35
|
+
height: 100%;
|
|
36
|
+
width: 100%;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
border-radius: 6px;
|
|
39
|
+
border: none;
|
|
40
|
+
background-color: var(--kritzel-dropdown-background, #ffffff);
|
|
41
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
42
|
+
outline: none;
|
|
43
|
+
font-size: inherit;
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
color: var(--kritzel-dropdown-text-color, #333333);
|
|
46
|
+
-webkit-tap-highlight-color: transparent;
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dropdown-trigger:focus-visible {
|
|
51
|
+
outline: revert;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dropdown-trigger.has-suffix-border {
|
|
55
|
+
border-right: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
56
|
+
border-top-right-radius: 0;
|
|
57
|
+
border-bottom-right-radius: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dropdown-trigger.has-prefix-border {
|
|
61
|
+
border-left: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
62
|
+
border-top-left-radius: 0;
|
|
63
|
+
border-bottom-left-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dropdown-trigger-label {
|
|
67
|
+
flex: 1;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dropdown-trigger-arrow {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
width: 16px;
|
|
79
|
+
height: 16px;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
transition: transform 0.2s ease;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dropdown-trigger-arrow svg {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dropdown-trigger.is-open .dropdown-trigger-arrow {
|
|
90
|
+
transform: rotate(180deg);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dropdown-trigger.is-open.open-up .dropdown-trigger-arrow {
|
|
94
|
+
transform: rotate(0deg);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dropdown-menu {
|
|
98
|
+
position: absolute;
|
|
99
|
+
left: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: 4px 0;
|
|
103
|
+
list-style: none;
|
|
104
|
+
background-color: var(--kritzel-dropdown-background, #ffffff);
|
|
105
|
+
border: 1px solid var(--kritzel-global-border-color, #ebebeb);
|
|
106
|
+
border-radius: 6px;
|
|
107
|
+
box-shadow: var(--kritzel-controls-box-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));
|
|
108
|
+
z-index: 1000;
|
|
109
|
+
max-height: 240px;
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
visibility: hidden;
|
|
113
|
+
transition:
|
|
114
|
+
opacity 0.15s ease,
|
|
115
|
+
transform 0.15s ease,
|
|
116
|
+
visibility 0.15s;
|
|
117
|
+
outline: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Open downward (default) */
|
|
121
|
+
.dropdown-menu.open-down {
|
|
122
|
+
top: calc(100% + 4px);
|
|
123
|
+
bottom: auto;
|
|
124
|
+
transform: translateY(-8px);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Open upward */
|
|
128
|
+
.dropdown-menu.open-up {
|
|
129
|
+
bottom: calc(100% + 4px);
|
|
130
|
+
top: auto;
|
|
131
|
+
transform: translateY(8px);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.dropdown-menu.is-open {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
visibility: inherit;
|
|
137
|
+
transform: translateY(0);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Adjust box shadow for upward opening */
|
|
141
|
+
.dropdown-menu.open-up {
|
|
142
|
+
box-shadow: var(--kritzel-controls-box-shadow, 0 -4px 12px rgba(0, 0, 0, 0.15));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.dropdown-option {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
gap: 8px;
|
|
150
|
+
padding: 8px 12px;
|
|
151
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
152
|
+
color: var(--kritzel-dropdown-text-color, #333333);
|
|
153
|
+
transition: background-color 0.1s ease;
|
|
154
|
+
-webkit-tap-highlight-color: transparent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.dropdown-option.is-focused {
|
|
158
|
+
background-color: var(--kritzel-dropdown-hover-background-color, #f0f0f0);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.dropdown-option.is-selected {
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
background-color: var(--kritzel-dropdown-selected-background-color, #007bff1a);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.dropdown-option-check {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
width: 16px;
|
|
171
|
+
height: 16px;
|
|
172
|
+
flex-shrink: 0;
|
|
173
|
+
color: var(--kritzel-dropdown-accent-color, #007bff);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.dropdown-option-check svg {
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 100%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Scrollbar styling */
|
|
182
|
+
.dropdown-menu {
|
|
183
|
+
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
184
|
+
scrollbar-width: thin;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
::slotted(*) {
|
|
188
|
+
height: 100%;
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
}
|
|
@@ -231,7 +231,7 @@ export class KritzelDropdown {
|
|
|
231
231
|
'open-up': this.openDirection === 'up',
|
|
232
232
|
'open-down': this.openDirection === 'down',
|
|
233
233
|
};
|
|
234
|
-
return (h(Host, { key: '
|
|
234
|
+
return (h(Host, { key: 'ac4dc8a445f79fa68555756a4ac26ba174a13eaa' }, h("div", { key: '1c73835be42e6a289657920ef33c2a53c183913d', class: "dropdown-wrapper", ref: el => (this.wrapperElement = el) }, h("slot", { key: 'ac73d76b5e24e2f2740113523524bc00d1c98d02', name: "prefix", ref: el => (this.prefixSlotElement = el), onSlotchange: this.evaluatePrefixContent }), h("div", { key: 'e1e71c68a8abb2cf0dc2b9314e05d1170c0bb5b3', class: "dropdown-container", style: { width: this.width } }, h("button", { key: '74588e1ff661f8f86318a2ed9bb53192ad96bacd', type: "button", class: triggerClasses, style: { ...this.selectStyles, ...this.getSelectedStyle() }, onClick: this.toggleMenu, onKeyDown: this.handleTriggerKeyDown, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', ref: el => (this.triggerElement = el) }, h("span", { key: '432f694526e20e1e6abb6721f12aa246471d830d', class: "dropdown-trigger-label" }, this.getSelectedLabel()), h("span", { key: '81f7d98f78201910f4427a7c442172d0283de45b', class: "dropdown-trigger-arrow", "aria-hidden": "true" }, h("svg", { key: '18db309dc145718fbb3d51e44058e3bfa96b0d27', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { key: '32af6ce9a1f045c2ce3b205b1b1dc1fe1a80e227', points: "6 9 12 15 18 9" }))))), h("slot", { key: 'b37cd43daa06424ea7b7951929352154f7d1ea0f', name: "suffix", ref: el => (this.suffixSlotElement = el), onSlotchange: this.evaluateSuffixContent }), h("ul", { key: '0e673d4e09e007a4c93ed6a992dddeb8eba33e91', class: menuClasses, role: "listbox", tabindex: "-1", onKeyDown: this.handleMenuKeyDown, ref: el => (this.menuElement = el) }, this.options.map((option, index) => {
|
|
235
235
|
const isSelected = option.value === this.internalValue;
|
|
236
236
|
const isFocused = index === this.focusedIndex;
|
|
237
237
|
const optionClasses = {
|
|
@@ -265,7 +265,7 @@ export class KritzelDropdown {
|
|
|
265
265
|
"references": {
|
|
266
266
|
"DropdownOption": {
|
|
267
267
|
"location": "local",
|
|
268
|
-
"path": "
|
|
268
|
+
"path": "/home/runner/work/kritzel/kritzel/libs/kritzel-stencil/src/components/shared/kritzel-dropdown/kritzel-dropdown.tsx",
|
|
269
269
|
"id": "src/components/shared/kritzel-dropdown/kritzel-dropdown.tsx::DropdownOption"
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.font-preview {
|
|
6
|
-
color: var(--kritzel-font-size-text-color, #333333);
|
|
7
|
-
line-height: 1;
|
|
8
|
-
text-align: center;
|
|
9
|
-
font-weight: bold;
|
|
10
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.font-preview {
|
|
6
|
+
color: var(--kritzel-font-size-text-color, #333333);
|
|
7
|
+
line-height: 1;
|
|
8
|
+
text-align: center;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
}
|
|
@@ -4,7 +4,7 @@ export class KritzelFont {
|
|
|
4
4
|
size = 24;
|
|
5
5
|
color = '#000000';
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'bcff1827a61df6896e49fe1df4819bf27b3610ef' }, h("div", { key: '53a03532afde5fca6e8ec1cc78e6cd41ab1444cd', class: "font-preview", style: {
|
|
8
8
|
fontFamily: this.fontFamily,
|
|
9
9
|
fontSize: `${this.size}px`,
|
|
10
10
|
color: this.color
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.font-style-button {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
width: 42px;
|
|
15
|
-
height: 32px;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: none;
|
|
18
|
-
outline: none;
|
|
19
|
-
background: none;
|
|
20
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
21
|
-
border-radius: 0;
|
|
22
|
-
color: var(--control-text-color);
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
-webkit-tap-highlight-color: transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.font-style-button:not(:last-child) {
|
|
28
|
-
border-right: 1px solid #333333;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.font-style-button:hover {
|
|
32
|
-
background-color: var(--control-hover-bg);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.font-style-button:active {
|
|
36
|
-
background-color: var(--control-active-bg);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.font-style-button.selected,
|
|
40
|
-
.font-style-button.selected:hover,
|
|
41
|
-
.font-style-button.selected:active {
|
|
42
|
-
background-color: var(--control-selected-bg);
|
|
43
|
-
color: var(--control-selected-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.font-style-button.italic-text {
|
|
47
|
-
font-style: italic;
|
|
48
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.font-style-button {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 42px;
|
|
15
|
+
height: 32px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: none;
|
|
18
|
+
outline: none;
|
|
19
|
+
background: none;
|
|
20
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
color: var(--control-text-color);
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
-webkit-tap-highlight-color: transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.font-style-button:not(:last-child) {
|
|
28
|
+
border-right: 1px solid #333333;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.font-style-button:hover {
|
|
32
|
+
background-color: var(--control-hover-bg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.font-style-button:active {
|
|
36
|
+
background-color: var(--control-active-bg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.font-style-button.selected,
|
|
40
|
+
.font-style-button.selected:hover,
|
|
41
|
+
.font-style-button.selected:active {
|
|
42
|
+
background-color: var(--control-selected-bg);
|
|
43
|
+
color: var(--control-selected-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.font-style-button.italic-text {
|
|
47
|
+
font-style: italic;
|
|
48
|
+
}
|
|
@@ -31,7 +31,7 @@ export class KritzelFontFamily {
|
|
|
31
31
|
label: option.label,
|
|
32
32
|
style: { fontFamily: option.value },
|
|
33
33
|
}));
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '3d942116fc1019f1b2982395a08b14a9b0081040' }, h("kritzel-dropdown", { key: 'a042505de2d9b27c6f77ed929496a3921c3170cd', options: dropdownOptions, value: this.selectedFontFamily, onValueChanged: this.handleDropdownValueChange, selectStyles: { fontFamily: this.selectedFontFamily } })));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "kritzel-font-family"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,7 @@ export class KritzelFontFamily {
|
|
|
56
56
|
"references": {
|
|
57
57
|
"FontOption": {
|
|
58
58
|
"location": "local",
|
|
59
|
-
"path": "
|
|
59
|
+
"path": "/home/runner/work/kritzel/kritzel/libs/kritzel-stencil/src/components/shared/kritzel-font-family/kritzel-font-family.tsx",
|
|
60
60
|
"id": "src/components/shared/kritzel-font-family/kritzel-font-family.tsx::FontOption"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -69,7 +69,7 @@ export class KritzelFontFamily {
|
|
|
69
69
|
},
|
|
70
70
|
"getter": false,
|
|
71
71
|
"setter": false,
|
|
72
|
-
"defaultValue": "[\
|
|
72
|
+
"defaultValue": "[\n { value: 'arial', label: 'Arial' },\n { value: 'verdana', label: 'Verdana' },\n { value: 'helvetica', label: 'Helvetica' },\n { value: 'tahoma', label: 'Tahoma' },\n { value: 'trebuchet ms', label: 'Trebuchet MS' },\n { value: 'times new roman', label: 'Times New Roman' },\n { value: 'georgia', label: 'Georgia' },\n { value: 'garamond', label: 'Garamond' },\n { value: 'courier new', label: 'Courier New' },\n { value: 'brush script mt', label: 'Brush Script MT' },\n ]"
|
|
73
73
|
},
|
|
74
74
|
"selectedFontFamily": {
|
|
75
75
|
"type": "string",
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
padding: 0;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.size-container {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
width: 32px;
|
|
14
|
-
height: 32px;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
17
|
-
border: 2px solid transparent;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.size-container:hover {
|
|
23
|
-
background-color: var(--kritzel-font-size-hover-background-color, #ebebeb);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.size-container.selected {
|
|
27
|
-
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
28
|
-
background-color: var(--kritzel-font-size-selected-background-color, #e0e0e0);
|
|
29
|
-
}
|
|
30
|
-
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.size-container {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: 32px;
|
|
14
|
+
height: 32px;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
17
|
+
border: 2px solid transparent;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.size-container:hover {
|
|
23
|
+
background-color: var(--kritzel-font-size-hover-background-color, #ebebeb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.size-container.selected {
|
|
27
|
+
border-color: var(--kritzel-selection-border-color, #007AFF);
|
|
28
|
+
background-color: var(--kritzel-font-size-selected-background-color, #e0e0e0);
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -16,7 +16,7 @@ export class KritzelFontSize {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const color = 'var(--kritzel-global-text-primary)';
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'c409d73ff06966fd3861a16c7de32d41db85c12a' }, this.sizes.map(size => (h("div", { tabIndex: 0, class: {
|
|
20
20
|
'size-container': true,
|
|
21
21
|
'selected': this.selectedSize === size,
|
|
22
22
|
}, onClick: () => this.handleSizeClick(size), onKeyDown: event => this.handleKeyDown(event, size) }, h("kritzel-font", { fontFamily: this.fontFamily, size: size, color: color }))))));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex; /* Changed from block to inline-flex for better alignment */
|
|
3
|
-
justify-content: center; /* Center content horizontally */
|
|
4
|
-
align-items: center; /* Center content vertically */
|
|
5
|
-
color: var(--kritzel-icon-color, inherited);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
span {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
width: 100%; /* Make span fill host width */
|
|
12
|
-
height: 100%; /* Make span fill host height */
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
span > svg { /* Ensure SVG scales within the span */
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex; /* Changed from block to inline-flex for better alignment */
|
|
3
|
+
justify-content: center; /* Center content horizontally */
|
|
4
|
+
align-items: center; /* Center content vertically */
|
|
5
|
+
color: var(--kritzel-icon-color, inherited);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
span {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 100%; /* Make span fill host width */
|
|
12
|
+
height: 100%; /* Make span fill host height */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
span > svg { /* Ensure SVG scales within the span */
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|