Skip to content

Commit 4b1a52c

Browse files
committed
chore: make tools section more responsive
1 parent 4538a76 commit 4b1a52c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/layouts/sections/ToolsSection.astro

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const { class: className } = Astro.props;
169169
font-size: 1.125rem;
170170

171171
svg {
172+
margin-block-start: var(--size-gutter-big);
172173
width: 4rem;
173174
height: auto;
174175
fill: var(--color-secondary);
@@ -181,6 +182,27 @@ const { class: className } = Astro.props;
181182
}
182183

183184
@media screen and (max-width: 800px) {
185+
section {
186+
grid-template-areas:
187+
"header"
188+
"main"
189+
"tools";
190+
grid-template-columns: 1fr;
191+
}
192+
193+
.tools-content {
194+
svg {
195+
align-self: center;
196+
rotate: 0deg;
197+
}
198+
}
199+
200+
.tools-grid {
201+
grid-template-columns: repeat(4, 1fr);
202+
}
203+
}
204+
205+
@media screen and (max-width: 600px) {
184206
.tools-grid {
185207
grid-template-columns: repeat(2, 1fr);
186208
}

0 commit comments

Comments
 (0)