Repository navigation
Expand file tree
/
Copy pathapp.css
More file actions
186 lines (170 loc) · 8.13 KB
/
Copy pathapp.css
File metadata and controls
186 lines (170 loc) · 8.13 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
/**
* Tailwind without Preflight (no default base reset). The same stylesheet is
* enqueued on the front end and in the block editor (enqueue_block_assets /
* add_editor_style); skipping Preflight avoids overriding WordPress core UI.
*
* @see https://tailwindcss.com/docs/preflight#disabling-preflight
*/
@layer theme, base, components, utilities;
/**
* Scan PHP / HTML templates for utility classes (dynamic blocks, template parts).
*/
@source "../../blocks/**/*.php";
@source "../../inc/**/*.php";
@source "../../parts/**/*.html";
@source "../../templates/**/*.html";
@source "../../functions.php";
@source "../../blocks/**/*.tsx";
@import "tailwindcss/theme.css" layer(theme);
/**
* Tailwind theme aliases → theme.json presets (WordPress emits --wp--preset--color--*,
* --wp--preset--font-family--*, --wp--preset--font-size--*, --wp--preset--spacing--*).
* Fallbacks keep local / editor builds usable when globals are absent.
*/
@theme {
--color-base: var(--wp--preset--color--base, #fafafa);
--color-contrast: var(--wp--preset--color--contrast, #0f172a);
--color-primary: var(--wp--preset--color--primary, #4f46e5);
--color-secondary: var(--wp--preset--color--paragraph, #64748b);
--color-surface: var(--wp--preset--color--surface, #f1f5f9);
--font-sans: var(--wp--preset--font-family--sans,
Arial,
Helvetica,
sans-serif);
--font-mono: var(--wp--preset--font-family--mono,
ui-monospace,
SFMono-Regular,
Menlo,
monospace);
/**
* Font switcher role variables — defaults track theme.json presets; the
* color-scheme switcher overrides these inline on <html> for font presets.
*/
--nextora-font-body: var(--wp--preset--font-family--sans, Arial, Helvetica, sans-serif);
--nextora-font-heading: var(--nextora-font-body);
--nextora-font-button: var(--nextora-font-body);
/**
* Layout rhythm — built from theme.json spacing presets (05–50).
*/
--nextora-gutter: clamp(var(--wp--preset--spacing--10, 1rem),
4.5vw,
var(--wp--preset--spacing--30, 3rem));
--nextora-main-pad-y: clamp(var(--wp--preset--spacing--20, 2rem),
5vw,
var(--wp--preset--spacing--40, 4rem));
/**
* Hero (nextora/hero-section) — optional override for the grid; default uses --nextora-gutter.
*/
--nextora-hero-gap: clamp(var(--wp--preset--spacing--20, 1.25rem),
4vw,
var(--wp--preset--spacing--30, 2.75rem));
/**
* Navigation — no primary brand on links; colors derived from base / contrast / secondary
* so palette edits in theme.json flow through (header treats base as “on dark” ink).
*/
--nextora-nav-header-link: var(--wp--preset--color--contrast, #333);
--nextora-nav-header-link-hover-underline: color-mix(in srgb,
var(--wp--preset--color--base, #fafafa) 72%,
var(--wp--preset--color--paragraph, #64748b));
--nextora-nav-header-link-active-underline: var(--wp--preset--color--base, #fafafa);
--nextora-nav-footer-link: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 45%,
var(--wp--preset--color--base, #fafafa));
--nextora-nav-footer-link-hover: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-footer-link-hover-underline: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 45%,
var(--wp--preset--color--base, #fafafa));
--nextora-nav-footer-link-active-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-footer-link-active-underline: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-panel-bg: var(--wp--preset--color--base, #fafafa);
--nextora-nav-panel-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-panel-border: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 10%,
transparent);
--nextora-nav-panel-shadow: 0 8px 24px -6px color-mix(in srgb, var(--wp--preset--color--contrast, #0f172a) 18%, transparent);
--nextora-nav-panel-hover-bg: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 4%,
var(--wp--preset--color--base, #fafafa));
--nextora-nav-panel-hover-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-panel-active-bg: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 8%,
var(--wp--preset--color--base, #fafafa));
--nextora-nav-panel-active-fg: var(--wp--preset--color--primary, #0f172a);
--nextora-nav-focus-ring: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-focus-ring-on-dark: var(--wp--preset--color--base, #fafafa);
/**
* Mobile primary nav drawer + header mini cart — light sheet: base surface, contrast text.
* Borders/shadow/interaction match `--nextora-nav-panel-*` / footer link presets.
*/
--nextora-nav-portal-backdrop: var(--nextora-modal-scrim, rgba(0, 0, 0, 0.5));
--nextora-nav-mobile-drawer-bg: var(--wp--preset--color--base, #fafafa);
--nextora-nav-mobile-drawer-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-nav-mobile-drawer-shadow: var(--nextora-nav-panel-shadow);
--nextora-nav-mobile-drawer-border: var(--nextora-nav-panel-border);
/**
* Off-canvas motion — mobile nav portal (CSS fallback + GSAP in `header-nav.ts`) and
* `nextora-modal--drawer-end` (mini cart). Durations must match `OFFCANVAS_DUR_S` in `header-nav.ts`.
*/
--nextora-offcanvas-dur: 0.4s;
--nextora-offcanvas-ease: cubic-bezier(0.22, 1, 0.36, 1);
/**
* Pagination — same interaction model as footer nav; values track theme.json like `--nextora-nav-footer-*`.
*/
--nextora-pagination-fg: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 45%,
var(--wp--preset--color--base, #fafafa));
--nextora-pagination-hover-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-pagination-hover-underline: color-mix(in srgb,
var(--wp--preset--color--contrast, #0f172a) 45%,
var(--wp--preset--color--base, #fafafa));
--nextora-pagination-current-fg: var(--wp--preset--color--contrast, #0f172a);
--nextora-pagination-current-underline: var(--wp--preset--color--contrast, #0f172a);
--nextora-pagination-dots: color-mix(in srgb,
var(--wp--preset--color--paragraph, #64748b) 52%,
var(--wp--preset--color--base, #fafafa));
--nextora-pagination-focus-ring: var(--wp--preset--color--contrast, #0f172a);
--nextora-pagination-t: 0.18s ease;
/**
* Comment list — spacing from presets; reply surface from surface color.
*/
--nextora-comments-between-threads: clamp(var(--wp--preset--spacing--20, 2rem),
4.5vw,
var(--wp--preset--spacing--30, 3rem));
--nextora-comments-nested-indent: clamp(var(--wp--preset--spacing--10, 1rem),
3vw,
var(--wp--preset--spacing--20, 2rem));
--nextora-comments-between-replies: calc((var(--wp--preset--spacing--05, 0.5rem) + var(--wp--preset--spacing--10, 1rem)) / 2);
--nextora-comments-reply-surface: color-mix(in srgb,
var(--wp--preset--color--surface, #f1f5f9) 70%,
transparent);
--nextora-comments-reply-radius: var(--wp--preset--spacing--05, 0.5rem);
--nextora-comments-reply-padding: calc(var(--wp--preset--spacing--10, 1rem) - 0.15rem) var(--wp--preset--spacing--10, 1rem);
}
@import "tailwindcss/utilities.css" layer(utilities);
/**
* Feature CSS lives under `resources/css/modules/` (base → components → prose → overrides).
* Order here matches cascade intent: layered base/components first; unlayered prose and
* layout tweaks last so they can override global styles where needed.
*/
@import "./modules/base/body.css";
@import "./modules/base/nav-menus.css";
@import "./modules/base/layout-shell.css";
@import "./modules/base/search-form.css";
@import "./modules/base/articles-shell.css";
@import "./modules/base/comments.css";
@import "./modules/base/pagination.css";
@import "./modules/base/entry-column.css";
@import "./modules/components/buttons.css";
@import "./modules/components/form-fields.css";
@import "./modules/components/custom-form.css";
@import "./modules/components/modal.css";
@import "./modules/components/spotlight-search.css";
@import "./modules/components/scroll-animations.css";
@import "./modules/components/hero-section.css";
@import "./modules/components/heading-inline-font.css";
@import "./modules/components/scheme-switcher.css";
@import "./modules/components/swiper-pagination.css";
@import "./modules/prose/entry-content.css";
@import "./modules/base/woocommerce.css";
@import "./modules/base/events.css";
@import "./modules/overrides/layout-tweaks.css";