File tree Expand file tree Collapse file tree 4 files changed +71
-11
lines changed Expand file tree Collapse file tree 4 files changed +71
-11
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ hr.small {
83
83
}
84
84
.navbar-custom .nav li a {
85
85
color : white;
86
- padding : 20px ;
86
+ padding : 20px 15 px ;
87
87
}
88
88
.navbar-custom .nav li a : hover ,
89
89
.navbar-custom .nav li a : focus {
Original file line number Diff line number Diff line change 1
1
@import " bootstrap-sprockets" ;
2
2
@import " bootstrap" ;
3
3
4
- // Customized by YassLab
4
+ // Customized by YassLab team
5
5
6
- /* 改行位置の調整*/
7
- .ignore-pc {
8
- display :none ;
9
- }
10
- .ignore-sp {
11
- display :inline ;
12
- }
6
+ /* DocSearch by Algolia */
7
+ .search {
8
+ padding-top : 17px ;
9
+ padding-left : 15px ;
10
+ padding-bottom : 10px ;
11
+ }
12
+ #searchbox {
13
+ padding-left : 5px ;
14
+ font-size : 90% ;
15
+ }
16
+ .algolia-autocomplete {
17
+ /* Main dropdown wrapper */
18
+ // max-width: 100px;
19
+ }
20
+ .algolia-autocomplete .ds-dropdown-menu {
21
+ // width: 200px;
22
+ }
23
+ .algolia-autocomplete .algolia-docsearch-suggestion--category-header {
24
+ /* Main category (eg. Getting Started) */
25
+ // color: darkgray;
26
+ // border: 1px solid gray;
27
+ }
28
+ .algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
29
+ /* Category (eg. Downloads) */
30
+ // color: gray;
31
+ }
32
+ .algolia-autocomplete .algolia-docsearch-suggestion--title {
33
+ /* Title (eg. Bootstrap CDN) */
34
+ // font-weight: bold;
35
+ // color: black;
36
+ }
37
+ .algolia-autocomplete .algolia-docsearch-suggestion--text {
38
+ /* Description description (eg. Bootstrap currently works...) */
39
+ // font-size: 0.8rem;
40
+ // color: gray;
41
+ }
42
+ .algolia-autocomplete .algolia-docsearch-suggestion--highlight {
43
+ /* Highlighted text */
44
+ // color: blue;
45
+ }
46
+
47
+ /* 改行位置の調整 */
48
+ .ignore-pc {
49
+ displayplay :none ;
50
+ }
51
+ .ignore-sp {
52
+ display :inline ;
53
+ }
13
54
14
55
@media screen and (max-width : 640px ) {
15
56
.ignore-pc {
16
- display :inline ;
57
+ display :inline ;
17
58
}
18
59
.ignore-sp {
19
- display :none ;
60
+ display :none ;
20
61
}
21
62
}
22
63
Original file line number Diff line number Diff line change 54
54
/[if lt IE 9]
55
55
<script src=" https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" ></script>
56
56
<script src=" https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" ></script>
57
+
58
+ / at the end of the HEAD
59
+ %link{:href => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" , :rel => " stylesheet" }/
60
+
57
61
%body
58
62
- flash.each do |message_type, message|
59
63
%div{:class => " alert alert-#{ message_type } " }= message
60
64
= yield
61
65
= scrivito_body_tags if using_scrivito?
62
66
= render 'shared/footer'
67
+ / at the end of the BODY
68
+ %script{:src => " https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" ,
69
+ :type => " text/javascript" }
70
+ :javascript
71
+ docsearch({
72
+ apiKey: '315da3c406c3fa374a0696590f4821a3',
73
+ indexName: 'coderdojo',
74
+ inputSelector: '#searchbox',
75
+ debug: false // Set debug to true if you want to inspect the dropdown
76
+ });
77
+
63
78
#fb-root
64
79
:javascript
65
80
(function (d , s , id ) {
Original file line number Diff line number Diff line change 13
13
/ Collect the nav links, forms, and other content for toggling
14
14
#bs-example-navbar-collapse-1.collapse.navbar-collapse
15
15
%ul.nav.navbar-nav.navbar-right
16
+ %li.search
17
+ %input#searchbox{ :placeholder => " 🔍 検索" , :type => " text" }
18
+ #hits
19
+ #pagination
16
20
%li
17
21
%a{:href => " #README" } はじめに
18
22
%li
You can’t perform that action at this time.
0 commit comments