-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathstyle.scss
181 lines (152 loc) · 3.56 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Fixed height for the modal footer.
// Ensures that the footer is always visible when the modal content is scrollable.
$footer-height: 70px;
.font-library-modal {
// @todo If a new prop is added to the Modal component that constrains
// the content width, we should use that prop instead of this style.
// see https://github.com/WordPress/gutenberg/issues/54471.
&.font-library-modal {
@include break-medium() {
width: 65vw;
}
}
.components-modal__header {
border-bottom: none;
}
.components-modal__content {
padding-top: 0;
margin-bottom: $footer-height;
}
.font-library-modal__subtitle {
text-transform: uppercase;
font-weight: 500;
font-size: 11px;
}
// Add padding so the focus state outline (box-shadow) of font list items is visible
.components-navigator-screen {
padding: 3px;
}
}
.font-library-modal__tabpanel-layout {
margin-top: $grid-unit-40;
.font-library-modal__loading {
width: 100%;
height: 100%;
display: flex;
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
// Push down so that the progress bar is centered vertically.
// It should be 120px (72px modal header height + 48px tab height)
padding-top: $header-height + $grid-unit-15 + $grid-unit-60;
}
.font-library-modal__tabpanel-layout__footer {
border-top: 1px solid $gray-300;
margin: 0 #{$grid-unit-40 * -1} #{$grid-unit-40 * -1};
padding: $grid-unit-20 $grid-unit-40;
position: absolute;
bottom: $grid-unit-40;
width: 100%;
height: $footer-height;
background-color: $white;
}
}
.font-library-modal__tabpanel-layout .components-base-control__field {
margin-bottom: 0;
}
.font-library-modal__fonts-title {
text-transform: uppercase;
font-size: 11px;
font-weight: 600;
margin-top: 0;
margin-bottom: 0;
}
.font-library-modal__fonts-list {
margin-top: 0;
margin-bottom: 0;
}
.font-library-modal__fonts-list-item {
margin-bottom: 0;
}
.font-library-modal__font-card {
border: 1px solid $gray-200;
width: 100%;
height: auto;
padding: $grid-unit-20;
margin-top: -1px; /* To collapse the margin with the previous element */
&:hover {
background-color: $gray-100;
}
.font-library-modal__font-card__name {
font-weight: bold;
}
.font-library-modal__font-card__count {
color: $gray-700;
}
.font-library-modal__font-variant_demo-image {
display: block;
height: $grid-unit-30;
width: auto;
}
.font-library-modal__font-variant_demo-text {
white-space: nowrap;
flex-shrink: 0;
transition: opacity 0.3s ease-in-out;
@include reduce-motion("transition");
}
}
.font-library-modal__font-variant {
border-bottom: 1px solid $gray-200;
padding-bottom: $grid-unit-20;
}
.font-library-modal__tabs {
[role="tablist"] {
position: sticky;
top: 0;
border-bottom: 1px solid $gray-300;
background: $white;
margin: 0 #{$grid-unit-40 * -1};
padding: 0 $grid-unit-20;
z-index: 1;
}
}
.font-library-modal__upload-area {
align-items: center;
display: flex;
justify-content: center;
height: $grid-unit-80 * 4; // 256px
width: 100%;
}
button.font-library-modal__upload-area {
background-color: $gray-100;
}
.font-library-modal__local-fonts {
margin: 0 auto;
width: 80%;
.font-library-modal__upload-area__text {
color: $gray-700;
}
}
.font-library__google-fonts-confirm {
display: flex;
justify-content: center;
align-items: center;
margin-top: $grid-unit-80;
p {
line-height: $default-line-height;
}
h2 {
font-size: 1.2rem;
font-weight: 400;
}
.components-card {
padding: $grid-unit-20;
width: 400px;
}
.components-button {
width: 100%;
justify-content: center;
}
}