Repository navigation
Expand file tree
/
Copy pathbase.css
More file actions
213 lines (191 loc) · 3.63 KB
/
Copy pathbase.css
File metadata and controls
213 lines (191 loc) · 3.63 KB
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/** Hello world block */
.welcome {
display: grid;
grid-template-columns: var(--content-grid);
background-color: #f6f6f7;
padding: 72px 0;
}
.welcome-content {
grid-column: 2;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
width: 100%;
padding: 0 24px;
}
.welcome-description {
max-width: 80ch;
line-height: 1.4;
margin-top: 1.5rem;
}
.icon {
width: 300px;
}
.highlights {
display: grid;
gap: 2rem;
grid-template-columns: repeat(4, 1fr);
margin-top: 50px;
}
@media (max-width: 1100px) {
.highlights {
grid-template-columns: 1fr;
}
}
.highlight {
display: flex;
flex-direction: column;
height: 100%;
padding: 24px;
border-radius: 8px;
background-color: #eef3ff;
color: rgb(92, 95, 98);
line-height: 1.4;
}
.highlight > * + * {
margin-top: 1rem;
}
.highlight h3 {
font-size: 1rem;
color: rgb(32, 34, 35);
}
.highlight-description {
flex: 1 1;
}
/**
* Flashes a liquid-tip after the "show another tip" button swaps in fresh
* content through partial rendering. The brief highlight pulse draws the
* eye to the new tip so the change is noticeable without a page reload.
*/
@keyframes highlight-flash {
from {
background-color: #c9d9ff;
}
to {
background-color: transparent;
}
}
.highlight-description--flash {
animation: highlight-flash 0.6s ease-out;
border-radius: 4px;
}
.highlight a,
.welcome-content a {
display: flex;
width: fit-content;
background-color: rgb(250, 251, 251);
box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px 0px inset, rgba(255, 255, 255, 0.9) 0px 2px 0px 0px inset;
border: 1px solid rgb(140, 145, 150);
border-radius: 4px;
color: rgb(92, 95, 98);
padding: 3px 10px 5px;
text-decoration: none;
cursor: pointer;
}
/** Text block */
.text {
text-align: var(--text-align);
}
.text--title {
font-size: 2rem;
font-weight: 700;
}
.text--subtitle {
font-size: 1.5rem;
}
/** Collection page */
.collection-products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}
/** Collections list page */
.collections {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(var(--collection-card-size), 100%), 1fr));
gap: var(--grid-gap);
}
.collections--compact {
--collection-card-size: 160px;
}
.collections--full {
--collection-card-size: 280px;
}
.collection-card {
display: flex;
flex-direction: column;
width: 100%;
}
/** Search page */
.search-results {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.search-results .prev,
.search-results .page,
.search-results .next {
grid-column: 1 / -1;
}
/** Header */
header {
height: 5rem;
display: flex;
align-items: center;
justify-content: space-between;
}
header a {
position: relative;
text-decoration: none;
color: var(--color-foreground);
display: flex;
align-items: center;
justify-content: center;
}
header a sup {
position: absolute;
left: 100%;
overflow: hidden;
max-width: var(--page-margin);
}
header svg {
width: 2rem;
}
header .header__menu,
header .header__icons {
display: flex;
gap: 1rem;
}
/** Footer */
footer {
display: flex;
justify-content: space-between;
margin-top: 2rem;
}
footer a {
text-decoration: none;
color: var(--color-foreground);
}
footer .footer__links,
footer .footer__payment {
display: flex;
gap: 1rem;
}
/** Image snippet */
.image {
display: block;
position: relative;
overflow: hidden;
width: 100%;
height: auto;
}
.image > img {
width: 100%;
height: auto;
}
/** Gift card template */
.template-gift-card main {
text-align: center;
}
.template-gift-card main img {
display: unset;
}