Skip to content

Commit c80140e

Browse files
committed
amending layout to fit mobile
1 parent 0547c4b commit c80140e

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

assets/stylesheet.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Base Styles */
22
html, body {
33
background-color: #1c1e26;
4-
font-size: 14px;
4+
font-size: 0.8;
55
line-height: 1.5;
66
color: #dcdccc;
77
font-family: 'Fira Mono', monospace;
@@ -10,7 +10,7 @@
1010
/* For Larger Screens */
1111
@media screen and (min-width: 680px) {
1212
body {
13-
width: 80%;
13+
width: 48rem;
1414
margin: 0 auto;
1515
padding: 20px;
1616
}
@@ -19,7 +19,7 @@
1919
/* For Mobile */
2020
@media screen and (max-width: 430px) {
2121
body {
22-
width: 80%;
22+
width: 90%;
2323
margin: 0 auto;
2424
padding: 10px;
2525
}
@@ -28,14 +28,15 @@
2828
/* Headings */
2929
h1 {
3030
color: #e79686;
31-
font-size: 2em;
31+
font-size: 1.5em;
3232
text-align: center;
33-
margin-bottom: 0;
33+
margin-bottom: 0;
34+
width: 90%;
3435
}
3536

3637
h2 {
3738
color: #7ec98f;
38-
font-size: 1.5em;
39+
font-size: 1em;
3940
margin-top: 20px;
4041
margin-bottom: 10px;
4142
border-bottom: 1px solid #7ec98f;
@@ -45,7 +46,7 @@
4546

4647
h3 {
4748
color: #a89bb9;
48-
font-size: 1.2em;
49+
font-size: 0.8em;
4950
margin-top: 10px;
5051
margin-bottom: 5px;
5152
border-bottom: 1px solid #a89bb9;
@@ -55,7 +56,7 @@
5556

5657
h4 {
5758
color: #a89bb9;
58-
font-size: 1.2em;
59+
font-size: 0.8em;
5960
margin-top: 10px;
6061
margin-bottom: 5px;
6162
}
@@ -209,7 +210,7 @@
209210
border: 1px solid #dcdccc;
210211
padding: 1px;
211212
border-radius: 4px;
212-
font-size: 0.6em;
213+
font-size: 0.4em;
213214
}
214215

215216
.todo.TODO {

0 commit comments

Comments
 (0)