Skip to content

Commit 475f700

Browse files
committed
Don't use flexbox for <main> on mobile
1 parent 62e94d9 commit 475f700

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

css/raw.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ a:hover {
3737
}
3838
}
3939
40+
main.-landing {
41+
display: flex;
42+
flex-direction: row;
43+
width: 100vw;
44+
height: 100%;
45+
min-height: 100vh;
46+
}
4047
.landing-header {
4148
width: 43vw;
4249
}
@@ -51,6 +58,20 @@ a:hover {
5158
.book-title {
5259
margin: 10px 0 20px 0;
5360
}
61+
62+
main.-landing {
63+
display: block;
64+
height: auto;
65+
min-height: auto;
66+
}
67+
68+
.by-authors {
69+
margin-bottom: 10px;
70+
}
71+
72+
.landing-main {
73+
padding-top: 20px;
74+
}
5475
}
5576
5677
.ripple-ball {

pages/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,7 @@ class Index extends Component {
122122
The GraphQL Guide
123123
</title>
124124
</Head>
125-
<main
126-
className="-landing"
127-
style={{
128-
display: 'flex',
129-
flexDirection: 'row',
130-
flexWrap: 'wrap',
131-
width: '100vw',
132-
}}
133-
>
125+
<main className="-landing">
134126
<Paper
135127
className="landing-header"
136128
zDepth={2}
@@ -191,6 +183,7 @@ class Index extends Component {
191183
</h2>
192184
</div>
193185
<div
186+
className="by-authors"
194187
style={{
195188
display: 'flex',
196189
alignItems: 'center',
@@ -226,6 +219,7 @@ class Index extends Component {
226219
</div>
227220
</Paper>
228221
<section
222+
className="landing-main"
229223
style={{
230224
display: 'flex',
231225
flex: '1',

0 commit comments

Comments
 (0)