PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.0
GenerateBlocks v2.0.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / blocks / container / editor.scss
generateblocks / src / blocks / container Last commit date
components 1 year ago css 2 years ago attributes.js 2 years ago block-controls.js 2 years ago block.js 1 year ago deprecated.js 3 years ago edit.js 2 years ago editor.scss 1 year ago transforms.js 1 year ago
editor.scss
335 lines
1 /**
2 * #.# Editor Styles
3 *
4 * CSS for just Backend enqueued after style.scss
5 * which makes it higher in priority.
6 */
7
8 body.gutenberg-editor-page [data-type="generateblocks/container"]="generateblocks/container""] .editor-block-list__block,
9 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h1,
10 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h1.editor-rich-text__tinymce,
11 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h2,
12 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h2.editor-rich-text__tinymce,
13 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h3,
14 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h3.editor-rich-text__tinymce,
15 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h4,
16 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h4.editor-rich-text__tinymce,
17 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h5,
18 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h5.editor-rich-text__tinymce,
19 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h6,
20 [data-type="generateblocks/container"]="generateblocks/container""] .wp-block-heading h6.editor-rich-text__tinymce {
21 color: inherit;
22 }
23
24 .additional-class-notice .components-notice {
25 margin: 0 0 10px;
26 }
27
28 .widthButtons {
29 margin-bottom: 10px;
30 display: flex;
31
32 button {
33 font-size: 12px;
34 flex: 1;
35 box-shadow: inset 0 0 0 1px #007cba;
36 justify-content: center;
37 padding: 5px 0;
38
39 &:first-child {
40 padding: 5px;
41 }
42 }
43 }
44
45 .gblocks-column-width-control input[type="number"]="number""] {
46 width: 65px;
47 }
48
49 [data-type="generateblocks/container"]="generateblocks/container""] > .block-editor-block-list__block-edit > [data-block]] {
50 margin: 0;
51 }
52
53 .block-editor-block-inspector .components-base-control {
54 &.gblocks-gpress-full-width {
55 border-top: 1px solid #ddd;
56 padding-top: 15px;
57
58 .components-base-control__label {
59 margin-bottom: 15px;
60 }
61 }
62 }
63
64 .gblocks-container-text-alignment .components-base-control__label {
65 display: block;
66 }
67
68 /* Not needed in GB 7 */
69 .edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]="generateblocks/container""] > .block-editor-block-list__block-edit {
70 margin: 0;
71 }
72
73 .gb-container .gb-inside-container {
74 box-sizing: inherit;
75 }
76
77 .gblocks-bg-image-wrapper {
78 display: flex;
79
80 .components-base-control,
81 .components-base-control__field {
82 margin: 0;
83 }
84
85 & > .components-base-control {
86 flex-grow: 1;
87 }
88
89 .components-button {
90 line-height: inherit;
91 height: 100%;
92 }
93 }
94
95 .components-gblocks-control__image-sizes {
96 margin-bottom: 24px;
97
98 button {
99 margin: 0 5px 5px 0;
100 }
101 }
102
103 .gb-container .wp-block-image {
104 margin-top: 0;
105 margin-bottom: 0;
106 }
107
108 /* Shape divider */
109 .gb-container .gb-shapes > .gb-shape {
110 position: absolute;
111 overflow: hidden;
112 line-height: 0;
113 pointer-events: none;
114
115 svg {
116 fill: currentColor;
117 }
118 }
119
120 .gblocks-add-new-shape {
121 margin-top: 10px;
122 }
123
124 .gblocks-shape-controls {
125 width: 100%;
126
127 & > .components-base-control {
128 margin-bottom: 20px;
129 }
130
131 .gblocks-edit-shape {
132 display: block;
133 width: 100%;
134 text-align: left;
135 }
136
137 .gblocks-shape-chooser {
138 margin: 0;
139 display: block;
140
141 li {
142 margin: 5px 0;
143
144 button.components-button {
145 width: 100%;
146 height: auto;
147 background: #efefef;
148
149 svg {
150 width: 100%;
151 }
152
153 &:hover {
154 background: #efefef;
155 }
156
157 &.gblocks-shape-is-active {
158 box-shadow: 0 0 0 3px #007cba;
159 }
160 }
161 }
162 }
163
164 .components-panel__row {
165 display: block;
166 }
167 }
168
169 .gblocks-shape-divider-preview {
170 padding: 10px;
171
172 svg {
173 fill: currentColor;
174 }
175 }
176
177 .gblocks-shape-toggle-preview {
178 margin-right: 10px;
179
180 svg {
181 width: 30px;
182 }
183 }
184
185 .gblocks-shape-container {
186 display: flex;
187 align-items: center;
188 margin-bottom: 10px;
189 border: 1px solid #efefef;
190 border-radius: 3px;
191
192 .components-dropdown {
193 margin-left: auto;
194 }
195
196 .components-button.gblocks-shape-dropdown,
197 .components-button.gblocks-remove-shape {
198 justify-content: center;
199
200 & > svg {
201 margin-right: 0;
202 }
203 }
204 }
205
206 .components-popover.gblocks-shapes-dropdown .components-popover__content {
207 min-width: 260px;
208 }
209
210 /* GPress content width */
211 .gblocks-gpress-full-width .components-base-control__label {
212 display: block;
213 }
214
215 .gb-container-empty {
216 position: relative;
217
218 &.gb-container-visual-guides {
219 &:before {
220 content: "";
221 position: absolute;
222 top: 0.5px;
223 right: 0.5px;
224 bottom: 0.5px;
225 left: 0.5px;
226 border: 1px dashed #000;
227 box-shadow: inset 0 0 0 1px #fff;
228 opacity: 0.2;
229 transition: opacity 500ms ease;
230 }
231
232 &:hover:before {
233 opacity: 0.3;
234 }
235 }
236 }
237
238 .gb-container {
239 margin-top: 0;
240 margin-bottom: 0;
241 box-sizing: border-box;
242
243 & > .wp-block {
244 margin-left: 0;
245 margin-right: 0;
246 }
247 }
248
249 .gb-container.block-editor-block-list__block.gb-container-empty > .gb-inside-container,
250 .gb-container.block-editor-block-list__block.gb-container-empty {
251 & > .block-list-appender {
252 margin: 0;
253 }
254 }
255
256 .gb-container.block-editor-block-list__block > .gb-inside-container,
257 .gb-container.block-editor-block-list__block {
258 & > .block-list-appender {
259 position: relative;
260 width: 35px;
261 padding: 0;
262 margin-top: 10px;
263
264 &:empty {
265 display: none;
266 }
267 }
268
269 button.block-editor-button-block-appender {
270 background: #000;
271 color: #fff;
272 padding: 5px;
273 height: 35px;
274 width: 35px;
275 min-height: 35px;
276 box-sizing: border-box;
277
278 &:hover {
279 background-color: var(--wp-admin-theme-color);
280 }
281
282 &:not(:hover) {
283 box-shadow: inset 0 0 0 1px #444;
284 }
285 }
286 }
287
288 .components-button.gblocks-container-selector {
289 display: block;
290 text-align: left;
291 color: inherit;
292 padding: 0;
293 border: 0;
294 height: 35px;
295
296 .gblocks-container-selector__icon {
297 background: #fff;
298 opacity: 0.3;
299 display: inline-flex;
300 height: 35px;
301 width: 35px;
302 align-items: center;
303 justify-content: center;
304 border-radius: 2px;
305 transition: opacity 500ms ease;
306
307 svg {
308 width: 35px;
309 height: 35px;
310 transform: scale(0.7);
311
312 path {
313 fill: #000;
314 }
315 }
316 }
317
318 &:hover {
319 .gblocks-container-selector__icon {
320 opacity: 0.4;
321 }
322 }
323 }
324
325 .gblocks-inner-container-notice {
326 margin: 0 0 1em;
327 background: rgba(0,0,0,0.03);
328 max-width: 720px;
329 }
330
331 .gblocks-layout-system-ul {
332 list-style-type: disc;
333 margin-left: 1em;
334 }
335