-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsearch.css
155 lines (154 loc) · 3.21 KB
/
search.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
.local-search {
position: absolute;
text-align: left;
display:inline-block;
margin-bottom: 0px;
right:10%;
}
.local-search-input-cls {
width: 200px;
/* margin: 10px 0; */
padding: 8px 12px;
border-radius: 4px;
border: 2px solid #5ad1ed;
color: #666;
font-size: 14px
}
.local-search-input-cls::-webkit-input-placeholder {
color: #2d2626;
}
.local-search-input-cls::-moz-input-placeholder {
color: #2d2626;
}
.local-search-input-cls::-ms-input-placeholder {
color: #2d2626;
}
#local-search-close {
content:'x';
position: absolute;
right: 10px;
top: 10px;
background: #fff;
color: #888;
border-radius: 100%;
line-height: 16px;
text-align: center;
font-size: 16px;
font-family: consolas;
border: 1px solid #ccc;
display: block;
width: 20px;
height: 20px;
cursor: pointer;
font-style: normal;
font-weight: 400;
transform: rotateZ(0);
transition: all .3s
}
#local-search-close:hover {
border-color: #666;
color: #222;
transform: rotateZ(180deg);
transition: all .3s
}
.local-search-result-cls {
position: absolute;
z-index: 99;
width: 400px;
/* top: 50px; */
right: -16px;
}
.local-search-result-cls .local-search-empty {
color: #888;
line-height: 44px;
text-align: center;
display: block;
font-size: 16px;
font-weight: 400
}
.local-search-result-cls ul {
width: 360px;
max-height: 450px;
min-height: 0;
height: auto;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 3px 4px 10px #7dc3d8;
margin-top: 20px;
}
.local-search-result-cls ul li {
text-align: left;
border-bottom: 1px solid #bdb7b7;
padding-bottom: 20px;
margin-bottom: 20px;
line-height: 30px;
font-weight: 400
}
.local-search-result-cls ul li:last-child {
border-bottom: none;
margin-bottom: 0
}
.local-search-result-cls ul li a {
margin-top: 20px;
font-size: 16px;
text-decoration:none;
transition: all .3s
}
.local-search-result-cls ul li a:hover {
text-decoration:underline;
}
.local-search-result-cls ul li p {
margin-top: 10px;
font-size: 14px;
max-height: 124px;
overflow: hidden
}
.local-search-result-cls ul li em.search-keyword {
color: #e58c7c;
font-weight:bold;
}
.local-search-plugin .local-search-input-cls {
opacity: .6;
width: 160px;
transition: all .3s
}
.local-search-plugin .local-search-input-cls:hover {
opacity: 1;
width: 200px;
transition: all .3s
}
.local-search-plugin .icon {
position: relative;
left: -30px;
color: #999;
cursor: pointer
}
/* 手机端 */
@media screen and (max-width:800px) {
.local-search {
display:none;
/* right: -5%; */
}
.local-search-plugin .local-search-input-cls {
opacity: .6;
width: 100px;
transition: all .3s;
}
.local-search-result-cls {
right: 2px;
}
.local-search-result-cls ul {
width: 360px;
max-height: 400px;
min-height: 0;
height: auto;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 3px 4px 10px #7dc3d8;
margin-top: 20px;
}
}