-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
625 lines (533 loc) · 17.1 KB
/
style.css
File metadata and controls
625 lines (533 loc) · 17.1 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
/*
Theme Name: Elayne
Theme URI: https://imagewize.com/themes/elayne
Author: Jasper Frumau
Author URI: https://imagewize.com
Description: A premium business block theme with advanced patterns for professional websites. Features industry-specific pattern sets for spa, real estate, and professional services with built-in conversion optimization.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
Version: 3.6.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: elayne
Tags: block-patterns, block-styles, blog, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, one-column, rtl-language-support, template-editing, threaded-comments, translation-ready, wide-blocks
Elayne WordPress Theme, (C) 2025 Jasper Frumau
Elayne is distributed under the terms of the GNU GPL.
*/
/**
* Table of Contents
*
* 1. Partial Underline (post titles)
* 2. Layout Helpers (alignfull bleed)
* 3. Checkmark List
* 4. Avatar
* 5. Spa & Wellness Style Variation
* 6. Cart Icon
* 7. Mobile Navigation
* 8. Portfolio Masonry Grid
* 9. WooCommerce Product Grid
* 10. Post Author & Date Alignment
* 11. Link Underline
* 12. Comment Form Spacing
* 13. Legal Hero Split Layout
* 14. Diagonal Hero Section
* 15. Diagonal Banner Section
* 16. Layout Utilities (overlay-grid-wrap, floating-badge, icon-pulse, stats-divider)
* 17. Skip Link Accessibility
* 18. Safari Scrollbar Fix
*/
/* Partial underline styling for post titles (matches Versifier) */
.has-partial-underline a {
display: inline-block;
border-bottom: 2px solid currentColor !important;
border-image: linear-gradient(to right, currentColor 33%, transparent 33%) 1;
padding-bottom: 0.25rem;
text-decoration: none !important;
}
.has-partial-underline-center.has-partial-underline-third a {
border-image: linear-gradient(to right, transparent 33.33%, currentColor 33.33%, currentColor 66.66%, transparent 66.66%) 1 !important;
}
.wp-block-post-title.has-partial-underline-center.has-partial-underline-third {
position: relative;
padding-bottom: 0.5rem;
}
.wp-block-post-title.has-partial-underline-center.has-partial-underline-third::after {
content: '';
position: absolute;
bottom: 0;
left: 33.33%;
right: 33.33%;
height: 2px;
background-color: currentColor;
}
.wp-block-post-title.has-partial-underline-center.has-partial-underline-third a {
border-bottom: none !important;
border-image: none !important;
text-decoration: none !important;
}
/* Opt-out helper: add body class "no-partial-underline" to disable underline styles */
body.no-partial-underline .has-partial-underline a,
body.no-partial-underline .wp-block-post-title.has-partial-underline-center.has-partial-underline-third a {
border-bottom: none !important;
border-image: none !important;
padding-bottom: 0;
}
body.no-partial-underline .wp-block-post-title.has-partial-underline-center.has-partial-underline-third {
padding-bottom: 0;
}
body.no-partial-underline .wp-block-post-title.has-partial-underline-center.has-partial-underline-third::after {
display: none;
}
/* Layout helpers: allow alignfull blocks inside post content to bleed edge-to-edge while root padding stays on */
.wp-site-blocks .wp-block-post-content .alignfull {
margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
width: calc(100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px));
max-width: 100vw;
}
/* Checkmark list style for pricing tables */
.is-style-checkmark-list {
list-style: none;
padding-left: 0;
}
.is-style-checkmark-list li {
display: flex;
align-items: flex-start;
gap: 0.75rem;
margin-bottom: 1rem;
padding-left: 0 !important;
}
.is-style-checkmark-list li::before {
content: '';
display: inline-block;
width: 24px;
height: 24px;
flex-shrink: 0;
background-image: url('patterns/images/check-circle.svg');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
margin-top: 0.125rem;
}
figure.is-avatar,
.wp-block-image.is-avatar {
width: var(--wp--custom--avatar-size) !important;
height: var(--wp--custom--avatar-size) !important;
max-width: var(--wp--custom--avatar-size) !important;
}
.is-avatar img {
width: var(--wp--custom--avatar-size) !important;
height: var(--wp--custom--avatar-size) !important;
max-width: var(--wp--custom--avatar-size) !important;
aspect-ratio: 1;
object-fit: cover;
}
/* ========================================================================
Spa & Wellness Style Variation (from Velora Spa theme)
======================================================================== */
/* Overlapping columns styling */
@media (min-width: 782px) {
.is-style-overlap-columns .wp-block-column:nth-child(2) {
margin-left: -10%;
z-index: 2;
position: relative;
align-self: center;
}
/* Styling for reversed overlapping columns */
.is-style-overlap-columns-reversed .wp-block-column:nth-child(1) {
margin-right: -10%;
margin-left: 0;
z-index: 2;
position: relative;
align-self: center;
}
}
/* Spa post grid styling */
.spa-post-grid .wp-block-post-featured-image {
width: 100%;
}
.spa-post-grid .wp-block-post-featured-image img {
width: 100%;
height: auto;
object-fit: cover;
}
/* Cart icon styling */
.cart-icon {
margin: 0 !important;
transition: transform 0.2s ease;
}
.cart-icon img {
display: block;
width: 24px;
height: 24px;
}
.cart-icon a:hover {
opacity: 0.8;
}
.cart-icon a:hover img {
filter: brightness(0) sepia(100%) saturate(500%) hue-rotate(175deg);
transform: scale(1.1);
}
/* Mobile navigation adjustments */
@media (max-width: 781px) {
.wp-block-site-title {
padding-left: 2.8rem;
}
.mobile-centered-nav .wp-block-navigation__responsive-container-open {
margin: 0 auto;
}
.mobile-centered-nav {
width: 100%;
justify-content: center;
}
.mobile-centered-nav .wp-block-navigation__responsive-container-open {
position: relative;
left: 0;
transform: translateX(0);
}
}
/* Masonry grid layout using CSS columns */
.portfolio-masonry-grid {
column-count: 3;
column-gap: 16px;
}
.portfolio-masonry-grid .portfolio-item {
break-inside: avoid;
margin-bottom: 16px;
display: inline-block;
width: 100%;
}
/* Responsive masonry columns */
@media (max-width: 1024px) {
.portfolio-masonry-grid {
column-count: 2;
}
}
@media (max-width: 640px) {
.portfolio-masonry-grid {
column-count: 1;
}
}
/* WooCommerce Product Collection responsive grid (3-2-1 columns) */
.wc-block-product-template.is-flex-container {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 2rem !important;
}
.wc-block-product-template.is-flex-container > li {
width: auto !important;
}
@media (max-width: 1024px) {
.wc-block-product-template.is-flex-container {
grid-template-columns: repeat(2, 1fr) !important;
gap: 1.5rem !important;
}
}
@media (max-width: 640px) {
.wc-block-product-template.is-flex-container {
grid-template-columns: 1fr !important;
gap: 1rem !important;
}
}
/* ========================================================================
Post Author & Post Date Alignment Fix
======================================================================== */
/* Ensure post author and post date are vertically aligned when in a flex container */
.wp-block-post-author {
display: flex;
align-items: center;
}
/* Align author content (name) with the center of the avatar */
.wp-block-post-author__content {
display: flex;
align-items: center;
}
/* Ensure post date aligns with author name */
.wp-block-post-date {
display: flex;
align-items: center;
}
/* ========================================================================
Link Underline Styling
======================================================================== */
/* Firefox-specific fix for thick underlines */
@-moz-document url-prefix() {
a {
text-decoration-thickness: .1rem !important;
}
}
/* WordPress.org requirement: links in body content must be underlined.
Covers block content, comments, and text widgets.
Navigation-like contexts (menus, buttons, post titles) remain exempt. */
.wp-block-post-content a:not(.wp-element-button),
.comment-content a:not(.wp-element-button),
.widget a:not(.wp-element-button) {
text-decoration: underline;
}
/* ========================================================================
Comment Form Spacing
======================================================================== */
.wp-block-post-comments-form #submit {
margin-top: 1rem;
}
/* ========================================================================
Legal Hero Split Layout - Mobile Ordering
======================================================================== */
/* On mobile, show image first, then content, then reviews */
@media (max-width: 782px) {
.legal-hero-split-grid {
display: flex !important;
flex-direction: column;
}
.legal-hero-split-content {
order: 2;
}
.legal-hero-split-image {
order: 1;
}
.legal-hero-split-reviews {
order: 3;
}
}
/* On desktop, stack image and reviews in the right column */
@media (min-width: 783px) {
.legal-hero-split-grid {
grid-template-columns: 1fr 1fr !important; /* Force 2 columns */
grid-auto-flow: dense; /* Allow items to fill available space */
}
.legal-hero-split-content {
grid-column: 1; /* First column */
grid-row: 1 / 3; /* Span both rows */
}
.legal-hero-split-image {
grid-column: 2; /* Second column */
grid-row: 1; /* First row */
}
.legal-hero-split-reviews {
grid-column: 2; /* Second column */
grid-row: 2; /* Second row */
}
}
/* ========================================================================
Diagonal Hero Section - Editable Overlay Effect
======================================================================== */
/* Diagonal overlay hero section with WordPress Cover block overlay */
.diagonal-hero-section {
position: relative;
overflow: hidden;
}
/* Create the diagonal clip-path on BOTH Cover block overlay elements (solid colors AND gradients) */
.diagonal-hero-section .wp-block-cover__background,
.diagonal-hero-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 65% 0, 55% 100%, 0 100%);
}
/* Ensure content stays above overlay */
.diagonal-hero-section .wp-block-cover__inner-container {
position: relative;
z-index: 2;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.diagonal-hero-section .wp-block-cover__background,
.diagonal-hero-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 70% 0, 60% 100%, 0 100%);
}
}
@media (max-width: 768px) {
.diagonal-hero-section {
min-height: 500px !important;
}
/* Full overlay on mobile for better readability */
.diagonal-hero-section .wp-block-cover__background,
.diagonal-hero-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}
@media (max-width: 480px) {
.diagonal-hero-section {
min-height: 450px !important;
}
}
/* ========================================================================
Diagonal Banner Section - Editable Overlay Effect
======================================================================== */
/* Diagonal overlay banner section with WordPress Cover block overlay */
.diagonal-banner-section {
position: relative;
overflow: hidden;
}
/* Create the diagonal clip-path on BOTH Cover block overlay elements (solid colors AND gradients) */
.diagonal-banner-section .wp-block-cover__background,
.diagonal-banner-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 65% 0, 55% 100%, 0 100%);
}
/* Ensure content stays above overlay */
.diagonal-banner-section .wp-block-cover__inner-container {
position: relative;
z-index: 2;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.diagonal-banner-section .wp-block-cover__background,
.diagonal-banner-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 70% 0, 60% 100%, 0 100%);
}
}
@media (max-width: 768px) {
/* Full overlay on mobile for better readability */
.diagonal-banner-section .wp-block-cover__background,
.diagonal-banner-section .wp-block-cover__gradient-background {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}
/* ========================================================================
Layout Utilities
Reusable structural classes, not tied to any style variation.
======================================================================== */
/* Thin vertical divider between stat items */
.stats-divider {
display: block;
width: 1px;
height: 36px;
background: rgba( 255, 255, 255, 0.1 );
align-self: center;
}
/* CSS Grid overlay — stack all children in the same cell (hero/image compositions) */
.overlay-grid-wrap {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
overflow: visible;
}
.overlay-grid-wrap > .wp-block-group {
grid-column: 1;
grid-row: 1;
}
/* Floating stat/social-proof badge overlaid on an image */
.floating-badge {
display: flex;
align-items: center;
gap: 0.5rem;
background: #112240;
border: 1px solid rgba( 255, 255, 255, 0.08 );
border-left: 3px solid #E67E22;
padding: 0.55rem 0.9rem;
border-radius: 10px;
z-index: 2;
white-space: nowrap;
width: fit-content;
}
/* Bottom-left badge position */
.floating-badge--bl {
align-self: end;
justify-self: start;
margin-bottom: 1.5rem;
margin-left: -0.75rem;
}
/* Top-right badge position */
.floating-badge--tr {
align-self: start;
justify-self: end;
margin-top: 1.5rem;
margin-right: -0.75rem;
}
/* Icon sizing inside floating badges */
.floating-badge .wp-block-image {
margin: 0;
display: flex;
align-items: center;
flex-shrink: 0;
}
.floating-badge .wp-block-image img {
width: 16px;
height: 16px;
display: block;
}
/* Pulsing icon — use on any "live" or "urgent" indicator */
@keyframes icon-pulse {
0%,
100% {
transform: scale( 1 );
}
50% {
transform: scale( 1.1 );
}
}
.icon-pulse {
animation: icon-pulse 2s ease-in-out infinite;
display: inline-block;
}
/* ============================================
Skip Link Accessibility Improvements
============================================ */
/* Skip link - hidden by default, visible on focus */
.skip-link.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px); /* Legacy browsers */
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
/* Skip link focus state - highly visible */
.skip-link.screen-reader-text:focus,
#wp-skip-link:focus {
position: absolute;
top: 10px;
left: 10px;
z-index: 100000;
display: inline-block;
width: auto;
height: auto;
clip: auto;
clip-path: none;
padding: 15px 20px;
background-color: var(--wp--preset--color--primary, #0073aa);
color: #fff;
font-size: 16px;
font-weight: 600;
line-height: 1.5;
text-decoration: none;
border-radius: 3px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
outline: 3px solid var(--wp--preset--color--primary-alt, #005a87);
outline-offset: 2px;
}
/* Ensure skip link target is visible */
#wp--skip-link--target {
scroll-margin-top: 20px;
}
/* Remove global blockGap spacing for template parts (header/footer)
* theme.json sets blockGap: "1.2rem" which adds margin-block-start: 1.2rem to all direct children of .wp-site-blocks
* This creates unwanted gaps between full-width patterns and footer/header template parts
* Introduced in v2.0.0 pattern refactor (commit b08fd39c) for vertical rhythm between content sections
* This override allows full-width patterns with background colors to be flush with template parts
*/
.wp-site-blocks > .wp-block-template-part {
margin-block-start: 0;
}
/* ========================================================================
Safari Scrollbar Visibility Fix (Gutenberg Editor)
======================================================================== */
/* Safari renders overlay scrollbars with near-invisible light gray thumb on
white/light backgrounds. This makes the thumb visible in the block editor
canvas (style.css is enqueued via add_editor_style for the editor iframe). */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.35);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.55);
}