-
Notifications
You must be signed in to change notification settings - Fork 16
/
rtd_sphinx_search.css
219 lines (182 loc) · 3.73 KB
/
rtd_sphinx_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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
.search__outer__wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 700;
}
/* Backdrop */
.search__backdrop {
/* Positioning */
position: fixed;
top: 0;
left: 0;
z-index: 500;
/* Display and box model */
width: 100%;
height: 100%;
display: none;
/* Other */
background-color: rgba(0, 0, 0, 0.502);
}
.search__outer {
/* Positioning */
top: 50%;
left: 50%;
transform: translate(
-50%,
-50.1%
); /* -50.1% to prevent fraction of pixel */
position: fixed;
z-index: 100000;
/* Display and box model */
height: 80%;
width: 80%;
max-height: 1000px;
max-width: 1500px;
padding: 10px;
overflow-y: scroll;
/* Other */
border: 1px solid #e0e0e0;
border-radius: 5px;
line-height: 1.875;
background-color: #fcfcfc;
box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.09);
text-align: left;
}
/* Custom scrollbar */
.search__outer::-webkit-scrollbar-track {
border-radius: 10px;
background-color: #fcfcfc;
}
.search__outer::-webkit-scrollbar {
width: 7px;
background-color: #fcfcfc;
}
.search__outer::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #8f8f8f;
}
/* Cross icon on top-right corner */
.search__cross__img {
width: 15px;
height: 15px;
margin: 12px;
}
.search__cross {
position: absolute;
top: 0;
right: 0;
}
.search__cross:hover {
cursor: pointer;
}
/* Input field on search modal */
.search__outer__input {
/* Display and box model */
width: 90%;
height: 30px;
font-size: 19px;
outline: none;
/* Other */
background-color: #fcfcfc;
border: none;
border-bottom: 1px solid #757575;
}
.search__outer__input:focus {
outline: none;
}
/* For material UI style underline on input field */
.search__outer .bar {
position: relative;
display: block;
width: 90%;
margin-bottom: 15px;
}
.search__outer .bar:before,
.search__outer .bar:after {
content: "";
height: 2px;
width: 0;
bottom: 1px;
position: absolute;
background: #5264ae;
transition: 0.2s ease all;
}
.search__outer .bar:before {
left: 50%;
}
.search__outer .bar:after {
right: 50%;
}
.search__outer__input:focus ~ .bar:before,
.search__outer__input:focus ~ .bar:after {
width: 50%;
}
/* Search result */
.search__result__single {
padding: 10px;
border-bottom: 1px solid #e6e6e6;
}
.search__result__box .active {
background-color: rgb(245, 245, 245);
}
.search__result__single:hover {
background-color: rgb(245, 245, 245);
}
.search__result__single a {
text-decoration: none;
cursor: pointer;
}
/* Helper class */
.display-block {
display: block;
animation: fade-in 0.4s;
}
/* Title of each search result */
.search__result__title {
/* Display and box model */
display: inline-block;
font-weight: 500;
margin-bottom: 0;
margin-top: 0;
font-size: 14px;
/* Other */
color: #6ea0ec;
border-bottom: 1px solid #6ea0ec;
}
/* Path of each search result */
.search__result__path {
color: #b3b3b3;
}
/* Content of each search result */
.search__result__content {
text-decoration: none;
color: black;
font-size: 14px;
display: block;
margin-top: 3px;
margin-bottom: 5px;
}
/* Highlighting of matched results */
.search__outer em {
font-style: normal;
}
.search__outer .search__result__title em {
background-color: #e5f6ff;
padding-bottom: 4px;
border-bottom-color: black;
}
.search__outer .search__result__content em {
background-color: #e5f6ff;
border-bottom: 1px solid black;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}