PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / assets / css / layout.css

layout.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at assets/css/layout.css

209 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========================================
2 Blockenberg Layout System
3 Shared CSS Variables and Utilities
4 ======================================== */
5
6 :root {
7 /* ========================================
8 Spacing Scale (Token System)
9 ======================================== */
10 --bkbg-space-none: 0;
11 --bkbg-space-xs: 8px;
12 --bkbg-space-s: 16px;
13 --bkbg-space-m: 24px;
14 --bkbg-space-l: 32px;
15 --bkbg-space-xl: 48px;
16 --bkbg-space-2xl: 64px;
17
18 /* ========================================
19 Breakpoints
20 ======================================== */
21 --bkbg-breakpoint-mobile: 767px;
22 --bkbg-breakpoint-tablet: 1024px;
23 --bkbg-breakpoint-desktop: 1025px;
24
25 /* ========================================
26 Layout Max Widths
27 ======================================== */
28 --bkbg-max-width-narrow: 720px;
29 --bkbg-max-width-default: 1024px;
30 --bkbg-max-width-wide: 1200px;
31 --bkbg-max-width-full: 1440px;
32
33 /* ========================================
34 Colors - Backgrounds
35 ======================================== */
36 --bkbg-bg-transparent: transparent;
37 --bkbg-bg-light: #f8fafc;
38 --bkbg-bg-dark: #1e293b;
39 --bkbg-bg-accent: #3b82f6;
40 --bkbg-bg-muted: #f1f5f9;
41
42 /* ========================================
43 Colors - Text
44 ======================================== */
45 --bkbg-text-primary: #0f172a;
46 --bkbg-text-secondary: #475569;
47 --bkbg-text-muted: #64748b;
48 --bkbg-text-light: #ffffff;
49
50 /* ========================================
51 Colors - UI
52 ======================================== */
53 --bkbg-ui-primary: #3b82f6;
54 --bkbg-ui-primary-hover: #2563eb;
55 --bkbg-ui-border: #e2e8f0;
56 --bkbg-ui-border-hover: #cbd5e1;
57
58 /* ========================================
59 Animation
60 ======================================== */
61 --bkbg-transition-fast: 0.15s ease;
62 --bkbg-transition-normal: 0.25s ease;
63 --bkbg-transition-slow: 0.35s ease;
64
65 /* ========================================
66 Shadows
67 ======================================== */
68 --bkbg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
69 --bkbg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
70 --bkbg-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
71
72 /* ========================================
73 Border Radius
74 ======================================== */
75 --bkbg-radius-sm: 2px;
76 --bkbg-radius-md: 4px;
77 --bkbg-radius-lg: 8px;
78 --bkbg-radius-xl: 12px;
79 }
80
81 /* ========================================
82 Layout Container Reset
83 ======================================== */
84
85 .bkbg-section,
86 .bkbg-row,
87 .bkbg-column {
88 box-sizing: border-box;
89 }
90
91 .bkbg-section *,
92 .bkbg-row *,
93 .bkbg-column * {
94 box-sizing: border-box;
95 }
96
97 /* ========================================
98 Gap Calculation Helper for Flex Layout
99 When using gap with percentage widths,
100 we need to account for the gap in width calc
101 ======================================== */
102
103 /* Gap values for calculation */
104 .bkbg-row--gap-none {
105 --bkbg-current-gap: 0px;
106 }
107
108 .bkbg-row--gap-xs {
109 --bkbg-current-gap: var(--bkbg-space-xs);
110 }
111
112 .bkbg-row--gap-s {
113 --bkbg-current-gap: var(--bkbg-space-s);
114 }
115
116 .bkbg-row--gap-m {
117 --bkbg-current-gap: var(--bkbg-space-m);
118 }
119
120 .bkbg-row--gap-l {
121 --bkbg-current-gap: var(--bkbg-space-l);
122 }
123
124 .bkbg-row--gap-xl {
125 --bkbg-current-gap: var(--bkbg-space-xl);
126 }
127
128 /* ========================================
129 Accessibility
130 ======================================== */
131
132 /* Reduced motion support */
133 @media (prefers-reduced-motion: reduce) {
134 .bkbg-section,
135 .bkbg-row,
136 .bkbg-column,
137 .bkbg-section *,
138 .bkbg-row *,
139 .bkbg-column * {
140 transition: none !important;
141 animation: none !important;
142 }
143 }
144
145 /* Focus visible styles */
146 .bkbg-section:focus-visible,
147 .bkbg-row:focus-visible,
148 .bkbg-column:focus-visible {
149 outline: 2px solid var(--bkbg-ui-primary);
150 outline-offset: 2px;
151 }
152
153 /* ========================================
154 Print Styles
155 ======================================== */
156
157 @media print {
158 .bkbg-section {
159 break-inside: avoid;
160 page-break-inside: avoid;
161 }
162
163 .bkbg-row {
164 break-inside: avoid;
165 page-break-inside: avoid;
166 }
167
168 .bkbg-column {
169 break-inside: avoid;
170 }
171
172 /* Force single column on print */
173 .bkbg-row__inner {
174 flex-direction: column !important;
175 }
176
177 .bkbg-column {
178 flex-basis: 100% !important;
179 max-width: 100% !important;
180 width: 100% !important;
181 }
182 }
183
184 /* ========================================
185 Dark Mode Support (Optional)
186 ======================================== */
187
188 @media (prefers-color-scheme: dark) {
189 .bkbg-section--bg-light {
190 --bkbg-section-bg-light: #1e293b;
191 }
192
193 .bkbg-section--bg-dark {
194 --bkbg-section-bg-dark: #0f172a;
195 }
196 }
197
198 /* ========================================
199 High Contrast Mode Support
200 ======================================== */
201
202 @media (forced-colors: active) {
203 .bkbg-section,
204 .bkbg-row,
205 .bkbg-column {
206 border: 1px solid CanvasText;
207 }
208 }
209