-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathstyle.css
More file actions
311 lines (276 loc) · 9.16 KB
/
Copy pathstyle.css
File metadata and controls
311 lines (276 loc) · 9.16 KB
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
/*
Theme Name: Ipsum
Theme URI: https://wordpress.org/themes/ipsum/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Ipsum is a blank canvas built around the blogging experience, our proposal for what a default theme should be. Named after lorem ipsum, the placeholder that fills a page until real content arrives, it is composed enough to stand on its own and to be transformed the moment people start writing.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ipsum
Tags: one-column, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog
*/
/* Crossfade page transition */
@view-transition {
navigation: auto;
}
/* Font smoothing */
body {
text-rendering: geometricprecision;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/*
* Progressive enhancement to reduce widows and orphans
* https://github.com/WordPress/gutenberg/issues/55190
*/
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
text-wrap: pretty;
}
/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
* Dotted editorial underlines; !important also keeps the style from being reset
* by the text-decoration shorthand emitted in generated global styles.
* The span selector catches the editor's inline underline format.
*/
a, u, ins,
span[style*="text-decoration"] {
text-decoration-thickness: 1px !important;
text-decoration-style: dotted !important;
text-underline-offset: 0.1em
}
/*
* Breathing room when jumping to in-page anchors (e.g. the comments CTA
* landing on #comments or #respond), so targets don't sit flush with the
* viewport edge.
*/
:target {
scroll-margin-block-start: var(--wp--preset--spacing--50);
}
/*
* The comments list starts flush with its heading, unlike the comment form,
* whose internal whitespace pads its landing — match their perceived offset.
*/
#comments {
scroll-margin-block-start: var(--wp--preset--spacing--70);
}
/*
* Change the position of the more block on the front, by making it a block level element.
* https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
display: block;
}
/*
* Prevents unnecessary scrollbars while handling long lines of preformatted text.
* https://core.trac.wordpress.org/ticket/63875
*/
:where(pre) {
overflow-x: auto;
}
/*
* Make sure headers and footers have no margin, so the root block gap
* never adds spacing the parts don't control themselves.
* https://github.com/WordPress/gutenberg/issues/47637
*/
header.wp-block-template-part,
footer.wp-block-template-part {
margin-block-start: 0 !important;
}
/*
* Tables. All table styling lives here in one block (theme.json css strings
* cannot carry comments, and its table css remaps selectors onto the inner
* table) — edit or remove any rule below independently.
*
* Strokes: every table line — outer border, cell grid, and the rule under
* the header — draws in the ink wash, matching the calendar and form fields.
*/
.wp-block-table table,
.wp-block-table th,
.wp-block-table td {
border-color: var(--wp--preset--color--theme-4);
}
/*
* Header row: the palette wash as ground, a single hairline underneath
* (!important beats core's `thead { border-bottom: 3px solid }`, whose color
* would otherwise resolve to currentColor), and the theme's meta voice —
* Manrope, small, bold — for the labels.
*/
.wp-block-table thead {
background-color: var(--wp--preset--color--theme-5);
border-bottom-width: 1px !important;
border-bottom-color: var(--wp--preset--color--theme-4);
}
.wp-block-table thead th {
text-align: left;
font-family: var(--wp--preset--font-family--manrope);
font-size: var(--wp--preset--font-size--small);
font-style: normal;
font-weight: 700;
}
/*
* Striped tables: tint rows and rule with the palette wash instead of core's
* fixed gray, so stripes stay legible under every color variation.
*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: var(--wp--preset--color--theme-5);
}
.wp-block-table.is-style-stripes {
border-bottom-color: var(--wp--preset--color--theme-5);
}
/* Utility classes for removing text decoration from link. */
.no-underline a {
text-decoration: none;
}
/*
* Utility class prefixing an element with the "·" meta separator. Used where
* neighbors render conditionally (e.g. the comment Edit link only exists for
* users who can edit), so the dot appears and disappears with its element
* instead of leaving orphan separators. The padding carries the breathing
* room — literal spaces in generated content can collapse — so rows using
* this class need no block gap of their own.
*/
.dot-before::before {
content: "·";
font-weight: 600;
padding-inline: 0.5em;
}
/*
* Sticky headers: a sticky root block inside a template part has no room to
* travel — the part's wrapper element is exactly as tall as its content — so
* the wrapper itself must carry the stickiness. Keyed on the class core emits
* for the position support, so any header design set to sticky just works.
*/
header.wp-block-template-part:has(> .is-position-sticky) {
position: sticky;
inset-block-start: 0;
z-index: 10;
}
/*
* Keep a sticky header clear of the admin bar: it is fixed over the viewport,
* so logged-in users would see the header slide beneath it. Core publishes the
* bar's height (32px desktop / 46px small screens) as a custom property.
*/
.admin-bar header.wp-block-template-part:has(> .is-position-sticky) {
inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}
/*
* Short pages: a sticky bottom bar can only pin within the page's own height,
* so the site wrapper must reach at least the viewport; main grows to push
* the footer and the pinned bar down on pages with little content.
*/
.wp-site-blocks {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main {
flex-grow: 1;
}
/* Utility class for pinning an element to the bottom of the viewport. */
.sticky-bottom {
position: sticky;
inset-block-end: 0;
z-index: 10;
}
/*
* Quiet search button inside the pinned Search Bar part only: light ground,
* outlined; global button states take back over on hover/focus/active.
*/
.sticky-bottom .wp-block-search__button.wp-element-button:not(:hover):not(:focus):not(:active) {
background-color: var(--wp--preset--color--theme-1);
border: 1px dotted var(--wp--preset--color--theme-2);
color: var(--wp--preset--color--theme-2);
}
/*
* Utility class for a query loop whose post rows hover as one: hovering any
* visible content of a row colors the whole row. Keyed on the row's child
* blocks because the row group's own box spans the full alignwide band.
*/
.hover-together .wp-block-post > .wp-block-group,
.hover-together .wp-block-post > .wp-block-group a {
transition: color 0.15s ease-out;
}
.hover-together .wp-block-post > .wp-block-group:has(> :hover),
.hover-together .wp-block-post > .wp-block-group:has(> :hover) a {
color: var(--wp--preset--color--theme-6);
}
/*
* Flip the audio player's engine-drawn controls to the browser's dark set
* when the Evening palette is active. A style query on the palette var is
* the only signal a color preset can deliver — they filter out non-color
* settings on apply, so this cannot ride a custom property from the file.
*/
@container style(--wp--preset--color--theme-1: #000000) {
.wp-block-audio audio {
color-scheme: dark;
}
}
/* Same flip for After Hours' plum-black ground. */
@container style(--wp--preset--color--theme-1: #310c25) {
.wp-block-audio audio {
color-scheme: dark;
}
}
/* Same flip for Golden Hour's maroon ground. */
@container style(--wp--preset--color--theme-1: #7a1000) {
.wp-block-audio audio {
color-scheme: dark;
}
}
/*
* Arrival bar: the blank canvas keeps index and single visually close, so a
* thin accent bar sweeps the top of the viewport when a single post loads,
* then fades — a quiet confirmation that navigation happened. Width animates
* as inline-size so the sweep follows the reading direction in RTL.
*/
@media (prefers-reduced-motion: no-preference) {
.single::before {
content: "";
position: fixed;
inset-block-start: 0;
inset-inline-start: 0;
block-size: 3px;
inline-size: 100%;
background-color: var(--wp--preset--color--theme-3);
z-index: 99;
pointer-events: none;
animation: ipsum-arrival 0.9s ease-out forwards;
}
.admin-bar.single::before {
inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}
@keyframes ipsum-arrival {
0% {
inline-size: 0;
opacity: 1;
}
60% {
inline-size: 100%;
opacity: 1;
}
100% {
inline-size: 100%;
opacity: 0;
}
}
}
/* A light tilt-and-settle on the row's featured image when the row is hovered. */
@media (prefers-reduced-motion: no-preference) {
@keyframes tilt-settle {
35% {
transform: rotate(-1deg);
}
100% {
transform: rotate(0deg);
}
}
.hover-together .wp-block-post > .wp-block-group:has(> :hover) .wp-block-post-featured-image img {
animation: tilt-settle 0.5s ease-out;
}
}