@stnd/layout 0.6.4 → 0.6.6
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/Base.astro +1 -1
- package/CHANGELOG.md +13 -0
- package/Footer.astro +13 -8
- package/Header.astro +24 -13
- package/package.json +3 -3
package/Base.astro
CHANGED
|
@@ -107,7 +107,7 @@ const {
|
|
|
107
107
|
<Header {...header}>
|
|
108
108
|
<slot name="header-actions" slot="actions" />
|
|
109
109
|
<div slot="bottom-left" class="text-2xs text-subtle">
|
|
110
|
-
<a class="
|
|
110
|
+
<a class="no-decoration text-subtle" href="https://stnd.build/">
|
|
111
111
|
stnd.build
|
|
112
112
|
</a>
|
|
113
113
|
</div>
|
package/CHANGELOG.md
CHANGED
package/Footer.astro
CHANGED
|
@@ -112,28 +112,33 @@ const year = new Date().getFullYear();
|
|
|
112
112
|
<style is:global>
|
|
113
113
|
.stnd-footer {
|
|
114
114
|
width: 100%;
|
|
115
|
-
max-width: var(--
|
|
115
|
+
max-width: var(--page-max-width);
|
|
116
116
|
margin-inline: auto;
|
|
117
|
-
padding-inline: var(--
|
|
117
|
+
padding-inline: var(--page-padding);
|
|
118
118
|
font-family: var(--font-interface);
|
|
119
119
|
color: var(--color-subtle);
|
|
120
120
|
border-top: var(--border);
|
|
121
121
|
margin-top: calc(var(--space) * 12);
|
|
122
|
-
padding-block-start: var(--
|
|
122
|
+
padding-block-start: var(--space-4) !important;
|
|
123
|
+
text-box-trim: none;
|
|
124
|
+
|
|
125
|
+
* {
|
|
126
|
+
text-box-trim: none;
|
|
127
|
+
}
|
|
123
128
|
h1,
|
|
124
129
|
h2,
|
|
125
130
|
h3,
|
|
126
131
|
h4,
|
|
127
132
|
h5,
|
|
128
133
|
h6 {
|
|
129
|
-
font-size: var(--
|
|
134
|
+
font-size: var(--scale);
|
|
130
135
|
font-family: var(--font-interface);
|
|
131
136
|
margin-block-end: var(--space-half) !important;
|
|
132
137
|
font-weight: var(--font-header-weight);
|
|
133
138
|
margin-top: 0 !important;
|
|
134
139
|
}
|
|
135
140
|
h4 {
|
|
136
|
-
font-size: var(--
|
|
141
|
+
font-size: var(--scale-d2);
|
|
137
142
|
}
|
|
138
143
|
li {
|
|
139
144
|
margin-block-end: var(--leading) !important;
|
|
@@ -147,7 +152,7 @@ const year = new Date().getFullYear();
|
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
ul li {
|
|
150
|
-
font-size: var(--
|
|
155
|
+
font-size: var(--scale-d4);
|
|
151
156
|
margin-bottom: var(--space-2);
|
|
152
157
|
padding-inline-start: 0;
|
|
153
158
|
margin-top: 0 !important;
|
|
@@ -165,7 +170,7 @@ const year = new Date().getFullYear();
|
|
|
165
170
|
|
|
166
171
|
.footer-title {
|
|
167
172
|
font-family: var(--font-heading);
|
|
168
|
-
font-size: var(--
|
|
173
|
+
font-size: var(--scale);
|
|
169
174
|
font-weight: var(--font-header-weight);
|
|
170
175
|
color: var(--color-foreground);
|
|
171
176
|
margin: 0;
|
|
@@ -183,7 +188,7 @@ const year = new Date().getFullYear();
|
|
|
183
188
|
|
|
184
189
|
.footer-bottom {
|
|
185
190
|
margin-top: calc(var(--space) * 6);
|
|
186
|
-
margin-bottom:
|
|
191
|
+
margin-bottom: 0;
|
|
187
192
|
padding-bottom: var(--space);
|
|
188
193
|
|
|
189
194
|
strong {
|
package/Header.astro
CHANGED
|
@@ -308,8 +308,8 @@ const renderedItems = safeItems.map((item) => {
|
|
|
308
308
|
right: 0;
|
|
309
309
|
z-index: 300;
|
|
310
310
|
min-height: 0;
|
|
311
|
-
padding-inline: var(--
|
|
312
|
-
padding-block: var(--space-
|
|
311
|
+
padding-inline: var(--page-padding);
|
|
312
|
+
padding-block: var(--space-half);
|
|
313
313
|
background: var(--color-glass);
|
|
314
314
|
backdrop-filter: var(--filter-glass);
|
|
315
315
|
border-bottom: var(--border);
|
|
@@ -330,7 +330,7 @@ const renderedItems = safeItems.map((item) => {
|
|
|
330
330
|
backdrop-filter: none;
|
|
331
331
|
border-bottom-color: transparent;
|
|
332
332
|
box-shadow: none;
|
|
333
|
-
padding-block-start: var(--
|
|
333
|
+
padding-block-start: var(--page-padding);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
.stnd-header.is-scrolled {
|
|
@@ -349,14 +349,14 @@ const renderedItems = safeItems.map((item) => {
|
|
|
349
349
|
display: flex;
|
|
350
350
|
align-items: center;
|
|
351
351
|
justify-content: space-between;
|
|
352
|
-
max-width: var(--
|
|
352
|
+
max-width: var(--page-max-width);
|
|
353
353
|
margin-inline: auto;
|
|
354
354
|
pointer-events: auto;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
/* ── Brand ── */
|
|
358
358
|
.stnd-header-brand {
|
|
359
|
-
font-size: var(--
|
|
359
|
+
font-size: var(--scale);
|
|
360
360
|
font-weight: var(--font-header-weight);
|
|
361
361
|
text-decoration: none;
|
|
362
362
|
color: var(--color-foreground);
|
|
@@ -379,7 +379,7 @@ const renderedItems = safeItems.map((item) => {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.stnd-header-menu-desktop a {
|
|
382
|
-
font-size: var(--
|
|
382
|
+
font-size: var(--scale-d2);
|
|
383
383
|
text-decoration: none;
|
|
384
384
|
color: var(--color-muted);
|
|
385
385
|
}
|
|
@@ -485,7 +485,7 @@ const renderedItems = safeItems.map((item) => {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.stnd-header-menu-mobile a {
|
|
488
|
-
font-size: var(--
|
|
488
|
+
font-size: var(--scale-4);
|
|
489
489
|
font-weight: var(--font-header-weight);
|
|
490
490
|
color: var(--color-foreground);
|
|
491
491
|
text-decoration: none;
|
|
@@ -503,7 +503,7 @@ const renderedItems = safeItems.map((item) => {
|
|
|
503
503
|
.stnd-slot-br {
|
|
504
504
|
position: fixed;
|
|
505
505
|
z-index: 290;
|
|
506
|
-
bottom: var(--
|
|
506
|
+
bottom: var(--page-padding);
|
|
507
507
|
|
|
508
508
|
transition:
|
|
509
509
|
transform var(--duration-slow) var(--ease-stnd),
|
|
@@ -512,23 +512,34 @@ const renderedItems = safeItems.map((item) => {
|
|
|
512
512
|
transform: translateY(0);
|
|
513
513
|
opacity: 1;
|
|
514
514
|
will-change: transform, opacity;
|
|
515
|
+
text-box-trim: none;
|
|
515
516
|
}
|
|
516
517
|
|
|
517
518
|
.stnd-slot-bl {
|
|
518
|
-
left: var(--
|
|
519
|
+
left: var(--page-padding);
|
|
520
|
+
right: auto;
|
|
519
521
|
}
|
|
520
522
|
|
|
521
523
|
.stnd-slot-br {
|
|
522
|
-
right: var(--
|
|
524
|
+
right: var(--page-padding);
|
|
525
|
+
left: auto;
|
|
523
526
|
}
|
|
524
527
|
|
|
525
|
-
:global(:is(.stnd-slot-bl, .stnd-slot-
|
|
528
|
+
:global(:is(.stnd-slot-bl, .stnd-slot-br) *) {
|
|
529
|
+
text-box-trim: none;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
:global(:is(.stnd-slot-bl, .stnd-slot-br) a) {
|
|
526
533
|
color: inherit;
|
|
534
|
+
text-decoration: none;
|
|
535
|
+
}
|
|
536
|
+
:global(:is(.stnd-slot-bl, .stnd-slot-br) a:hover) {
|
|
537
|
+
color: var(--color-foreground);
|
|
527
538
|
}
|
|
528
|
-
:global(:is(.stnd-slot-bl, .stnd-slot-
|
|
539
|
+
:global(:is(.stnd-slot-bl, .stnd-slot-br) strong) {
|
|
529
540
|
color: inherit;
|
|
530
541
|
}
|
|
531
|
-
:global(:is(.stnd-slot-bl, .stnd-slot-
|
|
542
|
+
:global(:is(.stnd-slot-bl, .stnd-slot-br) em) {
|
|
532
543
|
color: inherit;
|
|
533
544
|
}
|
|
534
545
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stnd/layout",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Francis Fontaine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"wrangler": "^4.129.0",
|
|
18
|
-
"@stnd/lab": "1.0.
|
|
18
|
+
"@stnd/lab": "1.0.10",
|
|
19
19
|
"@stnd/log": "0.5.1",
|
|
20
|
-
"@stnd/ui": "0.6.
|
|
20
|
+
"@stnd/ui": "0.6.6"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"astro": ">=5.0.0"
|