-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
62 lines (51 loc) · 1.46 KB
/
style.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
55
56
57
58
59
60
61
62
.components-popover.block-editor-block-popover {
z-index: z-index(".block-editor-block-popover");
position: absolute;
// Shouldn't be needed but it looks
// like the popover is impacted by the block gap margin.
margin: 0 !important;
// Allow clicking through the toolbar holder.
pointer-events: none;
.components-popover__content {
margin: 0 !important;
min-width: auto;
width: max-content;
overflow-y: visible;
}
// Enable pointer events for the toolbar's content.
&:not(.block-editor-block-popover__inbetween, .block-editor-block-popover__drop-zone) .components-popover__content {
* {
pointer-events: all;
}
}
}
.components-popover.block-editor-block-popover__inbetween {
// Disable pointer events for dragging and dropping.
// Without this the insertion point interferes with the
// drop zone.
pointer-events: none;
* {
pointer-events: none;
}
// Re-enable pointer events when the inbetween inserter has a '+' button.
// Needs specificity, do not simplify.
.is-with-inserter {
pointer-events: all;
* {
pointer-events: all;
}
}
}
.components-popover.block-editor-block-popover__drop-zone {
// Disable pointer events for dragging and dropping.
// This drop zone is fully presentational, the actual DnD implementation is handled elsewhere.
* {
pointer-events: none;
}
.block-editor-block-popover__drop-zone-foreground {
position: absolute;
inset: 0;
background-color: var(--wp-admin-theme-color);
border-radius: 2px;
}
}