File tree 5 files changed +86
-2
lines changed
5 files changed +86
-2
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ gem 'bourbon', '~>3'
6
6
7
7
# For markdown header cleanup
8
8
gem 'sanitize'
9
+
10
+ gem 'wdm' , '~> 0.1.0' if Gem . win_platform?
Original file line number Diff line number Diff line change 12
12
highline (~> 1.6.11 )
13
13
crass (1.0.2 )
14
14
fast-stemmer (1.0.2 )
15
- ffi (1.9.17-x64-mingw32 )
15
+ ffi (1.9.18 )
16
+ ffi (1.9.18-x64-mingw32 )
16
17
highline (1.6.21 )
17
18
hike (1.2.3 )
18
19
jekyll (1.5.1 )
40
41
maruku (0.7.0 )
41
42
mini_portile2 (2.1.0 )
42
43
multi_json (1.12.1 )
43
- nokogiri (1.7.0.1-x64-mingw32 )
44
+ nokogiri (1.7.1 )
45
+ mini_portile2 (~> 2.1.0 )
46
+ nokogiri (1.7.1-x64-mingw32 )
44
47
mini_portile2 (~> 2.1.0 )
45
48
nokogumbo (1.4.10 )
46
49
nokogiri
80
83
yajl-ruby (1.1.0 )
81
84
82
85
PLATFORMS
86
+ ruby
83
87
x64-mingw32
84
88
85
89
DEPENDENCIES
Original file line number Diff line number Diff line change @@ -17,7 +17,28 @@ $columnGutter: 40px;
17
17
$twoColumnWidth : 2 * $columnWidth + $columnGutter ;
18
18
$navHeight : 50px ;
19
19
20
+ // Breakpoints
21
+ $bp-large : 960px ;
22
+ $bp-medium : 640px ;
23
+ $bp-small : 480px ;
20
24
25
+ @mixin bp-small {
26
+ @media (max-width : $bp-small ) {
27
+ @content ;
28
+ }
29
+ }
30
+
31
+ @mixin bp-medium {
32
+ @media (max-width : $bp-medium ) {
33
+ @content ;
34
+ }
35
+ }
36
+
37
+ @mixin bp-large {
38
+ @media (max-width : $bp-large ) {
39
+ @content ;
40
+ }
41
+ }
21
42
22
43
// basic reset
23
44
* {
@@ -764,3 +785,47 @@ div[data-twttr-id] iframe {
764
785
.three-column > ul :first-child {
765
786
margin-left : 20px ;
766
787
}
788
+
789
+ /* Algolia Doc Search */
790
+
791
+ input #algolia-doc-search {
792
+ background : transparent url (' ../img/search.png' ) no-repeat 10px center ;
793
+ background-size : 16px 16px ;
794
+
795
+ position : relative ;
796
+ vertical-align : top ;
797
+ margin-left : 10px ;
798
+ padding : 0 10px ;
799
+ padding-left : 35px ;
800
+ height : 30px ;
801
+ margin-top : 10px ;
802
+ font-size : 16px ;
803
+ line-height : 20px ;
804
+ background-color : #333 ;
805
+ border-radius : 4px ;
806
+ color : white ;
807
+ outline : none ;
808
+ width : 170px ;
809
+
810
+ transition : width .2s ease ;
811
+
812
+ & :focus {
813
+ width : 240px ;
814
+ }
815
+
816
+ @include bp-large {
817
+ background-color : transparent ;
818
+ width : 0 ;
819
+ cursor : pointer ;
820
+
821
+ & :focus {
822
+ width : 200px ;
823
+ background-color : #333 ;
824
+ }
825
+ }
826
+ }
827
+
828
+ .algolia-autocomplete {
829
+ vertical-align : top ;
830
+ height : 53px ;
831
+ }
Original file line number Diff line number Diff line change 17
17
< link rel ="alternate " type ="application/rss+xml " title ="{{ site.name }} " href ="{{ site.url }}/feed.xml " />
18
18
19
19
{% stylesheet main %}
20
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css " />
20
21
21
22
< script type ="text/javascript " src ="//use.typekit.net/vqa1hcx.js "> </ script >
22
23
< script type ="text/javascript "> try { Typekit . load ( ) ; } catch ( e ) { } </ script >
41
42
< img class ="nav-logo " src ="/img/logo.svg " width ="48 " height ="36 ">
42
43
{{ site.name }}
43
44
</ a >
45
+ < input id ="algolia-doc-search " type ="text " placeholder ="Search docs... " />
44
46
< ul class ="nav-site ">
45
47
< li > < a href ="/docs "{% if page.sectionid == 'docs ' and page.id ! = 'tutorial ' and page.id ! = 'download ' %} class ="active "{% endif %} > Docs</ a > </ li >
46
48
< li > < a href ="/getting-started/tutorial.html "{% if page.id == 'tutorial ' %} class ="active "{% endif %} > Tutorial</ a > </ li >
63
65
</ footer >
64
66
</ div >
65
67
68
+ <!-- Algolia search -->
69
+ < script src ="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js "> </ script >
70
+ < script >
71
+ docsearch ( {
72
+ apiKey : 'e9888f8a8af8c16709c02402b15c7695' ,
73
+ indexName : 'reactjs_net' ,
74
+ inputSelector : '#algolia-doc-search' ,
75
+ debug : false // Set debug to true if you want to inspect the dropdown
76
+ } ) ;
77
+ </ script >
78
+
66
79
<!-- Facebook SDK -->
67
80
< div id ="fb-root "> </ div >
68
81
< script > ( function ( d , s , id ) {
You can’t perform that action at this time.
0 commit comments