Skip to content

Commit d67326d

Browse files
committed
Mobile Improvements
1 parent 12f561a commit d67326d

File tree

2 files changed

+80
-44
lines changed

2 files changed

+80
-44
lines changed

assets/styles/landing.scss

Lines changed: 75 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,50 @@ main, header {
77
margin-right: auto;
88
}
99

10-
header {
11-
#title {
12-
margin-top: 30px;
13-
font-size: 72px;
14-
width: 100%;
15-
text-align: center;
16-
font-weight: 300;
17-
}
10+
#title {
11+
margin-top: 30px;
12+
font-size: 72px;
13+
width: 100%;
14+
text-align: center;
15+
font-weight: 300;
16+
}
17+
18+
.title-bold {
19+
font-weight: 400;
20+
}
1821

19-
.title-bold {
20-
font-weight: 400;
22+
#headline {
23+
font-size: 24px;
24+
text-align: center;
25+
}
26+
27+
nav {
28+
margin-top: 20px;
29+
text-align: center;
30+
color: #5690fc;
31+
width: auto;
32+
font-size: 28px;
33+
font-weight: 400;
34+
35+
a:hover {
36+
color: $grey-accent;
2137
}
2238

23-
#headline {
24-
font-size: 24px;
25-
text-align: center;
39+
.nav-item {
40+
display: inline-block;
41+
margin-right: 20px;
2642
}
2743

28-
nav {
29-
margin-top: 20px;
30-
text-align: center;
31-
color: #5690fc;
32-
width: auto;
33-
font-size: 28px;
34-
font-weight: 400;
35-
36-
a:hover {
37-
color: $grey-accent;
38-
}
39-
40-
.nav-item {
41-
display: inline-block;
42-
margin-right: 20px;
43-
}
44-
45-
a:last-child .nav-item {
46-
margin-right: 0px;
47-
}
44+
a:last-child .nav-item {
45+
margin-right: 0px;
4846
}
4947
}
5048

5149
#features {
5250
margin-top: 30px;
5351
margin-bottom: 20px;
5452
display: flex;
53+
flex-wrap: wrap;
5554
}
5655

5756
.feature-item {
@@ -81,18 +80,53 @@ header {
8180
#example {
8281
margin-top: 70px;
8382
width: 100%;
83+
}
8484

85-
#ts-declarations, #ts-source {
86-
display: inline-block;
87-
overflow: hidden;
85+
#ts-declarations, #ts-source {
86+
display: inline-block;
87+
overflow: hidden;
88+
}
89+
90+
#ts-declarations {
91+
flex: 40%;
92+
}
93+
94+
#ts-source {
95+
flex: 60%;
96+
border-left: solid 2px #5690fc;
97+
}
98+
99+
@media screen and (max-width: 900px) {
100+
main, header {
101+
width: 100%;
102+
}
103+
104+
nav {
105+
font-size: 24px;
106+
}
107+
108+
#title {
109+
font-size: 42px;
110+
margin-top: 15px;
111+
}
112+
113+
.example-item {
114+
font-size: 9px;
115+
}
116+
117+
#example {
118+
margin-top: 25px;
119+
}
120+
121+
#features {
122+
margin-top: 10px;
88123
}
89124

90-
#ts-declarations {
91-
flex: 40%;
125+
.feature-header {
126+
font-size: 16px;
92127
}
93128

94-
#ts-source {
95-
flex: 60%;
96-
border-left: solid 2px #5690fc;
129+
.feature-item {
130+
flex: 100%;
97131
}
98132
}

assets/styles/play.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ $output-height: 120px;
5151
border-bottom: 1px $grey-accent solid;
5252
}
5353

54-
#editor-ts {
54+
#editor-ts, #editor-lua {
5555
flex: 50%;
5656
}
5757

58-
#editor-lua {
59-
flex: 50%;
58+
@media screen and (max-width: 600px) {
59+
#editor-ts, #editor-lua {
60+
flex: 100%;
61+
}
6062
}
6163

6264
#editor-output {

0 commit comments

Comments
 (0)