Skip to content

Commit 84e1879

Browse files
committed
Refactor mobile and desktop styles in CSS for improved layout and organization
- Added comments to categorize styles for mobile and desktop views. - Adjusted padding and margin for various elements to enhance responsiveness. - Ensured consistent alignment and spacing in footer and hero sections.
1 parent f52f3d7 commit 84e1879

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

css/mobile.css

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
1+
/* Mobile Styles */
12
@media only screen and (max-width:850px) {
3+
/* Base Layout */
24
body {
35
padding: 7.5vw;
46
flex-flow: column wrap;
57
}
8+
9+
section {
10+
width: 100%;
11+
min-height: inherit;
12+
}
13+
14+
/* Hero Section */
615
.hero {
716
height: 100vh;
817
justify-content: space-between;
918
padding: 0;
1019
}
20+
1121
.bio {
1222
margin: 0;
1323
min-width: 80vw;
1424
padding-bottom: 2em;
1525
}
16-
.list {
17-
margin-top: 1em;
18-
}
19-
section {
20-
width: 100%;
21-
min-height: inherit;
22-
}
26+
27+
/* Writing Pages */
2328
.writing {
24-
width:100%;
29+
width: 100%;
2530
padding: 0;
2631
max-width: 100vw;
2732
}
33+
34+
.list {
35+
margin-top: 1em;
36+
}
37+
2838
.dt {
2939
bottom: auto;
3040
padding: 0 7.5vw 7.5vw;
3141
-webkit-box-align: start;
32-
align-items: flex-start
42+
align-items: flex-start;
3343
}
44+
45+
/* Footer */
3446
.footer {
3547
display: flex;
3648
position: inherit;
@@ -39,35 +51,33 @@
3951
justify-content: flex-end;
4052
padding: 0;
4153
}
54+
4255
.footer > a {
4356
position: relative;
4457
padding-top: 0.7em;
4558
border: none;
46-
border: none;
4759
text-decoration: underline;
4860
}
4961
}
62+
63+
/* Desktop Styles */
5064
@media only screen and (min-width:1080px) {
65+
/* Hero Section */
5166
.bio {
5267
max-width: 1100px;
53-
font-size:2em;
68+
font-size: 2em;
5469
}
70+
5571
.header {
5672
font-size: 2.5em;
5773
}
74+
75+
/* Writing Pages */
5876
.writing {
5977
max-width: 750px;
6078
}
61-
.menu {
62-
height: calc(100vh - 2.1em);
63-
max-height: calc(100vh - 1.4em);
64-
min-height: calc(100vh - 1.4em);
65-
font-size: 2.5em;
66-
}
67-
.menu > div {
68-
flex-basis: calc(50% - 72px);
69-
margin: 36px;
70-
}
79+
80+
/* Footer */
7181
.footer {
7282
right: 3em;
7383
bottom: 5em;

0 commit comments

Comments
 (0)