@1001-digital/styles 1.2.0 → 1.3.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/package.json +1 -1
- package/src/base/reset.css +5 -0
- package/src/prose.css +249 -0
- package/src/variables/borders.css +1 -0
- package/src/variables/components/bottom-nav.css +1 -0
- package/src/variables/components/card.css +1 -1
- package/src/variables/components/dialog.css +1 -0
- package/src/variables/components/popover.css +1 -1
package/package.json
CHANGED
package/src/base/reset.css
CHANGED
package/src/prose.css
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Prose Layer
|
|
3
|
+
* Typography and content styling
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.prose {
|
|
7
|
+
/* Spacing */
|
|
8
|
+
> * {
|
|
9
|
+
margin: var(--spacer) 0;
|
|
10
|
+
color: var(--color);
|
|
11
|
+
|
|
12
|
+
&:first-child {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:last-child {
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Headings */
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
h5,
|
|
27
|
+
h6 {
|
|
28
|
+
width: 100%;
|
|
29
|
+
position: relative;
|
|
30
|
+
margin: var(--spacer) 0;
|
|
31
|
+
color: var(--color);
|
|
32
|
+
font-family: var(--font-family);
|
|
33
|
+
font-weight: var(--font-weight-bold);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: var(--font-xl);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h2,
|
|
41
|
+
h3,
|
|
42
|
+
h4,
|
|
43
|
+
h5,
|
|
44
|
+
h6,
|
|
45
|
+
.lead {
|
|
46
|
+
font-size: var(--font-lg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
hr {
|
|
50
|
+
margin: var(--spacer-lg) 0;
|
|
51
|
+
border-color: var(--gray-z-4, var(--muted));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
> table {
|
|
55
|
+
margin: var(--spacer) 0;
|
|
56
|
+
|
|
57
|
+
th,
|
|
58
|
+
td {
|
|
59
|
+
padding: calc(var(--spacer-sm) - var(--spacer-xs)) var(--spacer-sm);
|
|
60
|
+
border: var(--border);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Links */
|
|
65
|
+
a {
|
|
66
|
+
color: var(--primary);
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
transition: all var(--speed);
|
|
69
|
+
|
|
70
|
+
&.muted {
|
|
71
|
+
color: var(--gray-z-9, var(--muted));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h1,
|
|
76
|
+
h2,
|
|
77
|
+
h3,
|
|
78
|
+
h4,
|
|
79
|
+
h5,
|
|
80
|
+
h6 {
|
|
81
|
+
> a {
|
|
82
|
+
color: inherit;
|
|
83
|
+
border-bottom: none;
|
|
84
|
+
font-weight: inherit;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Quotes */
|
|
89
|
+
blockquote {
|
|
90
|
+
padding-left: var(--spacer);
|
|
91
|
+
font-size: var(--font-lg);
|
|
92
|
+
font-family: var(--font-family);
|
|
93
|
+
line-height: var(--line-height-lg);
|
|
94
|
+
border-left: 4px solid var(--primary);
|
|
95
|
+
font-style: italic;
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
color: var(--gray-z-7, var(--muted));
|
|
98
|
+
|
|
99
|
+
cite {
|
|
100
|
+
display: block;
|
|
101
|
+
font-size: var(--font-sm);
|
|
102
|
+
line-height: var(--line-height-sm);
|
|
103
|
+
text-align: right;
|
|
104
|
+
margin: 1em 0 0;
|
|
105
|
+
|
|
106
|
+
&:before {
|
|
107
|
+
content: '\2013';
|
|
108
|
+
margin-right: 0.5em;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Images */
|
|
114
|
+
figure figcaption,
|
|
115
|
+
p:has(> img) {
|
|
116
|
+
font-size: var(--font-sm);
|
|
117
|
+
line-height: var(--line-height-sm);
|
|
118
|
+
color: var(--gray-z-7, var(--muted));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
figure > img,
|
|
122
|
+
p > img,
|
|
123
|
+
> img {
|
|
124
|
+
border: var(--image-border);
|
|
125
|
+
border-radius: var(--image-border-radius);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
figure:has(img),
|
|
129
|
+
> img {
|
|
130
|
+
margin: var(--spacer-md) 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Lists */
|
|
134
|
+
ol {
|
|
135
|
+
list-style: auto;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
ul {
|
|
139
|
+
list-style: none;
|
|
140
|
+
|
|
141
|
+
> li {
|
|
142
|
+
position: relative;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
> li:before {
|
|
146
|
+
content: '\2022';
|
|
147
|
+
position: absolute;
|
|
148
|
+
color: var(--gray-z-5, var(--muted));
|
|
149
|
+
font-weight: bold;
|
|
150
|
+
display: inline-block;
|
|
151
|
+
width: 1em;
|
|
152
|
+
margin-left: -1em;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
ul,
|
|
157
|
+
ol {
|
|
158
|
+
padding-left: 1em;
|
|
159
|
+
|
|
160
|
+
li {
|
|
161
|
+
margin: 0.25em 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
ul,
|
|
165
|
+
ol {
|
|
166
|
+
margin: 0;
|
|
167
|
+
|
|
168
|
+
li {
|
|
169
|
+
margin: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Footnotes */
|
|
175
|
+
sup a,
|
|
176
|
+
.data-footnote-backref {
|
|
177
|
+
color: var(--gray-z-7, var(--muted));
|
|
178
|
+
padding: 0 0 0 var(--size-0);
|
|
179
|
+
|
|
180
|
+
&:is(:hover, :active, :focus, .active) {
|
|
181
|
+
color: var(--primary);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.data-footnote-backref {
|
|
186
|
+
font-size: var(--font-sm);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.footnotes {
|
|
190
|
+
font-size: var(--font-sm);
|
|
191
|
+
color: var(--gray-z-7, var(--muted));
|
|
192
|
+
border-top: var(--border);
|
|
193
|
+
margin-top: calc(2 * var(--size-5));
|
|
194
|
+
padding-top: var(--size-5);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Code */
|
|
198
|
+
pre:has(> code) {
|
|
199
|
+
padding: var(--ui-padding-block) var(--ui-padding-inline);
|
|
200
|
+
background-color: var(--gray-z-1, var(--background));
|
|
201
|
+
border: var(--border);
|
|
202
|
+
border-radius: var(--border-radius);
|
|
203
|
+
font-size: 0.8em;
|
|
204
|
+
overflow: scroll;
|
|
205
|
+
|
|
206
|
+
> code {
|
|
207
|
+
border: 0;
|
|
208
|
+
border-radius: 0;
|
|
209
|
+
padding: 0;
|
|
210
|
+
font-size: 1em;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Table */
|
|
215
|
+
> table {
|
|
216
|
+
margin: var(--size-4) 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Space */
|
|
220
|
+
> *:first-child,
|
|
221
|
+
> *:first-child > * {
|
|
222
|
+
margin-top: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
> *:last-child,
|
|
226
|
+
> *:last-child > * {
|
|
227
|
+
margin-bottom: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.centered {
|
|
231
|
+
text-align: center;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
iframe {
|
|
235
|
+
max-width: 100%;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* General prose rules */
|
|
240
|
+
.prose-title {
|
|
241
|
+
font-size: var(--font-xl);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Links in paragraphs */
|
|
245
|
+
p {
|
|
246
|
+
a {
|
|
247
|
+
text-decoration: underline;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--popover-background: var(--background);
|
|
3
3
|
--popover-border: var(--border);
|
|
4
|
-
--popover-border-radius: var(--border-radius);
|
|
4
|
+
--popover-border-radius: var(--border-radius-lg);
|
|
5
5
|
--popover-padding: var(--spacer);
|
|
6
6
|
--popover-arrow-fill: var(--background);
|
|
7
7
|
}
|