-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
style.scss
48 lines (38 loc) · 1.12 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
.block-editor-block-patterns-list__list-item {
cursor: pointer;
margin-bottom: $grid-unit-30;
// The list item contains absolutely positioned visually hidden text,
// so make this container relative. This prevents the bug experienced in
// https://github.com/WordPress/gutenberg/issues/44842.
position: relative;
&.is-placeholder {
min-height: 100px;
}
&[draggable="true"] .block-editor-block-preview__container {
cursor: grab;
}
}
.block-editor-block-patterns-list__item {
height: 100%;
.block-editor-block-preview__container {
display: flex;
align-items: center;
overflow: hidden;
border-radius: 4px;
}
.block-editor-block-patterns-list__item-title {
padding-top: $grid-unit-10;
font-size: 12px;
text-align: center;
}
&:hover .block-editor-block-preview__container {
box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
}
&:focus .block-editor-block-preview__container {
@include button-style-outset__focus(var(--wp-admin-theme-color));
}
&:hover .block-editor-block-patterns-list__item-title,
&:focus .block-editor-block-patterns-list__item-title {
color: var(--wp-admin-theme-color);
}
}