blob: c0e3a8d464b2a159af4723aa8614cc3617c50da2 (
plain)
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
|
/**
* Search - Zola Search - elasticlunr site-wide search
*/
@use "../variables" as variables;
div:empty {
display: none;
}
.stork-close-button {
display: none;
}
.stork-title p {
color: var(--a1);
font-weight: var(--fh);
}
#suggestions {
z-index: 9;
background: var(--c1);
border: 2px solid var(--c3);
position: absolute;
right: 0;
margin-top: var(--s1);
width: 500px;
max-height: 500px;
overflow: auto;
}
#suggestions a, #results a {
display: block;
text-decoration: none;
padding: var(--s1);
margin: 0 var(--s1);
}
#suggestions a:hover,
#suggestions a:focus,
#results a:hover,
#results a:focus {
background: var(--c2);
}
#suggestions span, #results span {
line-height: 1.5;
display: block;
}
#suggestions span:first-child, #results span:first-child {
font-weight: var(--fh);
}
#suggestions span:nth-child(2), #results span:nth-child(2) {
color: var(--f1);
}
nav > div > form > div:last-of-type {//parent div of suggestions div
display: block;
position: relative;
width: 100%;
}
.searchd {
display: flex;
align-items: center;
white-space: nowrap;
}
.searchd > input {
max-width: 15.3rem;
padding-right:2.4rem;//inlayed search icon
}
.searchd > button {
margin-left: -2.4rem;//inlayed search icon
}
@if map-get(variables.$breakpoints, "md") {
@media (max-width: map-get(variables.$breakpoints, "md")) {
.searchd > input {
max-width: 100%;
flex-grow: 1;
}
#suggestions {
position: static;
left: 0;
width: 100%;
}
}
}
|