Skip to content

Commit 3bc5bab

Browse files
Merge pull request #12 from TorstenDittmann/fix-website-mobile-padding
Move padding to child elements and apply only inline padding
2 parents fd1cf92 + f1f8e2e commit 3bc5bab

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

packages/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "launch.css",
33
"type": "module",
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"description": "A classless CSS framework built for speed. Style your website later—build it now.",
66
"homepage": "https://launch-css.dev",
77
"main": "dist/index.css",

packages/main/src/layouts/_website.scss

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"header"
99
"main"
1010
"footer";
11-
@media (max-width: map.get(
12-
breakpoints.$breakpoints,
13-
"small"
14-
)) {
15-
padding: 1rem;
16-
}
1711
> {
1812
header {
1913
grid-area: header;
14+
@media (max-width: map.get(
15+
breakpoints.$breakpoints,
16+
"small"
17+
)) {
18+
padding-block-start: 1rem;
19+
}
2020
}
2121
main {
2222
display: grid;
@@ -31,6 +31,12 @@
3131
footer {
3232
margin: 0 auto;
3333
@include breakpoints.container;
34+
@media (max-width: map.get(
35+
breakpoints.$breakpoints,
36+
"small"
37+
)) {
38+
padding-inline: 1rem;
39+
}
3440
}
3541
header {
3642
grid-area: header;

0 commit comments

Comments
 (0)