Skip to content

Commit a6afad1

Browse files
committed
Responsive (Media Queries)
1 parent a000beb commit a6afad1

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/index.pcss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,30 @@
160160
top: 4px;
161161
left: 4px;
162162
}
163-
163+
164164
&::after {
165165
bottom: 4px;
166166
right: 4px;
167167
}
168168
}
169+
170+
/* Responsive cards */
171+
@media screen and (max-width: 800px) {
172+
.card::after,
173+
.item {
174+
display: none;
175+
}
176+
177+
.card {
178+
width: 38px;
179+
height: 48px;
180+
display: flex;
181+
justify-content: center;
182+
align-items: center;
183+
}
184+
185+
.card::before {
186+
position: static;
187+
font-size: 24px;
188+
}
189+
}

0 commit comments

Comments
 (0)