| 1 |
/*! |
| 2 |
* |
| 3 |
* React FontIconPicker |
| 4 |
* |
| 5 |
* React Component to show a picker element to pick font-icons & svg |
| 6 |
* |
| 7 |
* @author Swashata Ghosh <swashata@wpquark.com> |
| 8 |
* @version 1.2.0 |
| 9 |
* @link https://github.com/fontIconPicker/react-fonticonpicker |
| 10 |
* @license MIT |
| 11 |
* |
| 12 |
* Copyright (c) 2018 Swashata Ghosh <swashata@wpquark.com> |
| 13 |
* |
| 14 |
* This software is released under the MIT License. |
| 15 |
* https://opensource.org/licenses/MIT |
| 16 |
* |
| 17 |
*/ |
| 18 |
@font-face { |
| 19 |
font-family: fontIconPicker; |
| 20 |
src: url(../fonts/fontIconPicker.ttf) format("truetype"), |
| 21 |
url(../fonts/fontIconPicker.woff) format("woff"), |
| 22 |
url(../fonts/fontIconPicker.svg#fontIconPicker) format("svg"); |
| 23 |
font-weight: 400; |
| 24 |
font-style: normal; |
| 25 |
} |
| 26 |
[class*=" fipicon-"], |
| 27 |
[class^="fipicon-"] { |
| 28 |
font-family: fontIconPicker !important; |
| 29 |
speak: none; |
| 30 |
font-style: normal; |
| 31 |
font-weight: 400; |
| 32 |
font-variant: normal; |
| 33 |
text-transform: none; |
| 34 |
line-height: 1; |
| 35 |
-webkit-font-smoothing: antialiased; |
| 36 |
-moz-osx-font-smoothing: grayscale; |
| 37 |
} |
| 38 |
.fipicon-angle-left:before { |
| 39 |
content: "\F104"; |
| 40 |
} |
| 41 |
.fipicon-angle-right:before { |
| 42 |
content: "\F105"; |
| 43 |
} |
| 44 |
.fipicon-angle-up:before { |
| 45 |
content: "\F106"; |
| 46 |
} |
| 47 |
.fipicon-angle-down:before { |
| 48 |
content: "\002B"; |
| 49 |
} |
| 50 |
.rfipbtn, |
| 51 |
.rfipdropdown { |
| 52 |
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, |
| 53 |
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; |
| 54 |
font-size: 14px; |
| 55 |
line-height: 1.71429; |
| 56 |
vertical-align: baseline; |
| 57 |
} |
| 58 |
.rfipbtn, |
| 59 |
.rfipbtn *, |
| 60 |
.rfipdropdown, |
| 61 |
.rfipdropdown * { |
| 62 |
margin: 0; |
| 63 |
padding: 0; |
| 64 |
-webkit-box-sizing: border-box; |
| 65 |
box-sizing: border-box; |
| 66 |
} |
| 67 |
.rfipbtn input, |
| 68 |
.rfipbtn select, |
| 69 |
.rfipdropdown input, |
| 70 |
.rfipdropdown select { |
| 71 |
font-size: 14px; |
| 72 |
} |
| 73 |
.rfip { |
| 74 |
position: relative; |
| 75 |
display: inline-block; |
| 76 |
margin: 8px; |
| 77 |
vertical-align: middle; |
| 78 |
} |
| 79 |
.rfipbtn { |
| 80 |
width: 136px; |
| 81 |
display: -webkit-box; |
| 82 |
display: -ms-flexbox; |
| 83 |
display: flex; |
| 84 |
-webkit-box-orient: horizontal; |
| 85 |
-webkit-box-direction: normal; |
| 86 |
-ms-flex-flow: row nowrap; |
| 87 |
flex-flow: row nowrap; |
| 88 |
min-height: 50px; |
| 89 |
border-radius: 2px; |
| 90 |
cursor: pointer; |
| 91 |
-webkit-transition: border-color 0.25s, -webkit-box-shadow 0.25s; |
| 92 |
transition: border-color 0.25s, -webkit-box-shadow 0.25s; |
| 93 |
transition: box-shadow 0.25s, border-color 0.25s; |
| 94 |
transition: box-shadow 0.25s, border-color 0.25s, -webkit-box-shadow 0.25s; |
| 95 |
outline: 0 none; |
| 96 |
-webkit-user-select: none; |
| 97 |
-moz-user-select: none; |
| 98 |
-ms-user-select: none; |
| 99 |
user-select: none; |
| 100 |
} |
| 101 |
.rfipbtn--open { |
| 102 |
border-radius: 2px 2px 0 0; |
| 103 |
} |
| 104 |
.rfipbtn__button { |
| 105 |
width: 48px; |
| 106 |
margin-left: auto; |
| 107 |
display: -webkit-box; |
| 108 |
display: -ms-flexbox; |
| 109 |
display: flex; |
| 110 |
-webkit-box-align: center; |
| 111 |
-ms-flex-align: center; |
| 112 |
align-items: center; |
| 113 |
-webkit-box-pack: center; |
| 114 |
-ms-flex-pack: center; |
| 115 |
justify-content: center; |
| 116 |
height: auto; |
| 117 |
-webkit-transition: background 0.25s, -webkit-box-shadow 0.25s; |
| 118 |
transition: background 0.25s, -webkit-box-shadow 0.25s; |
| 119 |
transition: background 0.25s, box-shadow 0.25s; |
| 120 |
transition: background 0.25s, box-shadow 0.25s, -webkit-box-shadow 0.25s; |
| 121 |
border-top-right-radius: 6px; |
| 122 |
border-bottom-right-radius: 6px; |
| 123 |
} |
| 124 |
.rfipbtn__button i { |
| 125 |
height: 100%; |
| 126 |
font-size: 26px; |
| 127 |
-webkit-transition: -webkit-transform 0.25s; |
| 128 |
transition: -webkit-transform 0.25s; |
| 129 |
transition: transform 0.25s; |
| 130 |
transition: transform 0.25s, -webkit-transform 0.25s; |
| 131 |
} |
| 132 |
/* .rfipbtn__button--open i { */ |
| 133 |
/* -webkit-transform: rotate(-180deg); */ |
| 134 |
/* transform: rotate(-180deg); */ |
| 135 |
/* } */ |
| 136 |
.rfipbtn__current { |
| 137 |
display: -webkit-box; |
| 138 |
display: -ms-flexbox; |
| 139 |
display: flex; |
| 140 |
-webkit-box-orient: horizontal; |
| 141 |
-webkit-box-direction: normal; |
| 142 |
-ms-flex-flow: row nowrap; |
| 143 |
flex-flow: row nowrap; |
| 144 |
-webkit-box-align: center; |
| 145 |
-ms-flex-align: center; |
| 146 |
align-items: center; |
| 147 |
-webkit-box-pack: center; |
| 148 |
-ms-flex-pack: center; |
| 149 |
justify-content: center; |
| 150 |
-webkit-box-flex: 0; |
| 151 |
-ms-flex: 0 0 86px; |
| 152 |
flex: 0 0 86px; |
| 153 |
padding: 2px; |
| 154 |
} |
| 155 |
.rfipbtn--multi { |
| 156 |
width: 258px; |
| 157 |
} |
| 158 |
.rfipbtn--multi .rfipbtn__current { |
| 159 |
-ms-flex-flow: row wrap; |
| 160 |
flex-flow: row wrap; |
| 161 |
-webkit-box-pack: start; |
| 162 |
-ms-flex-pack: start; |
| 163 |
justify-content: flex-start; |
| 164 |
-ms-flex-preferred-size: 212px; |
| 165 |
flex-basis: 212px; |
| 166 |
-ms-flex-line-pack: center; |
| 167 |
align-content: center; |
| 168 |
} |
| 169 |
.rfipbtn--multi .rfipbtn__current, |
| 170 |
.rfipbtn__icon { |
| 171 |
-webkit-box-orient: horizontal; |
| 172 |
-webkit-box-direction: normal; |
| 173 |
} |
| 174 |
.rfipbtn__icon { |
| 175 |
margin: 2px; |
| 176 |
padding: 0; |
| 177 |
height: 28px; |
| 178 |
width: 48px; |
| 179 |
display: -webkit-box; |
| 180 |
display: -ms-flexbox; |
| 181 |
display: flex; |
| 182 |
-ms-flex-flow: row nowrap; |
| 183 |
flex-flow: row nowrap; |
| 184 |
-webkit-box-align: center; |
| 185 |
-ms-flex-align: center; |
| 186 |
align-items: center; |
| 187 |
-webkit-box-pack: justify; |
| 188 |
-ms-flex-pack: justify; |
| 189 |
justify-content: space-between; |
| 190 |
border-radius: 2px; |
| 191 |
} |
| 192 |
.rfipbtn__icon--empty { |
| 193 |
font-size: 14px; |
| 194 |
line-height: 16px; |
| 195 |
margin-left: 8px; |
| 196 |
text-align: center; |
| 197 |
text-transform: lowercase; |
| 198 |
font-style: italic; |
| 199 |
} |
| 200 |
.rfipbtn__elm { |
| 201 |
display: -webkit-box; |
| 202 |
display: -ms-flexbox; |
| 203 |
display: flex; |
| 204 |
height: 28px; |
| 205 |
width: 28px; |
| 206 |
-webkit-box-align: center; |
| 207 |
-ms-flex-align: center; |
| 208 |
align-items: center; |
| 209 |
-webkit-box-pack: center; |
| 210 |
-ms-flex-pack: center; |
| 211 |
justify-content: center; |
| 212 |
font-size: 18px; |
| 213 |
} |
| 214 |
.rfipbtn__elm img, |
| 215 |
.rfipbtn__elm svg { |
| 216 |
height: 18px; |
| 217 |
width: auto; |
| 218 |
} |
| 219 |
.rfipbtn__del { |
| 220 |
width: 18px; |
| 221 |
display: -webkit-box; |
| 222 |
display: -ms-flexbox; |
| 223 |
display: flex; |
| 224 |
height: 28px; |
| 225 |
-webkit-box-align: center; |
| 226 |
-ms-flex-align: center; |
| 227 |
align-items: center; |
| 228 |
-webkit-box-pack: center; |
| 229 |
-ms-flex-pack: center; |
| 230 |
justify-content: center; |
| 231 |
-webkit-transition: background-color 0.25s; |
| 232 |
transition: background-color 0.25s; |
| 233 |
cursor: pointer; |
| 234 |
} |
| 235 |
.rfipcategory { |
| 236 |
width: 100%; |
| 237 |
margin: 0 0 8px; |
| 238 |
position: relative; |
| 239 |
} |
| 240 |
.rfipcategory select { |
| 241 |
width: 100%; |
| 242 |
display: block; |
| 243 |
height: 32px; |
| 244 |
line-height: 32px; |
| 245 |
border-radius: 0; |
| 246 |
-webkit-appearance: none; |
| 247 |
-moz-appearance: none; |
| 248 |
appearance: none; |
| 249 |
-webkit-transition: border 0.25s, -webkit-box-shadow 0.25s; |
| 250 |
transition: border 0.25s, -webkit-box-shadow 0.25s; |
| 251 |
transition: border 0.25s, box-shadow 0.25s; |
| 252 |
transition: border 0.25s, box-shadow 0.25s, -webkit-box-shadow 0.25s; |
| 253 |
background-color: transparent !important; |
| 254 |
} |
| 255 |
.rfipcategory i { |
| 256 |
position: absolute; |
| 257 |
right: 2px; |
| 258 |
top: 0; |
| 259 |
font-size: 16px; |
| 260 |
line-height: 32px; |
| 261 |
z-index: -1; |
| 262 |
} |
| 263 |
.rfipdropdown { |
| 264 |
width: 352px; |
| 265 |
position: absolute; |
| 266 |
left: 0; |
| 267 |
margin-top: -1px; |
| 268 |
z-index: 100000001; |
| 269 |
border-radius: 0 1px 4px 4px; |
| 270 |
} |
| 271 |
.rfipdropdown__selector { |
| 272 |
overflow: hidden; |
| 273 |
padding: 16px; |
| 274 |
} |
| 275 |
.rfipdropdown.fipappear-enter-active .rfipdropdown__selector, |
| 276 |
.rfipdropdown.fipappear-exit-active .rfipdropdown__selector { |
| 277 |
-webkit-transition: max-height 0.3s ease-out, padding 0.3s ease-out; |
| 278 |
transition: max-height 0.3s ease-out, padding 0.3s ease-out; |
| 279 |
padding: 16px; |
| 280 |
} |
| 281 |
.rfipicons__pager { |
| 282 |
display: -webkit-box; |
| 283 |
display: -ms-flexbox; |
| 284 |
display: flex; |
| 285 |
-webkit-box-orient: horizontal; |
| 286 |
-webkit-box-direction: normal; |
| 287 |
-ms-flex-flow: row nowrap; |
| 288 |
flex-flow: row nowrap; |
| 289 |
height: 24px; |
| 290 |
line-height: 24px; |
| 291 |
-webkit-box-align: center; |
| 292 |
-ms-flex-align: center; |
| 293 |
align-items: center; |
| 294 |
margin-bottom: 8px; |
| 295 |
} |
| 296 |
.rfipicons__num { |
| 297 |
width: 100px; |
| 298 |
margin-right: auto; |
| 299 |
} |
| 300 |
.rfipicons__cp { |
| 301 |
width: 32px; |
| 302 |
height: 24px; |
| 303 |
line-height: 24px; |
| 304 |
text-align: right; |
| 305 |
} |
| 306 |
.rfipicons__cp, |
| 307 |
.rfipicons__sp, |
| 308 |
.rfipicons__tp { |
| 309 |
margin-right: 8px; |
| 310 |
} |
| 311 |
.rfipicons__arrow { |
| 312 |
margin-left: auto; |
| 313 |
width: 56px; |
| 314 |
display: -webkit-box; |
| 315 |
display: -ms-flexbox; |
| 316 |
display: flex; |
| 317 |
-webkit-box-orient: horizontal; |
| 318 |
-webkit-box-direction: normal; |
| 319 |
-ms-flex-flow: row nowrap; |
| 320 |
flex-flow: row nowrap; |
| 321 |
-webkit-box-pack: end; |
| 322 |
-ms-flex-pack: end; |
| 323 |
justify-content: flex-end; |
| 324 |
-webkit-box-align: center; |
| 325 |
-ms-flex-align: center; |
| 326 |
align-items: center; |
| 327 |
height: 24px; |
| 328 |
-webkit-user-select: none; |
| 329 |
-moz-user-select: none; |
| 330 |
-ms-user-select: none; |
| 331 |
user-select: none; |
| 332 |
} |
| 333 |
.rfipicons__right { |
| 334 |
margin-left: auto; |
| 335 |
} |
| 336 |
.rfipicons__left, |
| 337 |
.rfipicons__right { |
| 338 |
cursor: pointer; |
| 339 |
width: 24px; |
| 340 |
height: 24px; |
| 341 |
position: relative; |
| 342 |
-webkit-transition: background-color 0.25s, border 0.25s; |
| 343 |
transition: background-color 0.25s, border 0.25s; |
| 344 |
outline: 0 none; |
| 345 |
border-radius: 2px; |
| 346 |
font-size: 18px; |
| 347 |
} |
| 348 |
.rfipicons__label { |
| 349 |
height: 22px; |
| 350 |
width: 22px; |
| 351 |
display: -webkit-box; |
| 352 |
display: -ms-flexbox; |
| 353 |
display: flex; |
| 354 |
-webkit-box-align: center; |
| 355 |
-ms-flex-align: center; |
| 356 |
align-items: center; |
| 357 |
-webkit-box-pack: center; |
| 358 |
-ms-flex-pack: center; |
| 359 |
justify-content: center; |
| 360 |
} |
| 361 |
.rfipicons__label img { |
| 362 |
height: 18px; |
| 363 |
width: 18px; |
| 364 |
} |
| 365 |
.rfipicons__selector { |
| 366 |
-webkit-box-flex: 1; |
| 367 |
-ms-flex: 1 1 20%; |
| 368 |
flex: 1 1 20%; |
| 369 |
-webkit-box-orient: horizontal; |
| 370 |
-webkit-box-direction: normal; |
| 371 |
-ms-flex-flow: row wrap; |
| 372 |
flex-flow: row wrap; |
| 373 |
-ms-flex-line-pack: center; |
| 374 |
align-content: center; |
| 375 |
-webkit-box-pack: start; |
| 376 |
-ms-flex-pack: start; |
| 377 |
justify-content: flex-start; |
| 378 |
} |
| 379 |
.rfipicons__ibox, |
| 380 |
.rfipicons__selector { |
| 381 |
display: -webkit-box; |
| 382 |
display: -ms-flexbox; |
| 383 |
display: flex; |
| 384 |
} |
| 385 |
.rfipicons__ibox { |
| 386 |
-webkit-box-align: center; |
| 387 |
-ms-flex-align: center; |
| 388 |
align-items: center; |
| 389 |
-webkit-box-pack: center; |
| 390 |
-ms-flex-pack: center; |
| 391 |
justify-content: center; |
| 392 |
height: 100%; |
| 393 |
width: 100%; |
| 394 |
-webkit-transition: background-color 0.25s, border 0.25s; |
| 395 |
transition: background-color 0.25s, border 0.25s; |
| 396 |
border-radius: 2px; |
| 397 |
outline: 0 none; |
| 398 |
font-size: 20px; |
| 399 |
} |
| 400 |
.rfipicons__ibox img, |
| 401 |
.rfipicons__ibox svg { |
| 402 |
max-height: 24px; |
| 403 |
width: auto; |
| 404 |
} |
| 405 |
.rfipicons__ibox > * { |
| 406 |
-webkit-transform: scale(1); |
| 407 |
transform: scale(1); |
| 408 |
-webkit-transition: -webkit-transform 0.25s; |
| 409 |
transition: -webkit-transform 0.25s; |
| 410 |
transition: transform 0.25s; |
| 411 |
transition: transform 0.25s, -webkit-transform 0.25s; |
| 412 |
-webkit-transform-origin: center; |
| 413 |
transform-origin: center; |
| 414 |
} |
| 415 |
.rfipicons__ibox:hover > * { |
| 416 |
-webkit-transform: scale(1.8); |
| 417 |
transform: scale(1.8); |
| 418 |
} |
| 419 |
.rfipicons__ibox--error { |
| 420 |
text-transform: lowercase; |
| 421 |
font-style: italic; |
| 422 |
} |
| 423 |
.rfipicons__icon { |
| 424 |
width: 20%; |
| 425 |
height: 64px; |
| 426 |
padding: 1px; |
| 427 |
display: -webkit-box; |
| 428 |
display: -ms-flexbox; |
| 429 |
display: flex; |
| 430 |
-webkit-box-align: center; |
| 431 |
-ms-flex-align: center; |
| 432 |
align-items: center; |
| 433 |
-webkit-box-pack: center; |
| 434 |
-ms-flex-pack: center; |
| 435 |
justify-content: center; |
| 436 |
cursor: pointer; |
| 437 |
} |
| 438 |
.rfipicons__icon--error { |
| 439 |
display: block; |
| 440 |
padding: 16px; |
| 441 |
text-align: center; |
| 442 |
font-size: 24px; |
| 443 |
width: 100%; |
| 444 |
line-height: 1; |
| 445 |
} |
| 446 |
.rfipsearch { |
| 447 |
width: 100%; |
| 448 |
margin: 0 0 8px; |
| 449 |
} |
| 450 |
.rfipsearch input { |
| 451 |
width: 100%; |
| 452 |
display: block; |
| 453 |
height: 32px; |
| 454 |
line-height: 32px; |
| 455 |
} |
| 456 |
|