File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 21
21
window . DEPLOY_URL = ''
22
22
window . process = { env : { } }
23
23
</ script >
24
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@docsearch/css@3 "/>
24
25
</ head >
25
26
26
27
< body class ="of-hidden ">
27
28
< div id ="header "> </ div >
28
29
< app-root > </ app-root >
29
30
< div id ="app " class ="wp100 hp100 pt60 of-hidden "> </ div >
31
+ < div class ="search-box "> </ div >
32
+ < script src ="https://cdn.jsdelivr.net/npm/@docsearch/js@3 "> </ script >
33
+ < script type ="text/javascript ">
34
+ docsearch ( {
35
+ appId : "AGPA5UXHMH" ,
36
+ apiKey : "5fa09fc20270efa61d68e2c2eb0f56df" ,
37
+ indexName : "opentiny" ,
38
+ container : ".search-box" ,
39
+ debug : false
40
+ } ) ;
41
+ </ script >
30
42
<!-- prettier-ignore -->
31
43
< script id ="tinyui-design-common " src ="/static/js/design-common.js "> </ script >
32
44
< script type ="module " src ="./src/main.js "> </ script >
Original file line number Diff line number Diff line change @@ -25,3 +25,57 @@ b, strong {
25
25
.tiny-grid td , .tiny-grid th {
26
26
vertical-align : middle;
27
27
}
28
+
29
+ /* Algolia 搜索 */
30
+
31
+ .search-box {
32
+ position : absolute;
33
+ z-index : 1000 ;
34
+ top : 12px ;
35
+ left : 360px ;
36
+ }
37
+
38
+ .DocSearch-Button {
39
+ border-radius : 6px ;
40
+ transition : 0.4s
41
+ }
42
+
43
+ .DocSearch-Button : hover {
44
+ box-shadow : inset 0 0 0 1px # 1476ff ;
45
+ background-color : # f5f5f5 ;
46
+ }
47
+
48
+ .DocSearch-Button .DocSearch-Search-Icon {
49
+ width : 14px ;
50
+ }
51
+
52
+ .DocSearch-Button-Placeholder {
53
+ color : # 969faf ;
54
+ }
55
+
56
+ : root {
57
+ --docsearch-primary-color : # 1476ff ;
58
+ --docsearch-searchbox-background : # f5f5f5 ;
59
+ }
60
+
61
+ @media screen and (max-width : 1023px ) {
62
+ .search-box {
63
+ left : 420px ;
64
+ }
65
+ }
66
+
67
+ @media screen and (max-width : 768px ) {
68
+ .DocSearch-Modal {
69
+ margin-top : 60px ;
70
+ }
71
+
72
+ .search-box {
73
+ left : 360px ;
74
+ }
75
+ }
76
+
77
+ @media screen and (max-width : 430px ) {
78
+ .search-box {
79
+ left : 300px ;
80
+ }
81
+ }
Original file line number Diff line number Diff line change 11
11
:data =" menuOptions"
12
12
:menu-collapsible =" true"
13
13
:filter-node-method =" searchMenu"
14
+ :show-filter =" false"
14
15
@current-change =" clickMenu"
15
16
@collapse-change =" collapseChange"
16
17
>
You can’t perform that action at this time.
0 commit comments