File tree Expand file tree Collapse file tree 4 files changed +74
-11
lines changed Expand file tree Collapse file tree 4 files changed +74
-11
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ hr.small {
83
83
}
84
84
.navbar-custom .nav li a {
85
85
color : white;
86
- padding : 20px ;
86
+ padding : 20px 0px ;
87
+ padding-right : 20px ;
88
+ padding-left : 5px ;
87
89
}
88
90
.navbar-custom .nav li a : hover ,
89
91
.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-right : 20px ;
11
+ padding-bottom : 10px ;
12
+ }
13
+ #searchbox {
14
+ padding-left : 5px ;
15
+ font-size : 90% ;
16
+ }
17
+ .algolia-autocomplete {
18
+ /* Main dropdown wrapper */
19
+ // max-width: 100px;
20
+ }
21
+ .algolia-autocomplete .ds-dropdown-menu {
22
+ // width: 200px;
23
+ }
24
+ .algolia-autocomplete .algolia-docsearch-suggestion--category-header {
25
+ /* Main category (eg. Getting Started) */
26
+ // color: darkgray;
27
+ // border: 1px solid gray;
28
+ }
29
+ .algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
30
+ /* Category (eg. Downloads) */
31
+ // color: gray;
32
+ }
33
+ .algolia-autocomplete .algolia-docsearch-suggestion--title {
34
+ /* Title (eg. Bootstrap CDN) */
35
+ // font-weight: bold;
36
+ // color: black;
37
+ }
38
+ .algolia-autocomplete .algolia-docsearch-suggestion--text {
39
+ /* Description description (eg. Bootstrap currently works...) */
40
+ // font-size: 0.8rem;
41
+ // color: gray;
42
+ }
43
+ .algolia-autocomplete .algolia-docsearch-suggestion--highlight {
44
+ /* Highlighted text */
45
+ // color: blue;
46
+ }
47
+
48
+ /* 改行位置の調整 */
49
+ .ignore-pc {
50
+ displayplay :none ;
51
+ }
52
+ .ignore-sp {
53
+ display :inline ;
54
+ }
13
55
14
56
@media screen and (max-width : 640px ) {
15
57
.ignore-pc {
16
- display :inline ;
58
+ display :inline ;
17
59
}
18
60
.ignore-sp {
19
- display :none ;
61
+ display :none ;
20
62
}
21
63
}
22
64
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