PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.2
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.2
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 / editor.css

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

339 lines 9.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Blockenberg Editor Styles
3 * Common styles for all blocks in editor
4 */
5
6 /* ========================================
7 Block Inserter: BKB Badge on Icons
8 ======================================== */
9
10 /* Target Blockenberg blocks in block inserter */
11 .block-editor-block-types-list__item[class*="blockenberg-"] .block-editor-block-types-list__item-icon,
12 .block-editor-inserter__panel-content [class*="blockenberg-"] .block-editor-block-types-list__item-icon {
13 position: relative;
14 }
15
16 .block-editor-block-types-list__item[class*="blockenberg-"] .block-editor-block-types-list__item-icon::after,
17 .block-editor-inserter__panel-content [class*="blockenberg-"] .block-editor-block-types-list__item-icon::after {
18 content: 'BKB';
19 position: absolute;
20 bottom: -2px;
21 right: -2px;
22 background: var(--wp-admin-theme-color, #007cba);
23 color: #fff;
24 font-size: 7px;
25 font-weight: 700;
26 padding: 1px 3px;
27 border-radius: 3px;
28 line-height: 1;
29 letter-spacing: 0.3px;
30 }
31
32 /* ========================================
33 Editor: Block Wrapper & Hover States
34 ======================================== */
35 .editor-styles-wrapper .bkbg-editor-wrap,
36 .block-editor-block-list__block.bkbg-editor-wrap {
37 position: relative;
38 border: 1px dashed transparent !important;
39 border-radius: 4px;
40 transition: border-color 0.15s ease;
41 }
42
43 .editor-styles-wrapper .bkbg-editor-wrap:hover,
44 .block-editor-block-list__block.bkbg-editor-wrap:hover {
45 border-color: rgba(0, 124, 186, 0.5) !important;
46 }
47
48 .editor-styles-wrapper .bkbg-editor-wrap.is-selected,
49 .editor-styles-wrapper .bkbg-editor-wrap.bkbg-block-selected,
50 .block-editor-block-list__block.bkbg-editor-wrap.is-selected {
51 border-color: #007cba !important;
52 border-style: solid !important;
53 }
54
55 /* Block label in editor */
56 .bkbg-editor-wrap::before {
57 content: attr(data-block-label);
58 position: absolute;
59 top: -10px;
60 left: 10px;
61 background: #007cba;
62 color: #fff;
63 font-size: 10px;
64 font-weight: 600;
65 padding: 2px 8px;
66 border-radius: 3px;
67 opacity: 0;
68 transition: opacity 0.15s ease;
69 pointer-events: none;
70 z-index: 10;
71 text-transform: uppercase;
72 letter-spacing: 0.5px;
73 }
74
75 .bkbg-editor-wrap:hover::before,
76 .bkbg-editor-wrap.is-selected::before {
77 opacity: 1;
78 }
79
80 /* ========================================
81 Layout Blocks: Section / Row / Column
82 ======================================== */
83
84 /* Layout block hierarchy visualization */
85 .editor-styles-wrapper [data-type="blockenberg/section"],
86 .editor-styles-wrapper [data-type="blockenberg/row"],
87 .editor-styles-wrapper [data-type="blockenberg/column"] {
88 position: relative;
89 }
90
91 /* Section block editor styles */
92 .editor-styles-wrapper [data-type="blockenberg/section"] {
93 margin-top: 24px;
94 margin-bottom: 24px;
95 }
96
97 .editor-styles-wrapper [data-type="blockenberg/section"]:first-child {
98 margin-top: 0;
99 }
100
101 /* Row block editor styles */
102 .editor-styles-wrapper [data-type="blockenberg/row"] {
103 margin-top: 16px;
104 margin-bottom: 16px;
105 }
106
107 .editor-styles-wrapper [data-type="blockenberg/row"]:first-child {
108 margin-top: 0;
109 }
110
111 /* Ensure row inner blocks display as flex - direct children only */
112 .editor-styles-wrapper [data-type="blockenberg/row"] > .bkbg-row > .bkbg-row__inner > .block-editor-inner-blocks > .block-editor-block-list__layout {
113 display: flex !important;
114 flex-wrap: nowrap !important;
115 align-items: stretch !important;
116 width: 100% !important;
117 overflow: hidden !important;
118 }
119
120 /* Column blocks in editor - force width constraints */
121 .editor-styles-wrapper [data-type="blockenberg/row"] > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="blockenberg/column"] {
122 flex-shrink: 0 !important;
123 flex-grow: 0 !important;
124 min-width: 0 !important;
125 max-width: none;
126 }
127
128 /* Remove default Gutenberg margins on columns */
129 .editor-styles-wrapper [data-type="blockenberg/column"] {
130 margin-left: 0 !important;
131 margin-right: 0 !important;
132 }
133
134 /* ========================================
135 Layout Block: Visual Hierarchy Indicators
136 ======================================== */
137
138 /* Section outline */
139 .editor-styles-wrapper [data-type="blockenberg/section"] > .bkbg-section {
140 position: relative;
141 }
142
143 .editor-styles-wrapper [data-type="blockenberg/section"] > .bkbg-section::after {
144 content: '';
145 position: absolute;
146 top: -2px;
147 left: -2px;
148 right: -2px;
149 bottom: -2px;
150 border: 2px dashed transparent;
151 border-radius: 6px;
152 pointer-events: none;
153 transition: border-color 0.15s ease;
154 }
155
156 .editor-styles-wrapper [data-type="blockenberg/section"].is-selected > .bkbg-section::after,
157 .editor-styles-wrapper [data-type="blockenberg/section"]:focus-within > .bkbg-section::after {
158 border-color: rgba(59, 130, 246, 0.3);
159 }
160
161 /* Row outline */
162 .editor-styles-wrapper [data-type="blockenberg/row"] > .bkbg-row::after {
163 content: '';
164 position: absolute;
165 top: -1px;
166 left: -1px;
167 right: -1px;
168 bottom: -1px;
169 border: 1px dashed transparent;
170 border-radius: 4px;
171 pointer-events: none;
172 transition: border-color 0.15s ease;
173 }
174
175 .editor-styles-wrapper [data-type="blockenberg/row"].is-selected > .bkbg-row::after,
176 .editor-styles-wrapper [data-type="blockenberg/row"]:focus-within > .bkbg-row::after {
177 border-color: rgba(59, 130, 246, 0.4);
178 }
179
180 /* ========================================
181 Layout Block: Drag Resize Handles
182 ======================================== */
183
184 /* Ensure handles overlay is above content */
185 .editor-styles-wrapper .bkbg-row__handles-overlay {
186 z-index: 100;
187 }
188
189 /* Handle hover effect enhancement */
190 .editor-styles-wrapper .bkbg-row__resize-handle:hover .bkbg-row__resize-handle-line {
191 box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
192 }
193
194 /* Handle active/dragging state */
195 .editor-styles-wrapper .bkbg-row__resize-handle.is-resizing .bkbg-row__resize-handle-line {
196 box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
197 }
198
199 /* Cursor override during resize */
200 .editor-styles-wrapper .bkbg-row--is-resizing,
201 .editor-styles-wrapper .bkbg-row--is-resizing * {
202 cursor: col-resize !important;
203 }
204
205 /* ========================================
206 Layout Block: Responsive Mode Preview
207 ======================================== */
208
209 /* Tablet mode preview styling */
210 .editor-styles-wrapper .bkbg-row--mode-tablet {
211 background-image: repeating-linear-gradient(
212 90deg,
213 transparent,
214 transparent 10px,
215 rgba(59, 130, 246, 0.02) 10px,
216 rgba(59, 130, 246, 0.02) 20px
217 );
218 }
219
220 /* Mobile mode preview styling */
221 .editor-styles-wrapper .bkbg-row--mode-mobile {
222 background-image: repeating-linear-gradient(
223 90deg,
224 transparent,
225 transparent 8px,
226 rgba(234, 88, 12, 0.02) 8px,
227 rgba(234, 88, 12, 0.02) 16px
228 );
229 }
230
231 /* Mode badge color variants */
232 .editor-styles-wrapper .bkbg-row--mode-tablet .bkbg-row__mode-badge {
233 background: #8b5cf6;
234 }
235
236 .editor-styles-wrapper .bkbg-row--mode-mobile .bkbg-row__mode-badge {
237 background: #ea580c;
238 }
239
240 /* ========================================
241 Layout Block: Empty State
242 ======================================== */
243
244 /* Empty column placeholder */
245 .editor-styles-wrapper .bkbg-column:empty::before,
246 .editor-styles-wrapper .bkbg-column .bkbg-column__inner:empty::before {
247 content: 'Add content';
248 display: flex;
249 align-items: center;
250 justify-content: center;
251 min-height: 60px;
252 color: #94a3b8;
253 font-size: 12px;
254 font-style: italic;
255 }
256
257 /* Empty row placeholder */
258 .editor-styles-wrapper .bkbg-row .bkbg-row__inner:empty::before {
259 content: 'Add columns';
260 display: flex;
261 align-items: center;
262 justify-content: center;
263 min-height: 50px;
264 color: #94a3b8;
265 font-size: 12px;
266 font-style: italic;
267 }
268
269 /* ========================================
270 Layout Block: Toolbar & Controls
271 ======================================== */
272
273 /* Preset buttons in inspector */
274 .bkbg-row-presets {
275 display: flex;
276 flex-direction: column;
277 gap: 6px;
278 }
279
280 .bkbg-row-presets .components-button {
281 justify-content: flex-start;
282 width: 100%;
283 padding: 8px 12px;
284 }
285
286 .bkbg-row-presets .components-button:hover {
287 background: #f1f5f9;
288 }
289
290 /* Column width controls */
291 .bkbg-column-widths-controls .components-range-control__wrapper {
292 margin-bottom: 12px;
293 }
294
295 /* ========================================
296 Layout Block: Selection States
297 ======================================== */
298
299 /* When section is selected */
300 .editor-styles-wrapper [data-type="blockenberg/section"].is-selected {
301 z-index: 1;
302 }
303
304 /* When row is selected inside section */
305 .editor-styles-wrapper [data-type="blockenberg/section"] [data-type="blockenberg/row"].is-selected {
306 z-index: 2;
307 }
308
309 /* When column is selected inside row */
310 .editor-styles-wrapper [data-type="blockenberg/row"] [data-type="blockenberg/column"].is-selected {
311 z-index: 3;
312 }
313
314 /* ========================================
315 Layout Block: Appender Buttons
316 ======================================== */
317
318 /* Row appender */
319 .editor-styles-wrapper .bkbg-row .block-list-appender {
320 display: flex;
321 align-items: center;
322 justify-content: center;
323 min-width: 48px;
324 margin: 0 8px;
325 }
326
327 /* Column appender */
328 .editor-styles-wrapper .bkbg-column .block-list-appender {
329 min-height: 48px;
330 display: flex;
331 align-items: center;
332 justify-content: center;
333 }
334
335 /* Section appender */
336 .editor-styles-wrapper .bkbg-section .block-list-appender {
337 margin-top: 16px;
338 }
339