@efolusi/meridian 1.21.7 → 1.21.8
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/landing.css +103 -0
- package/package.json +2 -1
package/landing.css
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* Meridian landing layer — OPT-IN, not part of the core token contract.
|
|
2
|
+
*
|
|
3
|
+
* Page rhythm is not a component contract: a Button must look the same
|
|
4
|
+
* everywhere, but how much air sits between marketing sections is a property
|
|
5
|
+
* of the page, so these values deliberately live outside tokens/.
|
|
6
|
+
*
|
|
7
|
+
* They exist because every Efolusi product landing page had reinvented the
|
|
8
|
+
* same fluid clamp and landed on a different number (~69–81px) that matched no
|
|
9
|
+
* step of the spacing scale, while efolusi.com — the reference — sat on the
|
|
10
|
+
* scale at 96px. This file is that reference, written down once.
|
|
11
|
+
*
|
|
12
|
+
* Usage (after the Meridian tokens, because it builds on --space-*):
|
|
13
|
+
* <link rel="stylesheet" href="https://meridian.efolusi.com/landing.css">
|
|
14
|
+
* or, from the npm package: @import "@efolusi/meridian/landing.css";
|
|
15
|
+
*
|
|
16
|
+
* Then either use the tokens directly (padding-block: var(--section-y)) or the
|
|
17
|
+
* thin classes below. Both are fine; the classes only save the boilerplate.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
/* Phone. Matches efolusi.com at 375 through 640. */
|
|
22
|
+
--section-y: 64px;
|
|
23
|
+
--hero-top: 48px;
|
|
24
|
+
--hero-bottom: 56px;
|
|
25
|
+
--page-hero-top: 48px;
|
|
26
|
+
--page-hero-bottom: 40px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Tablet. efolusi.com switches here: 640 is still 64px, 641 is 80px. */
|
|
30
|
+
@media (min-width: 641px) {
|
|
31
|
+
:root {
|
|
32
|
+
--section-y: 80px;
|
|
33
|
+
--hero-top: 64px;
|
|
34
|
+
--hero-bottom: 72px;
|
|
35
|
+
--page-hero-top: 64px;
|
|
36
|
+
--page-hero-bottom: 48px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Desktop. efolusi.com switches here: 1020 is still 80px, 1021 is 96px.
|
|
41
|
+
--section-y is --space-24. */
|
|
42
|
+
@media (min-width: 1021px) {
|
|
43
|
+
:root {
|
|
44
|
+
--section-y: 96px;
|
|
45
|
+
--hero-top: 80px;
|
|
46
|
+
--hero-bottom: 88px;
|
|
47
|
+
--page-hero-top: 80px;
|
|
48
|
+
--page-hero-bottom: 56px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@layer meridian {
|
|
53
|
+
/* A marketing section: vertical rhythm plus the standard page gutter. The
|
|
54
|
+
gutter is 18px on phones because that is what the docs site and the
|
|
55
|
+
reference both use below 760px. */
|
|
56
|
+
.mrd-section {
|
|
57
|
+
padding-block: var(--section-y);
|
|
58
|
+
padding-inline: 18px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (min-width: 641px) {
|
|
62
|
+
.mrd-section {
|
|
63
|
+
padding-inline: 32px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* The first section of a landing page: less air above (the nav is already
|
|
68
|
+
there), a little more below than a normal section. */
|
|
69
|
+
.mrd-hero {
|
|
70
|
+
padding-block: var(--hero-top) var(--hero-bottom);
|
|
71
|
+
padding-inline: 18px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (min-width: 641px) {
|
|
75
|
+
.mrd-hero {
|
|
76
|
+
padding-inline: 32px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* The header of a sub-page (pricing, docs index, changelog): tighter than a
|
|
81
|
+
landing hero, because content follows immediately. */
|
|
82
|
+
.mrd-page-hero {
|
|
83
|
+
padding-block: var(--page-hero-top) var(--page-hero-bottom);
|
|
84
|
+
padding-inline: 18px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 641px) {
|
|
88
|
+
.mrd-page-hero {
|
|
89
|
+
padding-inline: 32px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Centres the content of any of the above on the shared measure. */
|
|
94
|
+
.mrd-container {
|
|
95
|
+
max-width: var(--container-max);
|
|
96
|
+
margin-inline: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.mrd-container--text {
|
|
100
|
+
max-width: var(--container-text);
|
|
101
|
+
margin-inline: auto;
|
|
102
|
+
}
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efolusi/meridian",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.8",
|
|
4
4
|
"description": "A general-purpose open-source design system by Efolusi: accessible React components, design tokens, blocks and example apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://meridian.efolusi.com",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"./styles.css": "./styles.css",
|
|
23
23
|
"./components.css": "./components.css",
|
|
24
|
+
"./landing.css": "./landing.css",
|
|
24
25
|
"./tokens/*": "./tokens/*",
|
|
25
26
|
"./package.json": "./package.json",
|
|
26
27
|
"./tokens.json": "./tokens.json",
|