Skip to content

Commit bf5746b

Browse files
committed
Improved views for mobile
1 parent cdde833 commit bf5746b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/css/main.styl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ html, body
207207
opacity 0
208208
position absolute
209209

210+
.starwars-example-wrapper
211+
+below(600px)
212+
margin-bottom 30px
213+
210214
.starwars-example
211215
background: #3C3C3C
212216
display inline-block
@@ -237,6 +241,9 @@ html, body
237241
transform translateY(-3px)
238242
box-shadow 0px 4px 8px 0px rgba(0,0,0,0.32)
239243

244+
+below(600px)
245+
top -70px
246+
240247
.improve-document-link
241248
position fixed
242249
right 0
@@ -390,6 +397,7 @@ $title
390397
display none
391398

392399
.docs-aside-navselect
400+
margin-top -18px
393401
display none
394402
width 100%
395403
+below(600px)

docs/pages/docs/_template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import _ from 'lodash';
44

55
class Template extends React.Component {
66
goToPage(event) {
7+
event.target.blur();
78
var page = event.target.value;
89
this.context.router.transitionTo(page);
910
}

docs/pages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
path: /
33
---
4-
<div><a class="starwars-example" href="http://swapi.graphene-python.org/">Check our Django Starwars API example!</a></div>
4+
<div class="starwars-example-wrapper"><a class="starwars-example" href="http://swapi.graphene-python.org/">Check our Django Starwars API example!</a></div>
55

66
## Meet Graphene
77

0 commit comments

Comments
 (0)