/
style.scss
65 lines (54 loc) · 1.35 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
63
64
65
.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"] {
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 {
text-align: left;
flex-grow: 1;
}
&:hover .block-editor-block-preview__container {
box-shadow: 0 0 0 2px $gray-900;
}
&:focus .block-editor-block-preview__container {
@include button-style-outset__focus($gray-900);
}
&.block-editor-block-patterns-list__list-item-synced {
&:hover,
&:focus {
.block-editor-block-preview__container {
box-shadow:
0 0 0 2px var(--wp-block-synced-color),
0 15px 25px rgb(0 0 0 / 7%);
}
}
}
.block-editor-patterns__pattern-details {
align-items: center;
margin-top: $grid-unit-10;
}
.block-editor-patterns__pattern-icon-wrapper {
min-width: 24px;
height: 24px;
.block-editor-patterns__pattern-icon {
fill: var(--wp-block-synced-color);
}
}
}