-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
style.scss
124 lines (107 loc) · 2.31 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.page-templates-preview-field {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
border-radius: $radius-medium;
.page-templates-preview-field__button {
box-shadow: none;
border: none;
padding: 0;
background-color: unset;
box-sizing: border-box;
cursor: pointer;
overflow: hidden;
height: 100%;
border-radius: $radius-medium;
&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 2px solid transparent;
}
}
.dataviews-view-list & {
.block-editor-block-preview__container {
height: 120px;
}
}
.dataviews-view-grid & {
.block-editor-block-preview__container {
height: 100%;
}
}
.dataviews-view-table & {
position: relative;
width: 120px;
max-height: 160px;
&::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
border-radius: $radius-medium;
}
}
}
.page-templates-description {
max-width: 50em;
text-wrap: balance; // Fallback for Safari
text-wrap: pretty;
.dataviews-view-table & {
margin-bottom: $grid-unit-10;
}
}
.edit-site-page-templates {
.dataviews-pagination {
z-index: z-index(".edit-site-templates__dataviews-list-pagination");
}
}
.page-templates-author-field__avatar {
flex-shrink: 0;
overflow: hidden;
width: $grid-unit-30;
height: $grid-unit-30;
align-items: center;
justify-content: left;
display: flex;
img {
width: $grid-unit-20;
height: $grid-unit-20;
object-fit: cover;
opacity: 0;
transition: opacity 0.1s linear;
@include reduce-motion("transition");
border-radius: 100%;
}
&.is-loaded {
img {
opacity: 1;
}
}
}
.page-templates-author-field__icon {
display: flex;
flex-shrink: 0;
width: $grid-unit-30;
height: $grid-unit-30;
svg {
margin-left: -$grid-unit-05;
fill: currentColor;
}
}
.page-templates-author-field__name {
text-overflow: ellipsis;
overflow: hidden;
}
.edit-site-list__rename-modal {
// The rename dropdown popover is open at the same time as the rename modal. The latter has to be higher.
z-index: z-index(".edit-site-list__rename-modal");
.components-base-control {
@include break-medium() {
width: $grid-unit * 40;
}
}
}