-
Notifications
You must be signed in to change notification settings - Fork 5
/
style-editor.css
357 lines (325 loc) · 7.96 KB
/
style-editor.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
@charset "UTF-8";
/**
* Styles for block editor (Gutenberg) content
* https://developer.wordpress.org/block-editor/developers/themes/theme-support/#editor-styles
*
* Note: This stylesheet is consumed by the normal block editor (wp-admin/calypso),
* but does not affect the block editor in p2tenberg.
*/
/**
* Variables & Utilities
*/
/**
* Colors (Keep in sync with inc/customizer.php)
*/
/**
* Typography
*/
/**
* Shadows
*/
/**
* Borders
*/
/**
* WP Admin Bar
*/
/**
* Breakpoints
*/
/**
* Column widths
*/
/**
* Spacing
*/
:root {
/**
* COLORS
*
* Keep in sync with inc/customizer.php
*/
--color-text: #00101c;
--color-text-light: #6b6b6b;
--color-link: #0267ff;
--color-link-dark: #004cbf;
--color-link-background: #dfeafb;
--color-border: #dbdde1;
--color-border-light: #e9eaed;
--color-border-medium: #c3c4c7;
--color-border-dark: #75808a;
--color-border-very-dark: #272c30;
--color-background-very-light: #f9f9f9;
--color-background-light: #f3f3f3;
--color-background-dark-medium: #1b252c;
--color-background-dark: #00101c;
--color-mentions: #b35eb1;
--color-mentions-highlight: rgba(179, 94, 177, 0.1);
--color-white: #fff;
--color-black: #000;
--color-green: #12ff61;
--color-green-dark: #00db41;
--color-yellow: #f6fa53;
--color-sidebar-background: var(--color-background-light);
--color-sidebar-content: var(--color-text);
/* TYPOGRAPHY */
--font-default: inter, -apple-system, system-ui, blinkmacsystemfont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
--font-body: inter, -apple-system, system-ui, blinkmacsystemfont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
--font-mono: monaco, consolas, Andale Mono, DejaVu Sans Mono, Courier New, monospace;
/* ANIMATION */
--transition-quick: 100ms; }
/**
* Core
*/
.wp-caption {
max-width: 100%; }
.wp-caption img {
display: block; }
.wp-block-code {
padding: 2em;
border: 0;
border-radius: 0;
font-family: var(--font-mono);
line-height: 1.4;
color: var(--color-text); }
.wp-block-code code {
padding: 0;
font-size: inherit; }
.wp-block-code .block-editor-plain-text {
border: 0;
background: transparent;
font-family: var(--font-mono); }
.wp-block-image img {
display: block; }
.wp-block-pullquote {
border: 0;
color: inherit; }
.wp-block-pullquote:not(.is-style-solid-color) blockquote {
margin-bottom: 0;
background: transparent; }
.wp-block-quote {
border: 0; }
.wp-block-quote p:last-of-type {
margin-bottom: 0; }
.wp-block-verse {
padding: 2em; }
/**
* UI
*/
/**
* Styles for block editor (Gutenberg) content
*
* P2tenberg currently does not support the standard way of applying theme styles
* to the block editor using add_editor_style(). This Sass placeholder class is
* used to share content styles across the normal block editor (wp-admin/calypso)
* and the p2tenberg editor.
*/
body .block-editor-default-block-appender .block-editor-default-block-appender__content {
color: var(--color-text-light);
font-family: var(--font-default); }
.wp-caption .wp-caption-text, .wp-block-image figcaption {
margin-top: 0.75em;
color: var(--color-text-light);
text-align: center;
font-size: 0.9em;
line-height: 1.5; }
/**
* Body content styles for post/pages and comments
*/
/**
* Styles for a blockquote
*/
body blockquote {
background: var(--color-background-very-light);
font-style: italic;
margin: 0 0 1.2em;
padding: 2em;
overflow: auto;
border-radius: 2px; }
body blockquote code {
border: 1px solid var(--color-border);
background: var(--color-white); }
body blockquote em {
font-style: normal; }
body blockquote.wp-embedded-content {
padding: 1.2em; }
.wp-block-pullquote__citation, .wp-block-quote__citation, body blockquote cite {
display: block;
margin-top: 1em;
text-align: right; }
.wp-block-pullquote__citation::before, .wp-block-quote__citation::before, body blockquote cite::before {
content: "—\0000a0"; }
/**
* Styles for <code>, <kbd>
*/
body code,
body kbd {
border-radius: 3px;
background: var(--color-background-very-light);
padding: 0.3em 0.55em;
font-family: var(--font-mono);
font-size: 0.8em; }
body .editor-post-title__input, body h1 {
font-family: var(--font-default);
font-weight: 800;
font-size: 2rem;
line-height: 1.35;
letter-spacing: -0.01em; }
@media (max-width: 876px) {
body .editor-post-title__input, body h1 {
font-size: 1.625rem; } }
body h2,
body h3,
body h4,
body h5,
body h6 {
font-family: var(--font-default);
line-height: 1.1;
font-weight: 700; }
body h2 {
font-size: 1.5rem; }
body h3 {
font-size: 1.25rem; }
body h4 {
font-size: 0.9375rem;
text-transform: uppercase;
letter-spacing: -0.01em; }
body h5 {
font-size: 0.8125rem;
text-transform: uppercase; }
body h6 {
font-size: 0.6875rem;
text-transform: uppercase; }
@media (max-width: 876px) {
body h2 {
font-size: 1.3125rem; }
body h3 {
font-size: 1.125rem; } }
/**
* Styles for a preformatted block
*/
.wp-block-code, body pre {
background: var(--color-background-very-light);
margin-bottom: 1.2em;
padding: 2em;
overflow: auto;
max-width: 100%;
font-family: var(--font-mono);
font-size: 0.8em; }
body table {
border-top: 1px solid var(--color-border-dark);
line-height: 1.4;
text-align: left; }
body table thead,
body table tfoot {
border: 0;
font-weight: 600; }
body table td,
body table th {
padding: 0.75em 1em;
border-top: 0;
border-right: 0;
border-bottom: 1px solid var(--color-border);
border-left: 0; }
body {
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.8;
/**
* Headings
*/
/**
* Images
*/
/**
* Block margins
*/ }
body p a,
body li a {
color: var(--color-link);
text-decoration: underline; }
body p a:hover,
body li a:hover {
color: var(--color-link-dark); }
body p {
margin: 0 0 1.8em; }
body p:empty {
margin-bottom: 0; }
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
margin: 3rem 0 1rem; }
body table {
margin-bottom: 1.8em; }
body blockquote,
body pre {
margin-bottom: 1.8em; }
body blockquote > :last-child,
body pre > :last-child {
margin-bottom: 0; }
body li:not(.blocks-gallery-item) {
margin-bottom: 0.5em; }
body li:not(.blocks-gallery-item) > ul,
body li:not(.blocks-gallery-item) > ol {
margin-top: 0.5em; }
body li:not(.blocks-gallery-item) ul {
list-style-type: circle; }
body .wp-block-image:not(.wp-block),
body .wp-block-cover,
body .wp-block-cover-image,
body .wp-caption {
margin-bottom: 1.8em; }
body .alignleft {
float: left;
margin-right: 1.8em;
margin-bottom: 1.8em; }
body .alignright {
float: right;
margin-left: 1.8em;
margin-bottom: 1.8em; }
body .wp-block-file {
margin-bottom: 1.8em; }
body table {
border-top: 1px solid var(--color-border-dark);
line-height: 1.4;
text-align: left; }
body table thead,
body table tfoot {
border: 0;
font-weight: 600; }
body table td,
body table th {
padding: 0.75em 1em;
border-top: 0;
border-right: 0;
border-bottom: 1px solid var(--color-border);
border-left: 0; }
/**
* https://opengrok.a8c.com/source/xref/trunk/wp-content/mu-plugins/inline-terms/
*/
body .mention,
body .tag,
body .p2-xpost {
text-decoration: none;
font-weight: 500;
padding: 2px 4px;
border-radius: 3px; }
body .mention:hover,
body .tag:hover,
body .p2-xpost:hover {
text-decoration: underline; }
body .mention {
color: var(--color-mentions);
background: var(--color-mentions-highlight); }
body .mention:hover {
color: var(--color-mentions); }
body .mention.mention-highlight, body .mention.mention-current-user {
background: var(--color-mentions);
color: var(--color-white); }
body .tag,
body .p2-xpost {
color: var(--color-link);
background: var(--color-background-very-light); }