-
Notifications
You must be signed in to change notification settings - Fork 4k
/
style.scss
137 lines (113 loc) · 2.6 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
.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;
}
.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__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%;
background-color: $white;
}
}
.font-library-modal__tabpanel-layout .components-base-control__field {
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;
h3 {
font-size: 1.4rem;
}
.components-card {
width: 50%;
min-width: 350px;
max-width: 400px;
}
}