Skip to content

Commit 6fc9530

Browse files
committed
update website for mobile
1 parent 2a9420e commit 6fc9530

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

docs/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<title>NeoCortexAPI</title>
6+
<meta name="viewport" content="width=device-width,initial-scale=1">
67
<link href="./style.css" type="text/css" rel="stylesheet">
78
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
89
</head>

docs/style.css

+14-11
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,16 @@ a {
137137

138138
.navigation {
139139
display: flex;
140-
flex-direction: row;
141-
flex-wrap: wrap;
142-
justify-content: space-between;
140+
flex-direction: column;
141+
flex-wrap: nowrap;
142+
flex-grow: 1;
143+
143144
align-items: center;
144145
margin: 1rem;
145146
}
147+
.navigation > * {
148+
width: 100%;
149+
}
146150

147151
.tile {
148152
border: solid 0.08rem #d3d3d3;
@@ -170,11 +174,9 @@ a {
170174

171175
.furtherinfo {
172176
display: flex;
173-
flex-direction: row;
174-
flex-wrap: wrap;
175-
justify-content: space-between;
177+
flex-direction: column;
178+
176179
margin-bottom: 2rem;
177-
align-items: center;
178180
width: 90%;
179181
}
180182

@@ -191,18 +193,19 @@ a {
191193
font-size: 2rem;
192194
}
193195

194-
@media (max-width: 750px) {
196+
@media screen and (min-width: 750px) {
195197
.navigation {
196-
flex-direction: column;
198+
flex-direction: row;
199+
justify-content: space-between;
197200
}
198201

199202
.tile {
200203
width: 50%;
201204
}
202205

203206
.furtherinfo {
204-
flex-direction: column;
205-
align-items: center;
207+
flex-direction: row;
208+
justify-content: space-between;
206209
}
207210

208211
.gifexample {

0 commit comments

Comments
 (0)