Skip to content

Commit 8e3ce42

Browse files
Add responsive padding for small screens
1 parent b4ccb03 commit 8e3ce42

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

packages/main/src/_global.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,3 @@ html {
1212
outline-color: var(--color);
1313
border-color: var(--border);
1414
}
15-
16-
@media (max-width: map.get(
17-
breakpoints.$breakpoints,
18-
"small"
19-
)) {
20-
body {
21-
/* margin: 1rem; */
22-
}
23-
}

packages/main/src/layouts/_dashboard.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use "sass:map";
12
@use "../partials/breakpoints";
23

34
[data-layout="dashboard"] {
@@ -18,6 +19,12 @@
1819
margin-inline: auto;
1920
margin-block-start: 1rem;
2021
@include breakpoints.container;
22+
@media (max-width: map.get(
23+
breakpoints.$breakpoints,
24+
"small"
25+
)) {
26+
padding-inline: 1rem;
27+
}
2128
}
2229
footer {
2330
grid-area: footer;

packages/main/src/layouts/_website.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"header"
99
"main"
1010
"footer";
11+
@media (max-width: map.get(
12+
breakpoints.$breakpoints,
13+
"small"
14+
)) {
15+
padding: 1rem;
16+
}
1117
> {
1218
header {
1319
grid-area: header;

0 commit comments

Comments
 (0)