@stnd/styles 0.7.6 → 0.9.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/CHANGELOG.md +12 -0
- package/_standard-06-prose.scss +87 -7
- package/_standard-07-base.scss +15 -3
- package/_standard-50-utilities.scss +54 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/_standard-06-prose.scss
CHANGED
|
@@ -79,7 +79,10 @@
|
|
|
79
79
|
transition: grid-template-columns var(--transition);
|
|
80
80
|
|
|
81
81
|
position: relative;
|
|
82
|
+
width: 100%;
|
|
82
83
|
max-width: var(--body-max-width);
|
|
84
|
+
margin-inline: auto;
|
|
85
|
+
padding-inline: var(--gap-body);
|
|
83
86
|
/*z-index: var(--z-base);*/
|
|
84
87
|
/* Default content positioning */
|
|
85
88
|
|
|
@@ -104,8 +107,8 @@
|
|
|
104
107
|
> .callout,
|
|
105
108
|
> blockquote,
|
|
106
109
|
> pre,
|
|
107
|
-
> figure,
|
|
108
|
-
> p:has(img),
|
|
110
|
+
> figure:not(.full-bleed):not(.breakout),
|
|
111
|
+
> p:has(img:not(.full-bleed):not(.breakout):not(.hero):not(.full)),
|
|
109
112
|
> .stnd-code-block {
|
|
110
113
|
grid-column: content;
|
|
111
114
|
margin-inline: var(--content-width-sm);
|
|
@@ -125,13 +128,25 @@
|
|
|
125
128
|
max-width: none;
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
.
|
|
129
|
-
.
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
.breakout,
|
|
132
|
+
p:has(> img.breakout),
|
|
133
|
+
p:has(> video.breakout),
|
|
134
|
+
figure.breakout {
|
|
135
|
+
grid-column: 1 / -1;
|
|
136
|
+
width: min(100%, 72rem);
|
|
137
|
+
max-width: 72rem;
|
|
138
|
+
margin-inline: auto !important;
|
|
132
139
|
}
|
|
133
140
|
|
|
134
|
-
.
|
|
141
|
+
.full,
|
|
142
|
+
.hero,
|
|
143
|
+
p:has(> img.hero),
|
|
144
|
+
p:has(> img.full),
|
|
145
|
+
p:has(> video.hero),
|
|
146
|
+
p:has(> video.full) {
|
|
147
|
+
grid-column: 1 / -1;
|
|
148
|
+
width: calc(100% + var(--gap-body) * 2);
|
|
149
|
+
max-width: calc(100% + var(--gap-body) * 2);
|
|
135
150
|
margin-inline: calc(var(--gap-body) * -1);
|
|
136
151
|
border-radius: 0 !important;
|
|
137
152
|
|
|
@@ -140,6 +155,71 @@
|
|
|
140
155
|
}
|
|
141
156
|
}
|
|
142
157
|
|
|
158
|
+
.full-bleed,
|
|
159
|
+
p:has(> img.full-bleed),
|
|
160
|
+
p:has(> video.full-bleed),
|
|
161
|
+
figure.full-bleed {
|
|
162
|
+
grid-column: 1 / -1 !important;
|
|
163
|
+
width: 100vw !important;
|
|
164
|
+
max-width: 100vw !important;
|
|
165
|
+
margin-inline: calc(50% - 50vw) !important;
|
|
166
|
+
border-radius: 0 !important;
|
|
167
|
+
|
|
168
|
+
img,
|
|
169
|
+
video {
|
|
170
|
+
width: 100% !important;
|
|
171
|
+
max-width: 100% !important;
|
|
172
|
+
margin-inline: 0 !important;
|
|
173
|
+
border-radius: 0 !important;
|
|
174
|
+
display: block;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Screen break & section transitions (T54) */
|
|
179
|
+
.stnd-screen-break {
|
|
180
|
+
grid-column: 1 / -1;
|
|
181
|
+
border: none;
|
|
182
|
+
height: 1px;
|
|
183
|
+
background: var(--color-border-subtle, rgba(125, 125, 125, 0.2));
|
|
184
|
+
margin-block: var(--gap-section, 6rem);
|
|
185
|
+
margin-inline: auto;
|
|
186
|
+
width: min(100%, 18rem);
|
|
187
|
+
position: relative;
|
|
188
|
+
scroll-margin-top: calc(var(--gap-header, 3.5rem) + 1.5rem);
|
|
189
|
+
|
|
190
|
+
&.screen-full {
|
|
191
|
+
width: 100%;
|
|
192
|
+
min-height: 80vh;
|
|
193
|
+
background: transparent;
|
|
194
|
+
margin-block: 0;
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
|
|
199
|
+
&::after {
|
|
200
|
+
content: "✦";
|
|
201
|
+
color: var(--color-muted, #888);
|
|
202
|
+
opacity: 0.5;
|
|
203
|
+
font-size: 1.25rem;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.stnd-screen-section {
|
|
209
|
+
grid-column: 1 / -1;
|
|
210
|
+
width: 100%;
|
|
211
|
+
margin-block: var(--gap-section, 4rem);
|
|
212
|
+
scroll-margin-top: calc(var(--gap-header, 3.5rem) + 1.5rem);
|
|
213
|
+
|
|
214
|
+
&.screen-full {
|
|
215
|
+
min-height: 85vh;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
margin-block: 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
143
223
|
/* Image gallery layout */
|
|
144
224
|
&:not(.no-grid) {
|
|
145
225
|
p:has(img),
|
package/_standard-07-base.scss
CHANGED
|
@@ -77,13 +77,18 @@ html {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
html,
|
|
81
|
+
body {
|
|
82
|
+
overflow-x: clip;
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
body {
|
|
81
86
|
margin: 0;
|
|
82
|
-
padding:
|
|
87
|
+
padding: 0;
|
|
83
88
|
padding-top: var(--gap-header);
|
|
84
89
|
padding-bottom: var(--gap-footer);
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
width: 100%;
|
|
91
|
+
min-height: 100vh;
|
|
87
92
|
|
|
88
93
|
transition:
|
|
89
94
|
background-color var(--transition),
|
|
@@ -98,6 +103,13 @@ body {
|
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
|
|
106
|
+
.container {
|
|
107
|
+
width: 100%;
|
|
108
|
+
max-width: var(--body-max-width);
|
|
109
|
+
margin-inline: auto;
|
|
110
|
+
padding-inline: var(--gap-body);
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
main {
|
|
102
114
|
transition:
|
|
103
115
|
background-color var(--transition),
|
|
@@ -374,6 +374,60 @@
|
|
|
374
374
|
margin-inline: calc((var(--gap-body) * -1)) !important;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
+
.full-bleed {
|
|
378
|
+
width: 100vw !important;
|
|
379
|
+
max-width: 100vw !important;
|
|
380
|
+
margin-inline: calc(50% - 50vw) !important;
|
|
381
|
+
border-radius: 0 !important;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.breakout {
|
|
385
|
+
width: min(100%, 72rem) !important;
|
|
386
|
+
max-width: 72rem !important;
|
|
387
|
+
margin-inline: auto !important;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.stnd-screen-break {
|
|
391
|
+
border: none;
|
|
392
|
+
height: 1px;
|
|
393
|
+
background: var(--color-border-subtle, rgba(125, 125, 125, 0.2));
|
|
394
|
+
margin-block: var(--gap-section, 6rem);
|
|
395
|
+
margin-inline: auto;
|
|
396
|
+
width: min(100%, 18rem);
|
|
397
|
+
scroll-margin-top: calc(var(--gap-header, 3.5rem) + 1.5rem);
|
|
398
|
+
|
|
399
|
+
&.screen-full {
|
|
400
|
+
width: 100%;
|
|
401
|
+
min-height: 80vh;
|
|
402
|
+
background: transparent;
|
|
403
|
+
margin-block: 0;
|
|
404
|
+
display: flex;
|
|
405
|
+
align-items: center;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
|
|
408
|
+
&::after {
|
|
409
|
+
content: "✦";
|
|
410
|
+
color: var(--color-muted, #888);
|
|
411
|
+
opacity: 0.5;
|
|
412
|
+
font-size: 1.25rem;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.stnd-screen-section {
|
|
418
|
+
width: 100%;
|
|
419
|
+
margin-block: var(--gap-section, 4rem);
|
|
420
|
+
scroll-margin-top: calc(var(--gap-header, 3.5rem) + 1.5rem);
|
|
421
|
+
|
|
422
|
+
&.screen-full {
|
|
423
|
+
min-height: 85vh;
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-direction: column;
|
|
426
|
+
justify-content: center;
|
|
427
|
+
margin-block: 0;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
377
431
|
/* ============================================================ */
|
|
378
432
|
/* TYPOGRAPHY — Size */
|
|
379
433
|
/* ============================================================ */
|