Skip to content

Commit ce3bec3

Browse files
committed
Tons of mobile style tweaks
1 parent a3fc3a2 commit ce3bec3

File tree

5 files changed

+47
-17
lines changed

5 files changed

+47
-17
lines changed

_sass/_base.scss

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,16 @@ blockquote {
8989
word-break: break-all;
9090
}
9191

92-
&::before {
93-
content: "";
94-
display: block;
95-
font-size: 90px;
96-
font-family: cursive;
97-
position: absolute;
98-
top: 56px;
99-
margin-left: -56px;
92+
@media screen and (min-width: 600px) {
93+
&::before {
94+
content: "";
95+
display: block;
96+
font-size: 90px;
97+
font-family: cursive;
98+
position: absolute;
99+
top: 56px;
100+
margin-left: -56px;
101+
}
100102
}
101103
}
102104
ul {

_sass/components/_footer.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,29 @@ $smallWidth: 790px;
1212
&-links {
1313
display: flex;
1414
flex: 1;
15-
font: 300 2.1rem/30px $railway, sans-serif;
15+
font: 300 1.7rem/30px $railway, sans-serif;
16+
flex-direction: column;
1617

1718
a {
1819
@extend .expand-hover-border-from-center;
1920

20-
padding: 7px 10px;
21+
padding: 7px 0;
22+
23+
&:first-of-type {
24+
padding-left: 0;
25+
}
26+
&:last-of-type {
27+
padding-right: 0;
28+
}
2129
}
2230

23-
@media screen and (max-width: 600px) {
24-
font-size: 1.7rem;
31+
@media screen and (min-width: 600px) {
32+
font-size: 2.1rem;
33+
flex-direction: row;
34+
35+
a {
36+
padding: 7px 10px;
37+
}
2538
}
2639
}
2740
&-social {
@@ -115,7 +128,10 @@ $smallWidth: 790px;
115128
}
116129
&-posts {
117130
flex: 1;
118-
padding-right: 100px;
131+
132+
@media screen and (min-width: 600px) {
133+
padding-right: 100px;
134+
}
119135
}
120136
&-contact {
121137
nav {

_sass/components/_info.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ $margin-spacing: 20px;
1717
}
1818

1919
&--full {
20-
margin-left: -33.33%;
21-
margin-right: -33.33%;
22-
padding: 40px 33.33%;
20+
margin-left: -10vw;
21+
margin-right: -10vw;
22+
padding: 40px 10vw;
2323
font-style: italic;
2424
font-family: "Lato";
2525
font-size: 24px;
2626

27+
@media screen and (min-width: 1125px) {
28+
margin-left: -33.33%;
29+
margin-right: -33.33%;
30+
padding: 40px 33.33%;
31+
}
32+
2733
a {
2834
font-size: 20px;
2935
margin-top: 15px;

_sass/components/_logo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
}
5858

5959
&-logo {
60-
margin: 0 15px;
60+
margin: 0 0 0 15px;
6161
border: none;
6262
}
6363
&-first-name {

_sass/components/_post.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,16 @@
4343
}
4444

4545
&-actions {
46+
display: flex;
47+
flex-direction: column;
4648
border-top: 1px solid $lightest-gray-border;
4749
margin-top: 30px;
4850
padding-top: 30px;
4951

52+
@media screen and (min-width: 600px) {
53+
flex-direction: row;
54+
}
55+
5056
a {
5157
font-size: 2rem;
5258
}

0 commit comments

Comments
 (0)