| 1 |
// CHECKED: |
| 2 |
|
| 3 |
@import "../common/index"; |
| 4 |
|
| 5 |
@keyframes slideDown { |
| 6 |
0% { |
| 7 |
max-height: 0; |
| 8 |
} |
| 9 |
100% { |
| 10 |
max-height: 400px; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
.betterdocs-search-form-wrapper { |
| 15 |
&:not(.betterdocs-elementor, .betterdocs-blocks) { |
| 16 |
border-bottom: 1px solid #f1f1f1; |
| 17 |
} |
| 18 |
background-color: #f7f7f7; |
| 19 |
padding: 50px 20px; |
| 20 |
.betterdocs-live-search { |
| 21 |
width: 100%; |
| 22 |
max-width: 800px; |
| 23 |
display: block; |
| 24 |
margin: 0 auto; |
| 25 |
position: relative; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
.betterdocs-live-search { |
| 30 |
position: relative; |
| 31 |
.docs-search-result { |
| 32 |
background-color: #fff; |
| 33 |
border: 1px solid #f1f1f1; |
| 34 |
min-width: 300px; |
| 35 |
position: absolute; |
| 36 |
top: auto; |
| 37 |
margin: 15px 0 0; |
| 38 |
padding: 0; |
| 39 |
list-style: none; |
| 40 |
max-height: 400px; |
| 41 |
overflow-y: scroll; |
| 42 |
z-index: 999; |
| 43 |
animation: slideDown 400ms ease-in-out; |
| 44 |
li { |
| 45 |
border-bottom: 1px solid #f5f5f5; |
| 46 |
padding: 5px; |
| 47 |
display: flex; |
| 48 |
flex-direction: row; |
| 49 |
img { |
| 50 |
align-self: center; |
| 51 |
width: 80px; |
| 52 |
height: auto; |
| 53 |
} |
| 54 |
span { |
| 55 |
font-size: 0.8em; |
| 56 |
color: #444b54; |
| 57 |
} |
| 58 |
a { |
| 59 |
display: block; |
| 60 |
color: #444; |
| 61 |
padding: 10px; |
| 62 |
white-space: nowrap; |
| 63 |
text-decoration: none; |
| 64 |
} |
| 65 |
|
| 66 |
&:hover { |
| 67 |
background: #f5f5f5; |
| 68 |
} |
| 69 |
&:only-child { |
| 70 |
border: none; |
| 71 |
padding: 15px; |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
.betterdocs-search-heading { |
| 78 |
text-align: center; |
| 79 |
.heading { |
| 80 |
line-height: 1.2; |
| 81 |
font-size: 40px; |
| 82 |
color: #566e8b; |
| 83 |
margin-top: 0px; |
| 84 |
margin-right: 0px; |
| 85 |
margin-bottom: 20px; |
| 86 |
margin-left: 0px; |
| 87 |
} |
| 88 |
.subheading { |
| 89 |
line-height: 1.2; |
| 90 |
font-size: 16px; |
| 91 |
color: #566e8b; |
| 92 |
margin-top: 0px; |
| 93 |
margin-right: 0px; |
| 94 |
margin-bottom: 20px; |
| 95 |
margin-left: 0px; |
| 96 |
} |
| 97 |
} |
| 98 |
|
| 99 |
.betterdocs-searchform { |
| 100 |
width: 100%; |
| 101 |
// Keep the padding and border inside the 100% width; without it the |
| 102 |
// form was 32px wider than its container and scrolled phones sideways. |
| 103 |
box-sizing: border-box; |
| 104 |
display: flex; |
| 105 |
flex-flow: row nowrap; |
| 106 |
align-items: center; |
| 107 |
background: #fff; |
| 108 |
border: 1px solid #f1f1f1; |
| 109 |
position: relative; |
| 110 |
border-radius: 8px; |
| 111 |
padding: 22px 15px; |
| 112 |
@include responsive-below("tablet") { |
| 113 |
flex-direction: column; |
| 114 |
} |
| 115 |
|
| 116 |
svg { |
| 117 |
height: 30px; |
| 118 |
fill: #444b54; |
| 119 |
opacity: 0.5; |
| 120 |
cursor: pointer; |
| 121 |
transition: all 0.3s; |
| 122 |
&.docs-search-icon { |
| 123 |
margin-left: 15px; |
| 124 |
@include responsive-below("tablet") { |
| 125 |
margin-left: 0; |
| 126 |
} |
| 127 |
} |
| 128 |
&.docs-search-loader { |
| 129 |
display: none; |
| 130 |
margin-right: 15px; |
| 131 |
height: 30px; |
| 132 |
} |
| 133 |
&.docs-search-close { |
| 134 |
display: none; |
| 135 |
margin-right: 13px; |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
.betterdocs-search-field { |
| 140 |
width: 100%; |
| 141 |
// Let the field shrink inside the flex row on narrow screens instead |
| 142 |
// of holding its intrinsic width and pushing the box wider. |
| 143 |
min-width: 0; |
| 144 |
background: none; |
| 145 |
color: #595959; |
| 146 |
font-size: 1em; |
| 147 |
padding: 0 15px; |
| 148 |
border: none; |
| 149 |
position: relative; |
| 150 |
outline: 0; |
| 151 |
margin: 0; |
| 152 |
box-shadow: none !important; |
| 153 |
&:focus { |
| 154 |
border: none; |
| 155 |
background: none; |
| 156 |
} |
| 157 |
} |
| 158 |
select { |
| 159 |
appearance: none; |
| 160 |
border: none; |
| 161 |
background-color: transparent; |
| 162 |
border-left: 1px solid #d3d9ef; |
| 163 |
padding-left: 21px; |
| 164 |
padding-right: 21px; |
| 165 |
color: #595959; |
| 166 |
font-weight: normal; |
| 167 |
font-size: 18px; |
| 168 |
line-height: 1.4em; |
| 169 |
max-width: 170px; |
| 170 |
&:not(:focus) { |
| 171 |
outline: none; |
| 172 |
box-shadow: none; |
| 173 |
} |
| 174 |
background-image: url('../../../assets/static/images/select-dropdown.svg'); |
| 175 |
background-repeat: no-repeat, repeat; |
| 176 |
background-position: right .7em top 50%, 0 0; |
| 177 |
background-size: 1.3em auto, 100%; |
| 178 |
|
| 179 |
} |
| 180 |
.betterdocs-search-category { |
| 181 |
@include responsive-below("tablet") { |
| 182 |
max-width: 100%; |
| 183 |
width: 100%; |
| 184 |
border: 1px solid #d3d9ef; |
| 185 |
margin-bottom: 10px; |
| 186 |
height: 50px; |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
.betterdocs-search-submit { |
| 191 |
margin-left: 30px; |
| 192 |
background-color: #24cc8f; |
| 193 |
font-weight: 500; |
| 194 |
font-size: 18px; |
| 195 |
line-height: 24px; |
| 196 |
color: #ffffff; |
| 197 |
font-style: normal; |
| 198 |
border-radius: 7px; |
| 199 |
text-transform: uppercase; |
| 200 |
letter-spacing: 5px; |
| 201 |
padding-right: 25px; |
| 202 |
padding-left: 25px; |
| 203 |
padding-top: 15px; |
| 204 |
padding-bottom: 15px; |
| 205 |
border: none; |
| 206 |
@include responsive-below("tablet") { |
| 207 |
margin-left: 0; |
| 208 |
width: 100%; |
| 209 |
} |
| 210 |
&:hover { |
| 211 |
background-color: #528ffe; |
| 212 |
color: #fff; |
| 213 |
} |
| 214 |
} |
| 215 |
} |
| 216 |
|
| 217 |
.betterdocs-searchform-input-wrap { |
| 218 |
display: flex; |
| 219 |
align-items: center; |
| 220 |
width: 100%; |
| 221 |
@include responsive-below("tablet") { |
| 222 |
// The form is a centred column here; `width: 100%` plus this padding |
| 223 |
// and border made the box 22px wider than the form. Stretch it to the |
| 224 |
// form instead (height is unchanged). |
| 225 |
width: auto; |
| 226 |
align-self: stretch; |
| 227 |
padding: 10px; |
| 228 |
border: 1px solid #d3d9ef; |
| 229 |
margin-bottom: 10px; |
| 230 |
height: 50px; |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
.betterdocs-search-result-wrap { |
| 235 |
position: absolute; |
| 236 |
z-index: 9999; |
| 237 |
width: 100%; |
| 238 |
left: 0; |
| 239 |
bottom: 2px; |
| 240 |
|
| 241 |
&::before { |
| 242 |
border-color: transparent transparent #fff; |
| 243 |
z-index: 9999; |
| 244 |
border-style: solid; |
| 245 |
border-width: 12px; |
| 246 |
content: ""; |
| 247 |
height: 0; |
| 248 |
left: 47px; |
| 249 |
position: absolute; |
| 250 |
top: -8px; |
| 251 |
width: 0; |
| 252 |
} |
| 253 |
|
| 254 |
&.hideArrow::before { |
| 255 |
display: none; |
| 256 |
} |
| 257 |
} |
| 258 |
|
| 259 |
.betterdocs-popular-search-keyword { |
| 260 |
margin-top: 24px; |
| 261 |
display: block; |
| 262 |
.popular-keyword { |
| 263 |
font-size: 14px; |
| 264 |
padding: 8px 25px; |
| 265 |
background-color: #fff; |
| 266 |
border: 1px solid #dddeff; |
| 267 |
color: #99a3ca; |
| 268 |
cursor: pointer; |
| 269 |
display: inline-block; |
| 270 |
} |
| 271 |
.popular-search-title { |
| 272 |
color: #8588a6; |
| 273 |
font-size: 14px; |
| 274 |
font-style: normal; |
| 275 |
font-weight: 500; |
| 276 |
line-height: 20px; |
| 277 |
margin-right: 16px; |
| 278 |
|
| 279 |
@include responsive-below("tablet") { |
| 280 |
margin-right: 0px; |
| 281 |
} |
| 282 |
} |
| 283 |
} |
| 284 |
|