PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.7.2
GenerateBlocks v1.7.2
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 3 years ago css 3 years ago variations 3 years ago attributes.js 3 years ago block-controls.js 3 years ago block.js 3 years ago deprecated.js 5 years ago edit.js 3 years ago editor.scss 3 years ago migrate-sizing.js 3 years ago
editor.scss
334 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-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 display: inline-block;
261 vertical-align: middle;
262 padding: 0;
263 margin-top: 10px;
264
265 &:empty {
266 display: none;
267 }
268 }
269
270 button.block-editor-button-block-appender {
271 background: #000;
272 color: #fff;
273 padding: 5px;
274 height: 35px;
275 width: 35px;
276 min-height: 35px;
277 box-sizing: border-box;
278
279 &:hover {
280 background-color: var(--wp-admin-theme-color);
281 }
282
283 &:not(:hover) {
284 box-shadow: inset 0 0 0 1px #444;
285 }
286 }
287 }
288
289 .components-button.gblocks-container-selector {
290 display: block;
291 text-align: left;
292 color: inherit;
293 padding: 0;
294 border: 0;
295 height: 35px;
296
297 .gblocks-container-selector__icon {
298 background: #fff;
299 opacity: 0.3;
300 display: inline-flex;
301 height: 35px;
302 width: 35px;
303 align-items: center;
304 justify-content: center;
305 border-radius: 2px;
306 transition: opacity 500ms ease;
307
308 svg {
309 transform: scale(0.7);
310
311 path {
312 fill: #000;
313 }
314 }
315 }
316
317 &:hover {
318 .gblocks-container-selector__icon {
319 opacity: 0.4;
320 }
321 }
322 }
323
324 .gblocks-inner-container-notice {
325 margin: 0 0 1em;
326 background: rgba(0,0,0,0.03);
327 max-width: 720px;
328 }
329
330 .gblocks-layout-system-ul {
331 list-style-type: disc;
332 margin-left: 1em;
333 }
334