Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
1269 lines (1099 loc) · 44.4 KB
/
Copy pathstyle.css
File metadata and controls
1269 lines (1099 loc) · 44.4 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
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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Theme Name: Origin Canvas
Theme URI: https://origin-blocks.github.io/origin-canvas/
Author: Origin
Author URI: https://github.com/origin-blocks
Description: Start closer to finished with Origin Canvas. Choose from 100 patterns in 18 categories, including 7 full-page designs. Customize your pages in the Site Editor, with no page builder or plugin needed. Use the 12 style variations to change colors, type or both, and Global Styles to adjust the design across your site. The patterns share color, type and spacing presets, so sections line up from page to page. Full demo: https://demo.originblocks.dev/canvas/
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: origin-canvas
Tags: blog, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, grid-layout, one-column, style-variations, template-editing, threaded-comments, three-columns, translation-ready, two-columns, wide-blocks
*/
/* Baseline reset keeps browser defaults predictable until block styles take over. */
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
html {
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
line-height: 1.5;
min-height: 100vh;
}
ul,
ol {
list-style: none;
}
/* Block list defaults override the global reset. */
ul.wp-block-list,
ol.wp-block-list,
.wp-block-list ul,
.wp-block-list ol {
list-style-position: outside;
padding-inline-start: var(--wp--preset--spacing--medium);
}
ul.wp-block-list,
.wp-block-list ul {
list-style-type: disc;
}
ol.wp-block-list,
.wp-block-list ol {
list-style-type: decimal;
}
/**
* Comment bodies are freeform HTML with no layout container, so the global
* margin + list-style resets above are not otherwise restored here.
*/
.wp-block-comment-content > * + * {
margin-block-start: var(--wp--preset--spacing--medium);
}
.wp-block-comment-content ul,
.wp-block-comment-content ol {
list-style-position: outside;
padding-inline-start: var(--wp--preset--spacing--medium);
}
.wp-block-comment-content ul {
list-style-type: disc;
}
.wp-block-comment-content ol {
list-style-type: decimal;
}
/* Contain long unbreakable strings so they wrap inside the card. */
.wp-block-comment-content {
overflow-wrap: break-word;
word-break: break-word;
}
/* Preformatted/code wraps inside the card instead of overflowing. */
.wp-block-comment-content pre {
overflow-wrap: break-word;
white-space: pre-wrap;
}
a {
text-decoration: none;
}
/* Every link fades its colour in 200ms on hover and focus, the nav link and button timing.
theme.json holds the link hover colours but has no transition property; a button's states
are the state layer in core-button.css. Nav links, buttons, chips and the other links with
their own transition rule are more specific and keep it. */
@media (prefers-reduced-motion: no-preference) {
a {
transition: color 200ms ease;
}
}
.origin-canvas-links-plain a {
text-decoration: none;
}
mark.has-inline-color:not([style*="background" i]):not(.has-background):not([class*="-background-color"]) {
background-color: transparent;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
button,
input,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
/* Form fields. Fields and a lone visible action are at least 44px tall, so the hit target
does not depend on line height (#119). Buttons take the same floor from theme.json,
styles.elements.button, which reaches every button block, search button and form submit. */
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
background-color: var(--wp--preset--color--base);
border: 1px solid var(--wp--preset--color--contrast-5);
border-radius: var(--wp--custom--radius--medium);
color: var(--wp--preset--color--contrast-2);
font-size: var(--wp--preset--font-size--regular);
min-height: 44px;
padding: var(--wp--preset--spacing--small-medium) var(--wp--preset--spacing--medium);
width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
transition: box-shadow 120ms ease, border-color 120ms ease;
}
}
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])::placeholder,
textarea::placeholder {
color: var(--wp--preset--color--contrast-3);
}
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover:not(:disabled):not(:focus),
select:hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not(:focus) {
border-color: var(--wp--preset--color--contrast-5);
}
/* The transparent outline replaces the browser's and still paints in forced-colors mode, where
the ring is dropped, so a focused field keeps a visible edge. */
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
select:focus,
textarea:focus {
border-color: var(--wp--preset--color--primary);
box-shadow: 0 0 0 var(--wp--preset--spacing--extra-small) color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
outline: 2px solid transparent;
}
input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):disabled,
select:disabled,
textarea:disabled {
background-color: var(--wp--preset--color--base-2);
border-color: var(--wp--preset--color--base-6);
color: var(--wp--preset--color--contrast-2);
cursor: not-allowed;
}
/* Checkboxes and radios are the browser's own controls, drawn in the theme's primary: no
custom box, check, dot or focus ring, so they look and behave as the visitor's platform
draws them, as Ollie leaves them. */
input[type="checkbox"],
input[type="radio"] {
accent-color: var(--wp--preset--color--primary);
cursor: pointer;
margin: 0;
}
/* Labels, control rows and fieldsets (#137). theme.json has no label, input or fieldset
element and core has no stable Form block, so these are CSS. Each selector is its
structure inside :where() plus one element, so every rule weighs exactly one element:
enough to follow the element reset above it, and under any class a plugin writes. A label looks like the comment form's: small, 500, the heading
color. A field inside or after its label sits 8px below it, whichever way the markup
nests (a plain label and field, or Contact Form 7's label around a span around the
field). A label that holds a checkbox or radio is a row: the control on the first line
of the text with an 8px gap, the text at body size and weight, 8px between stacked rows.
A fieldset is a plain group and its legend is a label. */
:where(label, legend):is(label, legend) {
color: var(--wp--preset--color--contrast);
font-size: var(--wp--preset--font-size--small);
font-weight: 500;
}
/* A label that holds its field, or stands before it, is a block at the comment form's line
height, so the label-to-field and field-to-next-label distances are the comment form's. */
:where(label:has(> :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea)), label:has(> span > :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea)), label:has(+ :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea))):is(label) {
display: block;
line-height: var(--wp--custom--line-height--normal);
}
:where(label :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea), label + :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea)):is(input, select, textarea) {
margin-top: var(--wp--preset--spacing--small);
}
:where(label:has(> input[type="checkbox"], > input[type="radio"])):is(label) {
align-items: start;
color: var(--wp--preset--color--contrast-2);
display: inline-grid;
font-size: var(--wp--preset--font-size--regular);
font-weight: 400;
gap: var(--wp--preset--spacing--small);
grid-template-columns: auto 1fr;
}
:where(label:has(> input[type="checkbox"], > input[type="radio"]) > :is(input[type="checkbox"], input[type="radio"])):is(input) {
margin-top: 0.35em;
}
:where(label:has(> input[type="checkbox"], > input[type="radio"]) ~ label:has(> input[type="checkbox"], > input[type="radio"])):is(label),
:where(.wpcf7-list-item + .wpcf7-list-item):is(span) {
margin-top: var(--wp--preset--spacing--small);
}
/* A field, a fieldset or a control row is followed by a medium gap before the next label
or group, so a form built from bare labels and fields, or from paragraphs as Contact
Form 7 writes them, reads in rows. The Search block lays its field and button out
itself, so it is left alone. */
:where(form:not(.wp-block-search) :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea, fieldset)):is(input, select, textarea, fieldset) {
margin-bottom: var(--wp--preset--spacing--medium);
}
:where(form p + p):is(p) {
margin-top: var(--wp--preset--spacing--medium);
}
/* Later than the rule above and at the same zero specificity, so it wins: a field inside a
paragraph takes the paragraph gap only. */
:where(form p :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea, fieldset)):is(input, select, textarea, fieldset) {
margin-bottom: 0;
}
:where(form label:has(> input[type="checkbox"], > input[type="radio"]) + :is(p, button, input[type="submit"], input[type="button"])):is(p, button, input) {
margin-top: var(--wp--preset--spacing--medium);
}
:where(fieldset):is(fieldset) {
border: 0;
margin: 0;
margin-bottom: var(--wp--preset--spacing--medium);
min-width: 0;
padding: 0;
}
:where(fieldset > label:has(> input[type="checkbox"], > input[type="radio"])):is(label) {
display: grid;
}
:where(legend):is(legend) {
display: block;
margin-bottom: var(--wp--preset--spacing--small);
padding: 0;
}
:where(legend + label:has(> input[type="checkbox"], > input[type="radio"])):is(label) {
margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}
/* Dynamic post and archive support */
.origin-canvas-post-excerpt .wp-block-post-excerpt__more-link {
align-items: center;
display: inline-flex;
font-weight: 600;
gap: 0.25rem;
text-decoration: none;
}
.origin-canvas-post-excerpt .wp-block-post-excerpt__more-link::after {
content: "\2192";
}
/* Featured image fallback */
.origin-canvas-featured-fallback {
display: block;
overflow: hidden;
}
.origin-canvas-featured-fallback--list {
height: 100%;
width: 100%;
}
.origin-canvas-featured-fallback--list .origin-canvas-featured-fallback__media {
background-color: var(--wp--preset--color--base);
background-image:
linear-gradient(to left, var(--wp--preset--color--base-2) 0%, color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--base) 72%) 100%);
}
.origin-canvas-featured-fallback--list img {
display: block;
height: 100%;
object-fit: cover;
width: 100%;
}
.origin-canvas-featured-fallback__link {
display: block;
height: 100%;
width: 100%;
}
.origin-canvas-featured-fallback__media {
--origin-canvas-featured-fallback-edge: linear-gradient(180deg, transparent 0%, var(--wp--preset--color--base-2) 100%);
background-color: var(--wp--preset--color--base);
background-image:
radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--wp--preset--color--primary) 42%, transparent) 0%, transparent 55%),
radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--wp--preset--color--primary) 32%, transparent) 0%, transparent 62%),
radial-gradient(circle at 48% 78%, color-mix(in srgb, var(--wp--preset--color--base-2) 82%, transparent) 0%, transparent 64%),
var(--origin-canvas-featured-fallback-edge),
linear-gradient(140deg, color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--base-2) 72%, transparent) 100%);
display: block;
height: 100%;
width: 100%;
}
/* Pagination */
.wp-block-query-pagination,
.wp-block-comments-pagination {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: var(--wp--preset--spacing--small);
justify-content: center;
}
.wp-block-query-pagination-numbers,
.wp-block-comments-pagination-numbers {
display: flex;
flex-wrap: wrap;
gap: var(--wp--preset--spacing--small);
}
.wp-block-query-pagination .page-numbers,
.wp-block-comments-pagination .page-numbers {
min-inline-size: var(--wp--preset--spacing--extra-large);
}
.wp-block-query-pagination .page-numbers.current,
.wp-block-comments-pagination .page-numbers.current {
align-items: center;
background: var(--wp--preset--color--contrast);
border-radius: var(--wp--custom--radius--medium);
color: var(--wp--preset--color--base);
cursor: default;
display: inline-flex;
font-size: var(--wp--preset--font-size--small);
font-weight: 500;
justify-content: center;
min-inline-size: var(--wp--preset--spacing--extra-large);
padding: 0.875rem 1.25rem;
}
.wp-block-query-pagination .page-numbers.dots,
.wp-block-comments-pagination .page-numbers.dots {
align-items: center;
background: transparent;
color: var(--wp--preset--color--contrast-2);
cursor: default;
display: inline-flex;
min-inline-size: auto;
padding: 0.875rem 0.5rem;
}
/**
* Pagination number links stay plain (opt-in underline system). The selector applies in
* both contexts, but only has an EFFECT in the block editor: core adds an underline to
* .wp-block-query-pagination-numbers a solely via the block's editor.css. On the front end
* the numbers are already undecorated (the global `a { text-decoration: none }` reset), so
* this rule is a no-op there. Loaded into the editor iframe via add_editor_style('style.css').
*/
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-comments-pagination-numbers .page-numbers {
text-decoration: none;
}
/**
* Table default font size - must be in CSS because core/table block.json
* rewrites theme.json selectors to target inner <table>, making wrapper
* defaults impossible via theme.json.
*/
.wp-block-table > table {
font-size: var(--wp--preset--font-size--small);
}
.wp-block-table[class*="-font-size"] > table {
font-size: inherit;
}
/**
* Sticky header: when the header contains a sticky child, make the header
* wrapper itself the sticky element (its containing block is the page flow, so
* it can travel), admin-bar-aware, above page content. Front end only.
*/
body:not(.wp-admin) header:has(> .is-position-sticky) {
position: sticky;
top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
z-index: 100;
}
@media (max-width: 600px) {
body:not(.wp-admin) header:has(> .is-position-sticky) {
top: 0;
}
}
/**
* Anchor targets land below the sticky chrome: the admin bar (core sets this part
* itself, so it is only restated) plus the sticky header's measured height, which
* assets/js/anchor-navigation.js keeps in --origin-canvas-sticky-header-height.
* Mirrors the sticky-header rule above: at 600px and below the admin bar is not fixed.
*/
html {
scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--origin-canvas-sticky-header-height, 0px));
}
@media (max-width: 600px) {
html {
scroll-padding-top: var(--origin-canvas-sticky-header-height, 0px);
}
}
/**
* TRANSITIONAL back-compat for the removed `display` font-family preset.
* REMOVE: 1.5.0 at the earliest, and only if no Display-related report has
* arrived since 1.3.0 shipped (the rules mirror current WordPress preset
* output — re-check them if core changes how font-family presets are emitted).
*
* 1.3.0 dropped the `display` preset from theme.json: its stack was
* byte-identical to `sans`, and matching by fontFamily string made the editor's
* font control tick both entries. Content or global styles saved under earlier
* versions may still reference it (block picks, or Display as a global font).
* These two rules reproduce the exact CSS WordPress generated for the preset,
* so that stored content keeps rendering Inter: the class rule out-ranks the
* typography variations' heading rules exactly as before, and the var
* definition keeps a global Display font resolving instead of falling through
* to the browser default. Non-destructive — stored content is never touched;
* loads in the editor canvas too via add_editor_style( 'style.css' ). Known
* limitation: stylesheets loading after this one can override these rules at
* equal specificity — deliberate targeting of a retired preset's internals is
* treated as the customizer's intent.
*/
:root {
--wp--preset--font-family--display: var(--wp--preset--font-family--sans);
}
.has-display-font-family {
font-family: var(--wp--preset--font-family--display) !important;
}
/**
* Letter spacing follows font size. theme.json holds the tokens
* (settings.custom.letterSpacing). theme.json cannot attach a style to a font-size
* preset, so these rules give the tokens to any block set at a preset from medium
* up, paragraphs included.
*
* Zero specificity, so a letter spacing set on the block or in Global Styles wins.
* Headings take their value through the variable, which elements.heading reads with
* the base token as fallback. A size class sets the variable; a heading with no size
* class takes it from its level, and the named blocks below take the token for the
* size theme.json gives them. These rules set only the variable, never letter-spacing,
* so a Global Styles heading letter spacing still replaces the one heading rule for
* every level. The variable does not inherit: a heading inside a larger block keeps
* its own value.
*/
@property --origin-canvas-letter-spacing {
syntax: "*";
inherits: false;
}
/* The element ladder: h1 48, h2 36, h3 30 are display; h4 24 large; h5 20 medium.
h6 18 takes the base fallback. Only the variable is set, never letter-spacing. */
:where(h1, h2, h3) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--display);
}
:where(h4) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--large);
}
:where(h5) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--medium);
}
/* Headings sized off the ladder: theme.json sizes the comments title at large and the
site title (an h1 when its level is set) at regular-plus; the reply title is
regular-plus. A heading with a custom size keeps its level's token; the block's
Letter spacing control is the way to change it. */
:where(.wp-block-comments-title) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--large);
}
:where(.wp-block-site-title, .comment-reply-title) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--base);
}
:where(.has-extra-large-font-size, .has-huge-font-size, .has-display-font-size, .has-display-xl-font-size, .has-display-2-xl-font-size) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--display);
letter-spacing: var(--origin-canvas-letter-spacing);
}
:where(.has-large-font-size) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--large);
letter-spacing: var(--origin-canvas-letter-spacing);
}
:where(.has-medium-font-size) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--medium);
letter-spacing: var(--origin-canvas-letter-spacing);
}
/* Below medium a heading takes base, whatever its level. The variable only: body
text at these sizes keeps normal letter spacing. */
:where(.has-extra-small-font-size, .has-small-font-size, .has-regular-font-size, .has-regular-plus-font-size) {
--origin-canvas-letter-spacing: var(--wp--custom--letter-spacing--base);
}
/* The site title reads the variable only when it renders as a paragraph (level 0). An h1
site title is a heading, so the one heading rule in theme.json, and a Global Styles
"Headings" letter spacing, reach it. theme.json cannot scope a value by tag. */
:where(p.wp-block-site-title) {
letter-spacing: var(--origin-canvas-letter-spacing);
}
/* Letter spacing inherits as a computed length, so small text inside one of the
nodes above would take the larger size's spacing. Reset it to the body default. */
:where(.has-medium-font-size, .has-large-font-size, .has-extra-large-font-size, .has-huge-font-size, .has-display-font-size, .has-display-xl-font-size, .has-display-2-xl-font-size) :where(.has-extra-small-font-size, .has-small-font-size, .has-regular-font-size, .has-regular-plus-font-size) {
letter-spacing: normal;
}
/* ==========================================================================
Utilities
Opt-in classes, applied through Additional CSS Classes, each named for the one
job it does so any block can use it. See CLAUDE.md rule 6b.
========================================================================== */
/* A flex child that keeps its size. WordPress 7.0's Fixed width sets only the
basis, so the item can still shrink; 7.1 saves Fixed as fixedNoShrink, which
holds, but the theme supports 7.0. Pair it with Fixed (selfStretch "fixed"). */
.origin-canvas-no-shrink {
flex-shrink: 0;
}
/* A Row whose children sit on a shared text baseline. Core aligns a flex row only
top, center, bottom or stretch; aligning line boxes leaves glyphs of different
sizes up to 6px apart. */
.origin-canvas-align-baseline.is-layout-flex {
align-items: baseline;
}
/* Text whose lines break to near-equal lengths, so a heading never ends on one
word. No block support or theme.json property sets text-wrap. */
.origin-canvas-text-balance {
text-wrap: balance;
}
/* A wide hero headline capped at 810px, a reading measure. Core gives a child only the
content width or the wide width, and a literal content width leaves the Layout control
(#130). At the wide width a long headline runs up to about 1,150px; this caps the
heading's box at 810px, and the balance utility evens its lines. Set on an h1 with
align wide, which core still centres. */
.is-layout-constrained > .origin-canvas-display-measure.alignwide {
max-width: 810px;
}
/* A dot texture on a section: 1px dots at a 20px pitch, contrast at 8% on a
light ground, base-2 at 10% on the theme's dark grounds (ODS "Dot texture").
Apply one class: even dots, fade to centre (strongest at the top and sides), or
fade down (fading out down the section). theme.json cannot hold a palette-aware
tiled dot, and a gradient set in the block's Background keeps fixed colours.
The dots sit on a layer under the content, so a fade masks the dots only, and a
background colour, gradient or image set on the block still shows beneath. */
.origin-canvas-dots,
.origin-canvas-dots-fade-centre,
.origin-canvas-dots-fade-down {
--origin-canvas-dots-ink: var(--wp--preset--color--contrast);
--origin-canvas-dots-alpha: 8%;
isolation: isolate;
position: relative;
}
.origin-canvas-dots::before,
.origin-canvas-dots-fade-centre::before,
.origin-canvas-dots-fade-down::before {
background-image: radial-gradient(circle at 3px 3px, color-mix(in srgb, var(--origin-canvas-dots-ink) var(--origin-canvas-dots-alpha), transparent) 1px, transparent 1.5px);
background-size: 20px 20px;
content: "";
inset: 0;
pointer-events: none;
position: absolute;
z-index: -1;
}
/* Fade to centre, measured from Knock's hero: about 20% at the top edge, 7% at the
sides and 3–5% in the middle. The two masks multiply. */
.origin-canvas-dots-fade-centre {
--origin-canvas-dots-alpha: 22.5%;
}
.origin-canvas-dots-fade-centre::before {
mask-composite: intersect;
mask-image:
linear-gradient(to bottom, #000 0, rgb(0 0 0 / 35%) 120px, rgb(0 0 0 / 35%) 100%),
radial-gradient(ellipse 55% 80% at 50% 50%, rgb(0 0 0 / 45%) 0%, rgb(0 0 0 / 55%) 50%, #000 100%);
}
/* Fade down, measured from Warp's hero: in over the top 19%, full (about 7%) to
42%, then out past the bottom edge. */
.origin-canvas-dots-fade-down::before {
mask-image: linear-gradient(to bottom, transparent 0%, #000 19%, #000 42%, transparent 138%);
}
/* The theme's dark grounds: the custom.dark.bg fill the dark patterns use, and the
contrast palette fill. Every form peaks at 10%; a fade keeps its
masks, so fade to centre scales from 10% at the top edge. Content saved before the
#116 rename still holds the old Text Heading fill class; the twin rules in
assets/css/palette-aliases.css match it. */
:is(.origin-canvas-dots, .origin-canvas-dots-fade-centre, .origin-canvas-dots-fade-down):is(.has-contrast-background-color, [style*="--wp--custom--dark--bg"]) {
--origin-canvas-dots-ink: var(--wp--preset--color--base-2);
--origin-canvas-dots-alpha: 10%;
}
/* ==========================================================================
Pattern CSS
Only what core cannot do for a pattern (CLAUDE.md rule 6b). One section per
pattern, named for it. These rules load on every page, so keep them small.
========================================================================== */
/**
* Pattern Showcase: a full-bleed 12-column grid of wash tiles.
*
* Core cannot hold this on WordPress 7.0: it has no 12/6/2 column breakpoints and no
* control for layered color-mix gradients. Colors route through palette tokens so
* the tiles reskin with style variations.
*/
.origin-canvas-pattern-board {
display: grid;
gap: 20px;
grid-template-columns: repeat(12, minmax(0, 1fr));
margin-top: 56px;
padding-inline: clamp(20px, 3.5vw, 48px);
}
.origin-canvas-wash-tile {
background-color: var(--wp--preset--color--base);
border-radius: var(--wp--custom--radius--medium);
/* !important so the editor-placeholder-suppressing inline min-height:240px
(on the block, see pattern) does not flatten the responsive clamp on the
front end. Inline styles beat plain stylesheet rules; !important wins back. */
min-height: clamp(240px, 26vw, 320px) !important;
overflow: hidden;
}
.origin-canvas-wash-hero {
background-image:
radial-gradient(70% 80% at 22% 20%, color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent), transparent 60%),
radial-gradient(60% 70% at 84% 86%, color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent), transparent 62%),
linear-gradient(150deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-3) 100%);
grid-column: span 5;
}
.origin-canvas-wash-features {
background-image:
radial-gradient(65% 75% at 80% 22%, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent), transparent 60%),
linear-gradient(160deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-3) 100%);
grid-column: span 4;
}
.origin-canvas-wash-testimonial {
background-image:
radial-gradient(72% 72% at 24% 26%, color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent), transparent 58%),
linear-gradient(180deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-4) 100%);
grid-column: span 3;
}
.origin-canvas-wash-pricing {
background-image:
radial-gradient(60% 70% at 26% 78%, color-mix(in srgb, var(--wp--preset--color--primary) 13%, transparent), transparent 56%),
linear-gradient(180deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-3) 100%);
grid-column: span 4;
}
.origin-canvas-wash-cta {
background-image:
radial-gradient(72% 80% at 80% 30%, color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent), transparent 60%),
radial-gradient(60% 70% at 20% 84%, color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent), transparent 58%),
linear-gradient(135deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-3) 100%);
grid-column: span 4;
}
.origin-canvas-wash-editor {
background-image:
radial-gradient(60% 70% at 50% 24%, color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent), transparent 60%),
linear-gradient(180deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base-3) 100%);
grid-column: span 4;
}
@media (max-width: 1100px) {
.origin-canvas-pattern-board {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.origin-canvas-wash-hero,
.origin-canvas-wash-editor {
grid-column: span 6;
}
.origin-canvas-wash-features,
.origin-canvas-wash-testimonial,
.origin-canvas-wash-pricing,
.origin-canvas-wash-cta {
grid-column: span 3;
}
}
@media (max-width: 640px) {
.origin-canvas-pattern-board {
gap: 14px;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-top: 40px;
}
.origin-canvas-wash-hero,
.origin-canvas-wash-editor {
grid-column: span 2;
}
.origin-canvas-wash-features,
.origin-canvas-wash-testimonial,
.origin-canvas-wash-pricing,
.origin-canvas-wash-cta {
grid-column: span 1;
}
.origin-canvas-wash-tile {
min-height: 170px !important;
}
}
/**
* Hidden Sidebar: the rail in parts/sidebar.html.
*
* Only what the blocks cannot set. core/search has no padding control, so the
* field and button take tighter padding to suit a 373px rail and sit on the 44px
* floor; the 404 search keeps the default size. Latest Posts has no date controls. The list resets, the
* featured image gap and the block title cover blocks an owner may add to the
* rail in the Site Editor: Categories, Archives, Latest Comments, and Latest
* Posts with images on.
*/
.origin-canvas-sidebar .wp-block-categories-list,
.origin-canvas-sidebar .wp-block-archives-list,
.origin-canvas-sidebar .wp-block-latest-comments {
list-style: none;
margin: 0;
padding: 0;
}
.origin-canvas-sidebar .wp-block-latest-posts__featured-image {
margin-bottom: var(--wp--preset--spacing--extra-small);
}
.origin-canvas-sidebar .wp-block-latest-posts__post-title {
display: block;
}
/* Shim, sunset 2.0.0. The category rows keep their count at its size with
origin-canvas-no-shrink since the release after 1.3.1. Rails saved from 1.3.1 carry
no such class on the count: this keeps it from shrinking. The pattern still carries
origin-canvas-sidebar-categories; flex: none adds nothing to no-shrink there. */
.origin-canvas-sidebar-categories .wp-block-term-count {
flex: none;
}
.origin-canvas-search-compact input.wp-block-search__input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
padding: 8px 12px;
}
.origin-canvas-search-compact .wp-block-search__button {
padding: 8px 20px;
}
.origin-canvas-sidebar .wp-block-latest-posts__post-date,
.origin-canvas-sidebar .wp-block-latest-comments__comment-date {
color: var(--wp--preset--color--contrast-2);
font-size: var(--wp--preset--font-size--extra-small);
font-weight: 400;
margin-top: var(--wp--preset--spacing--extra-small);
}
/* When the Sidebar part draws its own inline left border, the template's divider
and stacked rule hide, so the rail shows its own rules only. The part's border
is untouched. !important matches core's visibility rules. */
.wp-block-group:has(> aside > .origin-canvas-sidebar[style*="border-left-width:1px"]) > .origin-canvas-sidebar-divider,
.wp-block-group:has(> .wp-block-group > aside > .origin-canvas-sidebar[style*="border-left-width:1px"]) > .origin-canvas-sidebar-rule {
display: none !important;
}
/* The same bordered part, stacked on phones, takes its top rule and spacing. */
@media (max-width: 782px) {
.origin-canvas-sidebar[style*="border-left-width:1px"] {
border-top: 1px solid var(--wp--preset--color--base-5);
margin-top: var(--wp--preset--spacing--huge);
padding-top: var(--wp--preset--spacing--huge);
}
}
/* The sidebar templates stack at 782px as well. Core's Hide setting treats 782px
as tablet while core Columns stack only below it, so without this the phone
rule would show beside side-by-side columns at that one width. */
@media (width: 782px) {
.wp-block-columns:has(> .wp-block-column > .wp-block-group > .wp-block-group > .origin-canvas-sidebar-divider) {
flex-wrap: wrap !important;
}
.wp-block-columns:has(> .wp-block-column > .wp-block-group > .wp-block-group > .origin-canvas-sidebar-divider) > .wp-block-column {
flex-basis: 100% !important;
}
}
/* The section headings are small uppercase labels: ODS chrome label tracking, 0.06em,
and 600 weight. Low specificity, so a heading's own Typography settings still
win; rule 7 keeps these values off the blocks themselves. */
.origin-canvas-sidebar :where(h2) {
font-weight: 600;
letter-spacing: 0.06em;
}
/* A site with no tags: core's Tag Cloud renders nothing, so the Tags group holds
only its heading. Hide the group rather than show a heading with nothing under it. */
.origin-canvas-sidebar-tags:has(> h2:only-child) {
display: none;
}
/**
* Token System: pink bullet markers and the theme.json tokens panel on the
* landing page. Every fill is a palette token or an ink-tinted color-mix, so the
* panel tracks style variations.
*/
.origin-canvas-bullet-mark {
background: var(--wp--preset--color--primary);
border-radius: var(--wp--custom--radius--small);
flex-shrink: 0;
height: 6px;
width: 6px;
}
/* Radius clipping for the panel's square-cornered bar (no JSON overflow analogue). */
.origin-canvas-tokens-panel {
overflow: hidden;
}
.origin-canvas-token-palrow {
display: flex;
gap: 10px;
}
.origin-canvas-token-palrow > .wp-block-group {
flex: 1;
}
.origin-canvas-token-sw {
border-radius: var(--wp--custom--radius--small);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
height: 34px;
}
.origin-canvas-token-scale {
align-items: flex-end;
display: flex;
gap: 10px;
}
.origin-canvas-token-bar {
background: var(--wp--preset--color--base-3);
border-radius: var(--wp--custom--radius--small) var(--wp--custom--radius--small) 0 0;
width: 26px;
}
.origin-canvas-token-bar--1 {
height: 14px;
}
.origin-canvas-token-bar--2 {
height: 22px;
}
.origin-canvas-token-bar--3 {
height: 32px;
}
.origin-canvas-token-bar--4 {
height: 44px;
}
.origin-canvas-token-bar--5 {
height: 58px;
}
.origin-canvas-token-bar--6 {
height: 74px;
}
.origin-canvas-token-bar--7 {
height: 92px;
}
/**
* Template Showcase: schematic template cards on the landing page, drawn with
* empty groups. Ink-tinted color-mix fills track the active style variation.
*/
.origin-canvas-wire {
background: var(--wp--preset--color--base-3);
border-radius: var(--wp--custom--radius--medium);
display: flex;
flex-direction: column;
gap: 8px;
height: 168px;
padding: 13px;
}
.origin-canvas-wire-head {
background: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
border-radius: var(--wp--custom--radius--small);
flex: none;
height: 18px;
}
.origin-canvas-wire-body {
display: flex;
flex: 1;
gap: 8px;
min-height: 0;
}
.origin-canvas-wire-body--center {
justify-content: center;
}
.origin-canvas-wire-body--col {
flex-direction: column;
}
.origin-canvas-wire-body--grid {
display: grid;
gap: 8px;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
}