@thebuilder/umbraco-docs 1.5.1 → 1.5.2
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 +1 -1
- package/package.json +2 -2
- package/styles/landing.css +8 -0
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ import { InstallCommand, LandingHero, LandingRoot } from "@thebuilder/umbraco-do
|
|
|
48
48
|
|
|
49
49
|
`logo`, `eyebrow` (a short line above the title) and `description` are optional. A hero can also draw its own background, such as a canvas, through the `background` slot, which renders behind the glow and the content.
|
|
50
50
|
|
|
51
|
-
`layout="split"` puts the text on the left, left-aligned, and the logo large on the right, as on the social cards. Below 56rem the logo sits above the text, smaller, with the text centered under it. The default, `centered`, stacks a small logo and the text in the middle. Give a split hero a `logo` or a `HeroParticles` background to fill that column. Content in the default slot, such as a `ScreenshotFrame`, goes below either layout at full width.
|
|
51
|
+
`layout="split"` puts the text on the left, left-aligned, and the logo large on the right, as on the social cards. Below 56rem the logo sits above the text, smaller, with the text centered under it. Below 36rem, in either layout, the action buttons share the full width of the text in equal parts and the install command spans the same width, so every site's hero lines up the same way on a phone. The default, `centered`, stacks a small logo and the text in the middle. Give a split hero a `logo` or a `HeroParticles` background to fill that column. Content in the default slot, such as a `ScreenshotFrame`, goes below either layout at full width.
|
|
52
52
|
|
|
53
53
|
Elements that come into view together reveal one after another, 60ms apart. To hold reveals back, for example until a background intro gets going, set `--udocs-reveal-offset` on a container, such as `.udocs-hero__inner { --udocs-reveal-offset: 300ms; }`.
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebuilder/umbraco-docs",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Composable Blume presentation and metadata contracts for TheBuilder Umbraco package documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"gray-matter": "4.0.3",
|
|
59
|
-
"sharp": "0.35.
|
|
59
|
+
"sharp": "0.35.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"blume": ">=1.4.3 <3",
|
package/styles/landing.css
CHANGED
|
@@ -74,6 +74,14 @@
|
|
|
74
74
|
.udocs-hero[data-layout="split"] .udocs-hero__actions { justify-content: center; }
|
|
75
75
|
.udocs-hero__art { order: -1; min-height: 0; height: clamp(9rem, 36vw, 15rem); }
|
|
76
76
|
}
|
|
77
|
+
/* On phones the action buttons share the full width of the text column, in equal parts, and the
|
|
78
|
+
install command spans the same width below them, so every site lines up the same way whatever
|
|
79
|
+
its button labels. Buttons too wide to share a row wrap, each onto its own full-width row. */
|
|
80
|
+
@media (width <= 36rem) {
|
|
81
|
+
.udocs-hero__copy > :is(.udocs-hero__actions, .udocs-install) { align-self: stretch; }
|
|
82
|
+
.udocs-hero__actions > * { flex: 1 1 0; }
|
|
83
|
+
.udocs-hero__copy > .udocs-install code { flex: 1; text-align: start; }
|
|
84
|
+
}
|
|
77
85
|
.udocs-install { display: inline-flex; align-items: center; max-width: 100%; gap: 0.75rem; padding: 0.55rem 0.6rem 0.55rem 1rem; border: 1px solid var(--udocs-border); border-radius: var(--udocs-radius); background: var(--blume-code-background, var(--udocs-muted)); font-family: var(--blume-font-mono, monospace); font-size: 0.9rem; }
|
|
78
86
|
.udocs-install > span { color: var(--udocs-muted-foreground); user-select: none; }
|
|
79
87
|
.udocs-install code { overflow-x: auto; color: var(--udocs-foreground); white-space: nowrap; }
|