PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.3
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.3
2.0.14 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 / blocks / section / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.3, at blocks/section/style.css

211 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========================================
2 Section Block Styles
3 Prefix: bkbg-section
4 ======================================== */
5
6 /* CSS Custom Properties */
7 .bkbg-section {
8 --bkbg-section-max-width: 1200px;
9 --bkbg-section-padding-none: 0;
10 --bkbg-section-padding-xs: 8px;
11 --bkbg-section-padding-s: 16px;
12 --bkbg-section-padding-m: 32px;
13 --bkbg-section-padding-l: 48px;
14 --bkbg-section-padding-xl: 64px;
15 --bkbg-section-bg-light: #f8fafc;
16 --bkbg-section-bg-dark: #1e293b;
17 --bkbg-section-bg-accent: #3b82f6;
18 position: relative;
19 width: 100%;
20 box-sizing: border-box;
21 }
22
23 /* Content Width */
24 .bkbg-section--width-full .bkbg-section__inner {
25 width: 100%;
26 max-width: 100%;
27 padding-left: 20px;
28 padding-right: 20px;
29 }
30
31 .bkbg-section--width-boxed .bkbg-section__inner {
32 width: 100%;
33 max-width: var(--bkbg-section-max-width);
34 margin-left: auto;
35 margin-right: auto;
36 padding-left: 20px;
37 padding-right: 20px;
38 box-sizing: border-box;
39 }
40
41 /* Vertical Padding */
42 .bkbg-section--padding-none {
43 padding-top: var(--bkbg-section-padding-none);
44 padding-bottom: var(--bkbg-section-padding-none);
45 }
46
47 .bkbg-section--padding-xs {
48 padding-top: var(--bkbg-section-padding-xs);
49 padding-bottom: var(--bkbg-section-padding-xs);
50 }
51
52 .bkbg-section--padding-s {
53 padding-top: var(--bkbg-section-padding-s);
54 padding-bottom: var(--bkbg-section-padding-s);
55 }
56
57 .bkbg-section--padding-m {
58 padding-top: var(--bkbg-section-padding-m);
59 padding-bottom: var(--bkbg-section-padding-m);
60 }
61
62 .bkbg-section--padding-l {
63 padding-top: var(--bkbg-section-padding-l);
64 padding-bottom: var(--bkbg-section-padding-l);
65 }
66
67 .bkbg-section--padding-xl {
68 padding-top: var(--bkbg-section-padding-xl);
69 padding-bottom: var(--bkbg-section-padding-xl);
70 }
71
72 /* Background Presets */
73 .bkbg-section--bg-none {
74 background-color: transparent;
75 }
76
77 .bkbg-section--bg-light {
78 background-color: var(--bkbg-section-bg-light);
79 }
80
81 .bkbg-section--bg-dark {
82 background-color: var(--bkbg-section-bg-dark);
83 color: #ffffff;
84 }
85
86 .bkbg-section--bg-accent {
87 background-color: var(--bkbg-section-bg-accent);
88 color: #ffffff;
89 }
90
91 .bkbg-section--bg-custom {
92 background-color: var(--bkbg-section-custom-bg, transparent);
93 }
94
95 /* Inner wrapper */
96 .bkbg-section__inner {
97 display: flex;
98 flex-direction: column;
99 gap: 24px;
100 }
101
102 /* Editor-specific styles */
103 .editor-styles-wrapper .bkbg-section {
104 min-height: 60px;
105 border: 1px dashed transparent;
106 border-radius: 4px;
107 transition: border-color 0.15s ease, box-shadow 0.15s ease;
108 }
109
110 .editor-styles-wrapper .bkbg-section:hover {
111 border-color: rgba(59, 130, 246, 0.3);
112 }
113
114 .editor-styles-wrapper .bkbg-section.is-selected,
115 .editor-styles-wrapper .bkbg-section:focus-within {
116 border-color: rgba(59, 130, 246, 0.5);
117 }
118
119 /* Drag and drop state */
120 .editor-styles-wrapper .bkbg-section.is-dragging-over,
121 .editor-styles-wrapper [data-type="blockenberg/section"].is-dragging-over > .bkbg-section {
122 border-color: rgba(59, 130, 246, 0.6) !important;
123 background-color: rgba(59, 130, 246, 0.03) !important;
124 }
125
126 /* Ensure InnerBlocks placeholder shows correctly - direct children only */
127 .editor-styles-wrapper .bkbg-section > .bkbg-section__inner > .block-editor-inner-blocks {
128 width: 100%;
129 }
130
131 .editor-styles-wrapper .bkbg-section > .bkbg-section__inner > .block-editor-inner-blocks > .block-editor-block-list__layout {
132 width: 100%;
133 display: flex;
134 flex-direction: column;
135 gap: 24px;
136 }
137
138 /* Section label in editor */
139 .editor-styles-wrapper .bkbg-section::before {
140 content: 'Section';
141 position: absolute;
142 top: -20px;
143 left: 0;
144 font-size: 10px;
145 font-weight: 600;
146 color: #3b82f6;
147 text-transform: uppercase;
148 letter-spacing: 0.5px;
149 opacity: 0;
150 transition: opacity 0.15s ease;
151 pointer-events: none;
152 }
153
154 .editor-styles-wrapper .bkbg-section:hover::before,
155 .editor-styles-wrapper .bkbg-section.is-selected::before {
156 opacity: 1;
157 }
158
159 /* Full width alignment - break out of container - only for top-level sections */
160 .bkbg-section.alignfull:not(.bkbg-column .bkbg-section) {
161 width: 100vw;
162 max-width: 100vw;
163 margin-left: calc(-50vw + 50%);
164 margin-right: calc(-50vw + 50%);
165 }
166
167 .bkbg-section.alignwide:not(.bkbg-column .bkbg-section) {
168 width: calc(100% + 80px);
169 max-width: calc(100vw - 40px);
170 margin-left: -40px;
171 margin-right: -40px;
172 }
173
174 /* Nested sections inside columns should be full width of column */
175 .bkbg-column .bkbg-section,
176 .bkbg-column .bkbg-section.alignfull,
177 .bkbg-column .bkbg-section.alignwide {
178 width: 100% !important;
179 max-width: 100% !important;
180 margin-left: 0 !important;
181 margin-right: 0 !important;
182 }
183
184 /* Editor full width support */
185 .editor-styles-wrapper .bkbg-section.alignfull,
186 .editor-styles-wrapper [data-type="blockenberg/section"][data-align="full"] > .bkbg-section {
187 width: 100% !important;
188 max-width: none !important;
189 margin-left: 0 !important;
190 margin-right: 0 !important;
191 }
192
193 /* Responsive adjustments */
194 @media (max-width: 782px) {
195 .bkbg-section--width-boxed .bkbg-section__inner,
196 .bkbg-section--width-full .bkbg-section__inner {
197 padding-left: 16px;
198 padding-right: 16px;
199 }
200
201 .bkbg-section--padding-l {
202 padding-top: 32px;
203 padding-bottom: 32px;
204 }
205
206 .bkbg-section--padding-xl {
207 padding-top: 48px;
208 padding-bottom: 48px;
209 }
210 }
211