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.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.2, at blocks/section/style.css

208 lines 5.3 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 }
134
135 /* Section label in editor */
136 .editor-styles-wrapper .bkbg-section::before {
137 content: 'Section';
138 position: absolute;
139 top: -20px;
140 left: 0;
141 font-size: 10px;
142 font-weight: 600;
143 color: #3b82f6;
144 text-transform: uppercase;
145 letter-spacing: 0.5px;
146 opacity: 0;
147 transition: opacity 0.15s ease;
148 pointer-events: none;
149 }
150
151 .editor-styles-wrapper .bkbg-section:hover::before,
152 .editor-styles-wrapper .bkbg-section.is-selected::before {
153 opacity: 1;
154 }
155
156 /* Full width alignment - break out of container - only for top-level sections */
157 .bkbg-section.alignfull:not(.bkbg-column .bkbg-section) {
158 width: 100vw;
159 max-width: 100vw;
160 margin-left: calc(-50vw + 50%);
161 margin-right: calc(-50vw + 50%);
162 }
163
164 .bkbg-section.alignwide:not(.bkbg-column .bkbg-section) {
165 width: calc(100% + 80px);
166 max-width: calc(100vw - 40px);
167 margin-left: -40px;
168 margin-right: -40px;
169 }
170
171 /* Nested sections inside columns should be full width of column */
172 .bkbg-column .bkbg-section,
173 .bkbg-column .bkbg-section.alignfull,
174 .bkbg-column .bkbg-section.alignwide {
175 width: 100% !important;
176 max-width: 100% !important;
177 margin-left: 0 !important;
178 margin-right: 0 !important;
179 }
180
181 /* Editor full width support */
182 .editor-styles-wrapper .bkbg-section.alignfull,
183 .editor-styles-wrapper [data-type="blockenberg/section"][data-align="full"] > .bkbg-section {
184 width: 100% !important;
185 max-width: none !important;
186 margin-left: 0 !important;
187 margin-right: 0 !important;
188 }
189
190 /* Responsive adjustments */
191 @media (max-width: 782px) {
192 .bkbg-section--width-boxed .bkbg-section__inner,
193 .bkbg-section--width-full .bkbg-section__inner {
194 padding-left: 16px;
195 padding-right: 16px;
196 }
197
198 .bkbg-section--padding-l {
199 padding-top: 32px;
200 padding-bottom: 32px;
201 }
202
203 .bkbg-section--padding-xl {
204 padding-top: 48px;
205 padding-bottom: 48px;
206 }
207 }
208