|
1 | | -.o-search { |
| 1 | +#search { |
2 | 2 | width: 100%; |
3 | | - height: 6rem; |
4 | 3 | display: flex; |
5 | 4 | z-index: 6; |
6 | 5 |
|
7 | 6 | @media print { |
8 | 7 | display: none; |
9 | 8 | } |
10 | 9 |
|
11 | | - &--contentpage { |
12 | | - position: sticky; |
13 | | - display: none; |
14 | | - top: 10vh; |
15 | | - opacity: 0; |
16 | | - visibility: hidden; |
17 | | - transition: opacity 0.5s ease; |
| 10 | + .pagefind-ui__search-input, |
| 11 | + .pagefind-ui__message { |
| 12 | + font-family: "Roboto", Arial, Helvetica, sans-serif; |
| 13 | + font-weight: 400; |
18 | 14 | } |
19 | 15 |
|
20 | | - &--show { |
21 | | - display: block; |
22 | | - opacity: 1; |
23 | | - visibility: visible; |
24 | | - z-index: 6; |
| 16 | + .pagefind-ui__message { |
| 17 | + padding: 1rem; |
25 | 18 | } |
26 | 19 |
|
27 | | - .pagefind-ui__search-input, |
28 | | - .pagefind-ui__message, |
29 | | - .pagefind-ui__search-clear { |
30 | | - font-family: "Roboto", Arial, Helvetica, sans-serif; |
| 20 | + .pagefind-ui__results-area { |
| 21 | + margin-top: 0; |
| 22 | + } |
| 23 | + |
| 24 | + .pagefind-ui__results li:last-child { |
| 25 | + border-bottom: none; |
31 | 26 | } |
32 | 27 |
|
33 | 28 | input.pagefind-ui__search-input { |
34 | 29 | z-index: 6; |
35 | 30 | outline: 0.2rem solid transparent; |
36 | 31 | border: var(--border); |
37 | 32 | box-shadow: var(--box-shadow); |
| 33 | + border-radius: var(--border-radius-l); |
38 | 34 |
|
39 | 35 | @include focus-indicator(0.2rem); |
40 | 36 |
|
41 | 37 | &::placeholder { |
42 | 38 | opacity: 0.7; |
43 | 39 | color: var(--color-body); |
44 | 40 | } |
| 41 | + |
| 42 | + // This selector is used to identify if search results are visible |
| 43 | + &:has( |
| 44 | + + .pagefind-ui__search-clear |
| 45 | + + .pagefind-ui__drawer |
| 46 | + .pagefind-ui__results-area |
| 47 | + ) { |
| 48 | + border-radius: var(--border-radius-l) var(--border-radius-l) 0 0; |
| 49 | + } |
45 | 50 | } |
46 | 51 |
|
47 | 52 | button.pagefind-ui__search-clear { |
48 | | - z-index: 6; |
49 | | - height: auto; |
50 | | - padding: 1rem; |
51 | | - top: 1rem; |
52 | | - margin-right: 0.7rem; |
| 53 | + display: none; |
53 | 54 | } |
54 | 55 |
|
55 | 56 | .pagefind-ui__suppressed { |
|
62 | 63 |
|
63 | 64 | .pagefind-ui__drawer { |
64 | 65 | background-color: var(--bg-default); |
65 | | - padding: 0 1rem 1rem 1rem; |
| 66 | + padding: 0 1rem; |
66 | 67 | overscroll-behavior: contain; |
67 | | - height: 35rem; |
68 | | - top: 0.4rem; |
69 | 68 | overflow-y: scroll; |
70 | | - position: relative; |
71 | | - border-radius: var(--pagefind-ui-border-radius); |
| 69 | + position: absolute; |
| 70 | + top: 6.2rem; |
| 71 | + width: 100%; |
72 | 72 | z-index: 6; |
| 73 | + max-height: 50vh; |
| 74 | + border: var(--border); |
| 75 | + } |
| 76 | + |
| 77 | + .pagefind-ui__result { |
| 78 | + padding: 2rem 0; |
| 79 | + margin: 0 1rem; |
| 80 | + border-top: 2px solid grey; |
| 81 | + } |
| 82 | + |
| 83 | + .pagefind-ui__result-inner, |
| 84 | + .pagefind-ui__result-thumb { |
| 85 | + margin-top: 0; |
73 | 86 | } |
74 | 87 |
|
75 | 88 | .pagefind-ui__result-link { |
|
113 | 126 | } |
114 | 127 | } |
115 | 128 | } |
| 129 | + |
| 130 | +.o-search { |
| 131 | + &--contentpage { |
| 132 | + position: absolute; |
| 133 | + display: none; |
| 134 | + opacity: 0; |
| 135 | + visibility: hidden; |
| 136 | + transition: opacity 0.5s ease; |
| 137 | + } |
| 138 | + |
| 139 | + &--show { |
| 140 | + display: block; |
| 141 | + opacity: 1; |
| 142 | + visibility: visible; |
| 143 | + z-index: 6; |
| 144 | + } |
| 145 | +} |
0 commit comments