File tree Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
import { Link } from 'gatsby' ;
2
2
import React from 'react' ;
3
3
import HeaderLinks from '../../../components/HeaderLinks' ;
4
+ import Search from '../../../components/Search' ;
4
5
import Prism from '../../../components/Prism' ;
5
6
6
7
@@ -11,6 +12,7 @@ const Hero = () => {
11
12
< header aria-hidden >
12
13
< section >
13
14
< HeaderLinks />
15
+ < Search searchID = "hero-search-input" />
14
16
</ section >
15
17
</ header >
16
18
< section className = "intro" >
Original file line number Diff line number Diff line change 23
23
margin-top : 10px ;
24
24
outline : none ;
25
25
padding : 0 10px 0 35px ;
26
- width : 180 px ;
26
+ width : 160 px ;
27
27
transition : width 0.2s ease-out ;
28
28
29
- & :focus {
30
- width : 250px ;
29
+ @media screen and (min-width : 1076px ) {
30
+ & :focus {
31
+ width : 190px ;
32
+ }
33
+ }
34
+ @media screen and (min-width : 1065px ) and (max-width : 1075px ) {
35
+ & :focus {
36
+ width : 180px ;
37
+ }
38
+ }
39
+ @media screen and (min-width : 1021px ) and (max-width : 1064px ) {
40
+ width : 135px ;
31
41
}
32
42
}
33
43
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ div.index {
18
18
}
19
19
}
20
20
21
- .fixedSearch {
22
- position : fixed ;
23
- right : 0 ;
24
- left : 0 ;
25
- z-index : 12 ;
26
- pointer-events : none ;
27
- }
28
-
29
21
.hero {
30
22
background : @dark-color ;
31
23
@media screen and (min-width : 1020px ) {
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import Layout from "../components/Layout"
3
3
4
- import Search from "../components/Search"
5
-
6
4
import Hero from "../Containers/Sections/Hero"
7
5
import SingleRequest from "../Containers/Sections/SingleRequest"
8
6
import TypeSystem from "../Containers/Sections/TypeSystem"
@@ -15,9 +13,6 @@ import WhosUsing from "../Containers/Sections/WhosUsing"
15
13
export default ( { pageContext } ) => {
16
14
return (
17
15
< Layout className = { "index" } title = "GraphQL | A query language for your API" pageContext = { pageContext } >
18
- < section className = "fixedSearch" >
19
- < Search searchID = "hero-search-input" />
20
- </ section >
21
16
< Hero />
22
17
< section className = "lead" >
23
18
< h1 > A query language for your API</ h1 >
You can’t perform that action at this time.
0 commit comments