@threadlabs/looma 0.46.4 → 0.46.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/components/ui-site-header/ui-site-header.html +49 -14
- package/dist/index.js +1 -1
- package/docs/catalog.json +3 -3
- package/package.json +1 -1
- package/styles/ui-site-header.css +89 -25
- package/vanilla/UiSiteHeader.js +2 -2
- package/vue/UiSiteHeader.vue +8 -24
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/components.css +8 -24
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ stylesheet is the only stylesheet to include. Without a build, link components o
|
|
|
56
56
|
## Site navigation
|
|
57
57
|
|
|
58
58
|
Provide the brand and navigation once. SiteHeader automatically adds a hamburger
|
|
59
|
-
in the inline navigation's position beside the logo below 64rem,
|
|
60
|
-
|
|
59
|
+
in the inline navigation's position beside the logo below 64rem, using compact
|
|
60
|
+
mobile spacing. Optional actions stay at the trailing edge. It opens the
|
|
61
61
|
same links in a full-height, scrollable modal drawer with a dark backdrop. It
|
|
62
62
|
handles focus, page scroll locking, Escape,
|
|
63
63
|
outside presses, and closing after link selection. No separate menu or drawer wiring
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
></ui-icon></ui-icon-button>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="inline-navigation" $ref="inline"
|
|
25
|
+
<div class="inline-navigation" $ref="inline">
|
|
26
|
+
<nav class="navigation" $ref="navigation" from:aria-label="$label"><slot name="navigation"></slot></nav>
|
|
27
|
+
</div>
|
|
26
28
|
<dialog
|
|
27
29
|
class="navigation-panel"
|
|
28
30
|
$ref="panel"
|
|
@@ -147,10 +149,13 @@
|
|
|
147
149
|
color: inherit;
|
|
148
150
|
}
|
|
149
151
|
:host(:state(drawer)) .inline-navigation,
|
|
150
|
-
.navigation-panel:not([open]),
|
|
152
|
+
.navigation-panel:not([open]),
|
|
153
|
+
.menu,
|
|
154
|
+
.panel-heading {
|
|
151
155
|
display: none !important;
|
|
152
156
|
}
|
|
153
157
|
:host(:state(drawer)) .identity {
|
|
158
|
+
column-gap: var(--ui-space-2) !important;
|
|
154
159
|
flex-wrap: nowrap !important;
|
|
155
160
|
align-items: center !important;
|
|
156
161
|
}
|
|
@@ -162,22 +167,52 @@
|
|
|
162
167
|
}
|
|
163
168
|
/* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
|
|
164
169
|
@media (width < 40rem) {
|
|
165
|
-
:host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
:host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
171
|
+
flex-wrap: nowrap !important;
|
|
172
|
+
align-items: center !important;
|
|
173
|
+
column-gap: var(--ui-space-2) !important;
|
|
174
|
+
}
|
|
175
|
+
:host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
|
|
176
|
+
display: grid !important;
|
|
177
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
178
|
+
justify-items: center !important;
|
|
179
|
+
flex: none;
|
|
180
|
+
}
|
|
181
|
+
:host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
|
|
182
|
+
display: none !important;
|
|
183
|
+
}
|
|
169
184
|
}
|
|
170
185
|
@media (width < 48rem) {
|
|
171
|
-
:host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
186
|
+
:host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
187
|
+
flex-wrap: nowrap !important;
|
|
188
|
+
align-items: center !important;
|
|
189
|
+
column-gap: var(--ui-space-2) !important;
|
|
190
|
+
}
|
|
191
|
+
:host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
|
|
192
|
+
display: grid !important;
|
|
193
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
194
|
+
justify-items: center !important;
|
|
195
|
+
flex: none;
|
|
196
|
+
}
|
|
197
|
+
:host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
|
|
198
|
+
display: none !important;
|
|
199
|
+
}
|
|
175
200
|
}
|
|
176
201
|
@media (width < 64rem) {
|
|
177
|
-
:host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
202
|
+
:host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
|
|
203
|
+
flex-wrap: nowrap !important;
|
|
204
|
+
align-items: center !important;
|
|
205
|
+
column-gap: var(--ui-space-2) !important;
|
|
206
|
+
}
|
|
207
|
+
:host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
|
|
208
|
+
display: grid !important;
|
|
209
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
210
|
+
justify-items: center !important;
|
|
211
|
+
flex: none;
|
|
212
|
+
}
|
|
213
|
+
:host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
|
|
214
|
+
display: none !important;
|
|
215
|
+
}
|
|
181
216
|
}
|
|
182
217
|
|
|
183
218
|
.automatic-menu {
|