Skip to content

Commit 93c9090

Browse files
committed
Use ch units for line length + adjust vertical spaces
On smaller screens, the text block will take the max screen width, on bigger screens, the width is smaller for better readability and centered. On smaller screens, the padding in between blocks was waaaaay to much.
1 parent dd075ad commit 93c9090

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/assets/stylesheets/home.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,18 @@ hr.separator-line {
6565
// cards (grid) -> card (flex) -> card Content (See below)
6666

6767
.text-container {
68-
max-width: 80%;
68+
max-width: 90%;
6969
margin: 15vh auto;
7070
//margin: auto;
7171
}
7272

7373
.intro {
74-
padding: 0 19vw 15vh 20vw;
74+
//padding: 0 19vw 15vh 20vw;
7575
font-size: larger;
76-
//padding-bottom: 15vh;
76+
padding-bottom: 7vh;
77+
max-width: 45ch;
78+
margin-left: auto;
79+
margin-right: auto;
7780
}
7881

7982
.cards {
@@ -82,7 +85,7 @@ hr.separator-line {
8285
grid-gap: 1rem;
8386
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
8487
// ^ make it responsive without mediaqueries:
85-
margin-bottom: 15vh;
88+
margin-bottom: 7vh;
8689
}
8790

8891
.card {

0 commit comments

Comments
 (0)