-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
editor.scss
55 lines (48 loc) · 1.24 KB
/
editor.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Group: All Alignment Settings
*/
.wp-block-group {
// Ensure not rendering outside the element
// as -1px causes overflow-x scrollbars
.block-editor-block-list__insertion-point {
left: 0;
right: 0;
}
}
// Place block list appender in the same place content will appear.
[data-type="core/group"].is-selected {
.block-list-appender {
margin-left: 0;
margin-right: 0;
}
.has-background .block-list-appender {
margin-top: $block-padding + $grid-unit-05;
margin-bottom: $block-padding + $grid-unit-05;
}
}
// Affect the appender of the Row and Stack variants.
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child {
gap: inherit;
&,
.block-editor-default-block-appender__content,
.block-editor-inserter {
display: inherit;
width: 100%;
flex-direction: inherit;
flex: 1;
}
&::after {
content: "";
display: flex;
flex: 1 0 $button-size-next-default-40px;
pointer-events: none;
min-height: $button-size-next-default-40px - $border-width - $border-width;
border: $border-width dashed currentColor;
}
// Let the parent be selectable in the placeholder area.
pointer-events: none;
.block-editor-inserter,
.block-editor-button-block-appender {
pointer-events: all;
}
}