| 1 |
/* ========================================================================== |
| 2 |
MA Search Widget |
| 3 |
========================================================================== */ |
| 4 |
/* Main Wrapper */ |
| 5 |
.jltma-search-wrapper { |
| 6 |
position: relative; |
| 7 |
width: 100%; |
| 8 |
} |
| 9 |
|
| 10 |
/* ========================================================================== |
| 11 |
Form Type Styles |
| 12 |
========================================================================== */ |
| 13 |
.jltma-search-wrapper-form .jltma-search-form { |
| 14 |
width: 100%; |
| 15 |
} |
| 16 |
.jltma-search-wrapper-form .jltma-search-form .jltma-input-group { |
| 17 |
display: flex; |
| 18 |
flex-wrap: wrap; |
| 19 |
align-items: stretch; |
| 20 |
position: relative; |
| 21 |
width: 100%; |
| 22 |
} |
| 23 |
.jltma-search-wrapper-form .jltma-search-form .jltma-form-control { |
| 24 |
border: 1px solid #e6e6e6; |
| 25 |
box-shadow: none; |
| 26 |
flex: 1 1 0; |
| 27 |
height: 50px; |
| 28 |
text-transform: initial; |
| 29 |
} |
| 30 |
.jltma-search-wrapper-form .jltma-search-form .jltma-form-control:focus { |
| 31 |
border-color: #e6e6e6; |
| 32 |
box-shadow: none; |
| 33 |
outline: 0; |
| 34 |
} |
| 35 |
.jltma-search-wrapper-form .jltma-search-form .jltma-input-group-append { |
| 36 |
display: flex; |
| 37 |
} |
| 38 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit { |
| 39 |
background: #4b00e7; |
| 40 |
border: 0; |
| 41 |
border-left: 1px solid #e6e6e6; |
| 42 |
color: #fff; |
| 43 |
cursor: pointer; |
| 44 |
font-size: 1.125rem; |
| 45 |
line-height: 50px; |
| 46 |
overflow: hidden; |
| 47 |
outline: 0; |
| 48 |
padding: 0 1.5rem; |
| 49 |
text-align: center; |
| 50 |
transition: all 0.25s ease-in-out; |
| 51 |
} |
| 52 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit i, |
| 53 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit .dashicons { |
| 54 |
font-size: 1.5rem; |
| 55 |
display: unset; |
| 56 |
vertical-align: middle; |
| 57 |
} |
| 58 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit .dashicons { |
| 59 |
line-height: inherit; |
| 60 |
} |
| 61 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit svg { |
| 62 |
vertical-align: middle; |
| 63 |
} |
| 64 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit.jltma-text > span:not(.dashicons) { |
| 65 |
margin-left: 0.5rem; |
| 66 |
} |
| 67 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit:hover { |
| 68 |
opacity: 0.85; |
| 69 |
} |
| 70 |
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit:focus { |
| 71 |
outline: 0; |
| 72 |
} |
| 73 |
|
| 74 |
/* ========================================================================== |
| 75 |
Icon Popup Type Styles |
| 76 |
========================================================================== */ |
| 77 |
.jltma-search-wrapper-icon { |
| 78 |
display: inline-block; |
| 79 |
} |
| 80 |
|
| 81 |
/* Main wrap for icon trigger */ |
| 82 |
.jltma-search-main-wrap { |
| 83 |
position: relative; |
| 84 |
display: flex; |
| 85 |
flex-direction: column; |
| 86 |
} |
| 87 |
|
| 88 |
.jltma-search-wrap { |
| 89 |
display: inline-block; |
| 90 |
} |
| 91 |
|
| 92 |
/* Search trigger button */ |
| 93 |
.jltma-btn--search { |
| 94 |
border: 0; |
| 95 |
border-radius: 4px; |
| 96 |
cursor: pointer; |
| 97 |
display: inline-flex; |
| 98 |
align-items: center; |
| 99 |
justify-content: center; |
| 100 |
font-size: 1.25em; |
| 101 |
margin: 0; |
| 102 |
min-height: 44px; |
| 103 |
min-width: 44px; |
| 104 |
padding: 0; |
| 105 |
transition: all 0.25s ease-in-out; |
| 106 |
} |
| 107 |
.jltma-btn--search:hover { |
| 108 |
opacity: 0.85; |
| 109 |
outline: none; |
| 110 |
} |
| 111 |
.jltma-btn--search:focus { |
| 112 |
outline: none; |
| 113 |
} |
| 114 |
.jltma-btn--search i, |
| 115 |
.jltma-btn--search .dashicons { |
| 116 |
color: #fff; |
| 117 |
cursor: pointer; |
| 118 |
} |
| 119 |
.jltma-btn--search .dashicons { |
| 120 |
display: flex; |
| 121 |
align-items: center; |
| 122 |
justify-content: center; |
| 123 |
font-size: 20px; |
| 124 |
width: 44px; |
| 125 |
height: 44px; |
| 126 |
} |
| 127 |
.jltma-btn--search .dashicons::before { |
| 128 |
line-height: 1; |
| 129 |
} |
| 130 |
.jltma-btn--search svg { |
| 131 |
fill: currentColor; |
| 132 |
} |
| 133 |
|
| 134 |
.jltma-btn--hidden { |
| 135 |
pointer-events: none; |
| 136 |
opacity: 0; |
| 137 |
} |
| 138 |
|
| 139 |
/* Search overlay container */ |
| 140 |
.jltma-search { |
| 141 |
display: flex; |
| 142 |
flex-direction: column; |
| 143 |
justify-content: center; |
| 144 |
align-items: center; |
| 145 |
opacity: 0; |
| 146 |
pointer-events: none; |
| 147 |
text-align: center; |
| 148 |
transition: all 0.4s ease; |
| 149 |
} |
| 150 |
.jltma-search.search--open { |
| 151 |
opacity: 1; |
| 152 |
pointer-events: auto; |
| 153 |
} |
| 154 |
|
| 155 |
/* Full-screen overlay when JS is enabled */ |
| 156 |
.js .jltma-search { |
| 157 |
position: fixed; |
| 158 |
z-index: 1000; |
| 159 |
top: 0; |
| 160 |
left: 0; |
| 161 |
width: 100%; |
| 162 |
height: 100vh; |
| 163 |
} |
| 164 |
.js .jltma-search::before { |
| 165 |
content: ""; |
| 166 |
background: rgba(40, 43, 47, 0.9); |
| 167 |
position: absolute; |
| 168 |
top: 0; |
| 169 |
right: 0; |
| 170 |
width: 100%; |
| 171 |
height: 100%; |
| 172 |
opacity: 0; |
| 173 |
transition: opacity 0.5s; |
| 174 |
} |
| 175 |
.js .jltma-search.search--open::before { |
| 176 |
opacity: 1; |
| 177 |
} |
| 178 |
|
| 179 |
/* Close button */ |
| 180 |
.jltma-btn--search-close { |
| 181 |
background: transparent; |
| 182 |
border: 0; |
| 183 |
cursor: pointer; |
| 184 |
height: 50px; |
| 185 |
width: 50px; |
| 186 |
padding: 0; |
| 187 |
position: absolute; |
| 188 |
top: 3.25rem; |
| 189 |
right: 1.25rem; |
| 190 |
z-index: 1001; |
| 191 |
} |
| 192 |
.jltma-btn--search-close .jltma-icon--search { |
| 193 |
width: 50px; |
| 194 |
height: 50px; |
| 195 |
} |
| 196 |
.jltma-btn--search-close:focus { |
| 197 |
border: 0; |
| 198 |
outline: 0; |
| 199 |
} |
| 200 |
.jltma-btn--search-close:hover { |
| 201 |
opacity: 0.8; |
| 202 |
} |
| 203 |
|
| 204 |
/* Popup search form */ |
| 205 |
.jltma-search__form { |
| 206 |
margin: 5em 0; |
| 207 |
position: relative; |
| 208 |
width: 75%; |
| 209 |
max-width: 800px; |
| 210 |
z-index: 999; |
| 211 |
} |
| 212 |
|
| 213 |
.jltma-search__input { |
| 214 |
background: transparent; |
| 215 |
border: 0; |
| 216 |
border-bottom: 5px solid #fff; |
| 217 |
border-radius: 0; |
| 218 |
color: #fff; |
| 219 |
font-size: 6rem; |
| 220 |
line-height: 1; |
| 221 |
width: 100%; |
| 222 |
padding: 0; |
| 223 |
-webkit-appearance: none; |
| 224 |
appearance: none; |
| 225 |
} |
| 226 |
.jltma-search__input:focus { |
| 227 |
outline: none; |
| 228 |
} |
| 229 |
.jltma-search__input::placeholder { |
| 230 |
color: rgba(255, 255, 255, 0.7); |
| 231 |
} |
| 232 |
.jltma-search__input::-webkit-input-placeholder { |
| 233 |
color: rgba(255, 255, 255, 0.7); |
| 234 |
} |
| 235 |
.jltma-search__input::-moz-placeholder { |
| 236 |
color: rgba(255, 255, 255, 0.7); |
| 237 |
} |
| 238 |
.jltma-search__input:-ms-input-placeholder { |
| 239 |
color: rgba(255, 255, 255, 0.7); |
| 240 |
} |
| 241 |
|
| 242 |
.jltma-search__info { |
| 243 |
color: #fdfdfd; |
| 244 |
display: block; |
| 245 |
font-size: 15px; |
| 246 |
font-weight: bold; |
| 247 |
margin: 0 auto; |
| 248 |
padding: 0.85em 0; |
| 249 |
text-align: center; |
| 250 |
width: 100%; |
| 251 |
} |
| 252 |
|
| 253 |
/* ========================================================================== |
| 254 |
Transitions |
| 255 |
========================================================================== */ |
| 256 |
.js .main-wrap { |
| 257 |
position: relative; |
| 258 |
transition: transform 0.5s; |
| 259 |
} |
| 260 |
|
| 261 |
.js .main-wrap--move .jltma-btn--search { |
| 262 |
pointer-events: none; |
| 263 |
opacity: 0; |
| 264 |
} |
| 265 |
|
| 266 |
/* ========================================================================== |
| 267 |
Responsive Styles |
| 268 |
========================================================================== */ |
| 269 |
@media screen and (max-width: 768px) { |
| 270 |
.jltma-search__input { |
| 271 |
font-size: 3rem; |
| 272 |
} |
| 273 |
.jltma-search__form { |
| 274 |
width: 90%; |
| 275 |
} |
| 276 |
} |
| 277 |
@media screen and (max-width: 480px) { |
| 278 |
.jltma-search__input { |
| 279 |
font-size: 2rem; |
| 280 |
border-bottom-width: 3px; |
| 281 |
} |
| 282 |
.jltma-btn--search-close { |
| 283 |
top: 1.5rem; |
| 284 |
right: 1rem; |
| 285 |
height: 40px; |
| 286 |
width: 40px; |
| 287 |
} |
| 288 |
.jltma-btn--search-close .jltma-icon--search { |
| 289 |
width: 40px; |
| 290 |
height: 40px; |
| 291 |
} |
| 292 |
} |