jetpack-carousel-rtl.css
2 years ago
jetpack-carousel.css
3 years ago
jetpack-carousel.js
2 years ago
jetpack-carousel.php
2 years ago
readme.md
5 years ago
swiper-bundle.css
5 years ago
swiper-bundle.js
4 years ago
jetpack-carousel.css
1057 lines
| 1 | :root { |
| 2 | --jp-carousel-primary-color: #fff; |
| 3 | --jp-carousel-primary-subtle-color: #999; |
| 4 | --jp-carousel-bg-color: #000; |
| 5 | --jp-carousel-bg-faded-color: #222; |
| 6 | --jp-carousel-border-color: #3a3a3a; |
| 7 | } |
| 8 | |
| 9 | :root .jp-carousel-light { |
| 10 | --jp-carousel-primary-color: #000; |
| 11 | --jp-carousel-primary-subtle-color: #646970; |
| 12 | --jp-carousel-bg-color: #fff; |
| 13 | --jp-carousel-bg-faded-color: #fbfbfb; |
| 14 | --jp-carousel-border-color: #dcdcde; |
| 15 | } |
| 16 | |
| 17 | .jp-carousel-overlay .swiper-button-prev, |
| 18 | .jp-carousel-overlay .swiper-container-rtl .swiper-button-next, |
| 19 | .jp-carousel-overlay .swiper-button-next, |
| 20 | .jp-carousel-overlay .swiper-container-rtl .swiper-button-prev { |
| 21 | background-image: none; |
| 22 | } |
| 23 | /* end of temporary fix */ |
| 24 | |
| 25 | [data-carousel-extra]:not( .jp-carousel-wrap ) img, [data-carousel-extra]:not( .jp-carousel-wrap ) img + figcaption { |
| 26 | cursor: pointer; |
| 27 | } |
| 28 | |
| 29 | .jp-carousel-wrap * { |
| 30 | line-height: inherit; |
| 31 | } |
| 32 | |
| 33 | .jp-carousel-wrap.swiper-container { |
| 34 | height: auto; |
| 35 | width: 100vw; |
| 36 | } |
| 37 | |
| 38 | .jp-carousel-overlay .swiper-zoom-container { |
| 39 | background-size: 200%; |
| 40 | background-repeat: no-repeat; |
| 41 | background-position: center; |
| 42 | } |
| 43 | |
| 44 | /* |
| 45 | To prevent flash of prev/next image scale transition after pinch zoom we need to hide them. |
| 46 | Swiper does not add a class of `swiper-slide-zoomed` to slides on pinch and zoom |
| 47 | so we have to target all affected elements in touch devices. |
| 48 | */ |
| 49 | .jp-carousel-overlay .swiper-slide.swiper-slide-prev .swiper-zoom-container img, |
| 50 | .jp-carousel-overlay .swiper-slide.swiper-slide-next .swiper-zoom-container img { |
| 51 | transition: none !important; |
| 52 | } |
| 53 | |
| 54 | .jp-carousel-overlay .swiper-button-prev, |
| 55 | .jp-carousel-overlay .swiper-button-next { |
| 56 | opacity: 0.5; |
| 57 | transition: 0.5s opacity ease-out; |
| 58 | height: initial; |
| 59 | width: initial; |
| 60 | padding: 20px 40px; |
| 61 | background-image: none; |
| 62 | } |
| 63 | |
| 64 | .jp-carousel-overlay .swiper-button-prev:hover, |
| 65 | .jp-carousel-overlay .swiper-button-next:hover { |
| 66 | opacity: 1; |
| 67 | } |
| 68 | |
| 69 | .jp-carousel-overlay .swiper-button-next:after, |
| 70 | .jp-carousel-overlay .swiper-container-rtl .swiper-button-next:after, |
| 71 | .jp-carousel-overlay .swiper-button-prev:after, |
| 72 | .jp-carousel-overlay .swiper-container-rtl .swiper-button-prev:after { |
| 73 | content: none; |
| 74 | } |
| 75 | |
| 76 | .jp-carousel-overlay .swiper-button-prev svg, |
| 77 | .jp-carousel-overlay .swiper-button-next svg { |
| 78 | height: 30px; |
| 79 | width: 28px; |
| 80 | background: var(--jp-carousel-bg-color); |
| 81 | border-radius: 4px; |
| 82 | } |
| 83 | |
| 84 | .jp-carousel-overlay .swiper-button-prev svg:hover, |
| 85 | .jp-carousel-overlay .swiper-button-next svg:hover { |
| 86 | background: var(--jp-carousel-primary-subtle-color); |
| 87 | } |
| 88 | |
| 89 | .jp-carousel-overlay { |
| 90 | font-family: 'Helvetica Neue', sans-serif !important; |
| 91 | z-index: 2147483647; |
| 92 | overflow-x: hidden; |
| 93 | overflow-y: auto; |
| 94 | direction: ltr; |
| 95 | position: fixed; |
| 96 | top: 0; |
| 97 | right: 0; |
| 98 | bottom: 0; |
| 99 | left: 0; |
| 100 | background: var(--jp-carousel-bg-color); |
| 101 | } |
| 102 | |
| 103 | .jp-carousel-overlay * { |
| 104 | box-sizing: border-box; |
| 105 | } |
| 106 | |
| 107 | /* Fix for Twenty Nineteen theme compatibility */ |
| 108 | .jp-carousel-overlay h1:before, |
| 109 | .jp-carousel-overlay h2:before, |
| 110 | .jp-carousel-overlay h3:before { |
| 111 | content: none; |
| 112 | display: none; |
| 113 | } |
| 114 | |
| 115 | .jp-carousel-overlay .swiper-container .swiper-button-prev { |
| 116 | left: 0; |
| 117 | right: auto; |
| 118 | } |
| 119 | |
| 120 | .jp-carousel-overlay .swiper-container .swiper-button-next { |
| 121 | right: 0; |
| 122 | left: auto; |
| 123 | } |
| 124 | |
| 125 | .jp-carousel-overlay .swiper-container.swiper-container-rtl .swiper-button-prev, |
| 126 | .jp-carousel-overlay .swiper-container.swiper-container-rtl .swiper-button-next { |
| 127 | transform: scaleX( -1 ); |
| 128 | } |
| 129 | |
| 130 | .jp-carousel-container { |
| 131 | display: grid; |
| 132 | grid-template-rows: 1fr 64px; /* 1. main carousel, 2. info area as footer */ |
| 133 | height: 100%; |
| 134 | } |
| 135 | |
| 136 | .jp-carousel-hide-controls .jp-carousel-container { |
| 137 | grid-template-rows: 1fr; |
| 138 | } |
| 139 | |
| 140 | .jp-carousel-hide-controls .swiper-wrapper { |
| 141 | margin-top: -32px; /* Compensate for the remove of the height of the info bar. */ |
| 142 | } |
| 143 | |
| 144 | |
| 145 | .jp-carousel-hide-controls .jp-swiper-button-next, |
| 146 | .jp-carousel-hide-controls .jp-swiper-button-prev { |
| 147 | margin-top: -54px; /* The height of the info bar plus any top padding on the nav button itself. */ |
| 148 | } |
| 149 | |
| 150 | .jp-carousel-msg { |
| 151 | font-family: 'Open Sans', sans-serif; |
| 152 | font-style: normal; |
| 153 | display: inline-block; |
| 154 | line-height: 19px; |
| 155 | padding: 11px 15px; |
| 156 | font-size: 14px; |
| 157 | text-align: center; |
| 158 | margin: 25px 20px 0 2px; |
| 159 | background-color: var(--jp-carousel-primary-color); |
| 160 | border-left: 4px solid #ffba00; |
| 161 | -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); |
| 162 | box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); |
| 163 | } |
| 164 | |
| 165 | .jp-carousel-info { |
| 166 | display: flex; |
| 167 | flex-direction: column; |
| 168 | text-align: left !important; |
| 169 | -webkit-font-smoothing: subpixel-antialiased !important; |
| 170 | z-index: 100; |
| 171 | background-color: var(--jp-carousel-bg-color); |
| 172 | transition: opacity 200ms ease-out; |
| 173 | opacity: 1; |
| 174 | } |
| 175 | |
| 176 | .jp-carousel-hide-controls .jp-carousel-info { |
| 177 | visibility: hidden; |
| 178 | height: 0; |
| 179 | overflow: hidden; |
| 180 | } |
| 181 | |
| 182 | .jp-carousel-info-footer { |
| 183 | position: relative; |
| 184 | background-color: var(--jp-carousel-bg-color); |
| 185 | height: 64px; |
| 186 | display: flex; |
| 187 | align-items: center; |
| 188 | justify-content: space-between; |
| 189 | width: 100vw; |
| 190 | } |
| 191 | |
| 192 | .jp-carousel-info-extra { |
| 193 | display: none; |
| 194 | background-color: var(--jp-carousel-bg-color); |
| 195 | padding: 35px; |
| 196 | width: 100vw; |
| 197 | border-top: 1px solid var(--jp-carousel-bg-faded-color); |
| 198 | } |
| 199 | |
| 200 | .jp-carousel-title-and-caption { |
| 201 | margin-bottom: 15px; |
| 202 | } |
| 203 | |
| 204 | .jp-carousel-info-extra.jp-carousel-show { |
| 205 | display: block; |
| 206 | } |
| 207 | |
| 208 | .jp-carousel-info ::selection { |
| 209 | background: var(--jp-carousel-primary-color); /* Safari */ |
| 210 | color: var(--jp-carousel-primary-color); |
| 211 | } |
| 212 | |
| 213 | .jp-carousel-info ::-moz-selection { |
| 214 | background: var(--jp-carousel-primary-color); /* Firefox */ |
| 215 | color: var(--jp-carousel-primary-color); |
| 216 | } |
| 217 | |
| 218 | .jp-carousel-photo-info { |
| 219 | left: 0 !important; |
| 220 | width: 100% !important; |
| 221 | } |
| 222 | |
| 223 | .jp-carousel-comments-wrapper { |
| 224 | padding: 0; |
| 225 | width: 100% !important; |
| 226 | display: none; |
| 227 | } |
| 228 | |
| 229 | .jp-carousel-comments-wrapper.jp-carousel-show { |
| 230 | display: block; |
| 231 | } |
| 232 | |
| 233 | .jp-carousel-comments-wrapper > .jp-carousel-photo-info { |
| 234 | display: none; |
| 235 | } |
| 236 | |
| 237 | .jp-carousel-transitions .jp-carousel-photo-info { |
| 238 | -webkit-transition: 400ms ease-out; |
| 239 | -moz-transition: 400ms ease-out; |
| 240 | -o-transition: 400ms ease-out; |
| 241 | transition: 400ms ease-out; |
| 242 | } |
| 243 | |
| 244 | .jp-carousel-buttons { |
| 245 | margin: -18px -20px 15px; |
| 246 | padding: 8px 10px; |
| 247 | border-bottom: 1px solid #222; |
| 248 | background: #222; |
| 249 | text-align: center; |
| 250 | } |
| 251 | |
| 252 | div.jp-carousel-buttons a { |
| 253 | border: none !important; |
| 254 | color: var(--jp-carousel-primary-subtle-color); |
| 255 | font: normal 11px/1.2em 'Helvetica Neue', sans-serif !important; |
| 256 | letter-spacing: 0 !important; |
| 257 | padding: 5px 2px 5px 0; |
| 258 | text-decoration: none !important; |
| 259 | text-shadow: none !important; |
| 260 | vertical-align: middle; |
| 261 | -webkit-font-smoothing: subpixel-antialiased; |
| 262 | } |
| 263 | |
| 264 | div.jp-carousel-buttons a:hover { |
| 265 | color: var(--jp-carousel-primary-color); |
| 266 | border: none !important; |
| 267 | } |
| 268 | |
| 269 | .jp-carousel-transitions div.jp-carousel-buttons a:hover { |
| 270 | -webkit-transition: none !important; |
| 271 | -moz-transition: none !important; |
| 272 | -o-transition: none !important; |
| 273 | transition: none !important; |
| 274 | } |
| 275 | |
| 276 | .jp-carousel-slide, |
| 277 | .jp-carousel-slide img { |
| 278 | -webkit-transform: translate3d( 0, 0, 0 ); |
| 279 | -moz-transform: translate3d( 0, 0, 0 ); |
| 280 | -o-transform: translate3d( 0, 0, 0 ); |
| 281 | -ms-transform: translate3d( 0, 0, 0 ); |
| 282 | transform: translate3d( 0, 0, 0 ); |
| 283 | } |
| 284 | |
| 285 | .jp-carousel-close-hint { |
| 286 | cursor: default; |
| 287 | letter-spacing: 0 !important; |
| 288 | position: fixed; |
| 289 | top: 20px; |
| 290 | right: 30px; |
| 291 | padding: 10px; |
| 292 | text-align: right; |
| 293 | width: 45px; |
| 294 | height: 45px; |
| 295 | z-index: 15; |
| 296 | color: var(--jp-carousel-primary-color); |
| 297 | cursor: pointer; |
| 298 | transition: opacity 200ms ease-out; |
| 299 | } |
| 300 | |
| 301 | .jp-carousel-transitions .jp-carousel-close-hint { |
| 302 | -webkit-transition: color 200ms linear; |
| 303 | -moz-transition: color 200ms linear; |
| 304 | -o-transition: color 200ms linear; |
| 305 | transition: color 200ms linear; |
| 306 | } |
| 307 | |
| 308 | .jp-carousel-close-hint svg { |
| 309 | padding: 3px 2px; |
| 310 | background: var(--jp-carousel-bg-color); |
| 311 | border-radius: 4px; |
| 312 | } |
| 313 | |
| 314 | .jp-carousel-close-hint svg:hover { |
| 315 | background: var(--jp-carousel-primary-subtle-color); |
| 316 | } |
| 317 | |
| 318 | .jp-carousel-close-hint:hover { |
| 319 | color: var(--jp-carousel-primary-color); |
| 320 | } |
| 321 | |
| 322 | .jp-carousel-close-hint:hover span { |
| 323 | border-color: var(--jp-carousel-primary-color); |
| 324 | } |
| 325 | |
| 326 | /** Pagination Start **/ |
| 327 | .jp-carousel-pagination-container { |
| 328 | flex: 1; |
| 329 | margin: 0 15px 0 35px; |
| 330 | } |
| 331 | |
| 332 | .jp-swiper-pagination, |
| 333 | .jp-carousel-pagination { |
| 334 | color: var(--jp-carousel-primary-color); |
| 335 | font-size: 15px; /* same as .jp-carousel-info-footer .jp-carousel-photo-title */ |
| 336 | font-weight: normal; |
| 337 | white-space: nowrap; |
| 338 | display: none; |
| 339 | position: static !important; |
| 340 | } |
| 341 | |
| 342 | .jp-carousel-pagination-container .swiper-pagination { |
| 343 | text-align: left; |
| 344 | line-height: 8px; |
| 345 | } |
| 346 | |
| 347 | .jp-carousel-pagination { |
| 348 | padding-left: 5px; |
| 349 | } |
| 350 | |
| 351 | .jp-swiper-pagination .swiper-pagination-bullet { |
| 352 | background: var(--jp-carousel-primary-subtle-color); |
| 353 | margin: 0 4px; |
| 354 | } |
| 355 | |
| 356 | .jp-swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active { |
| 357 | background: var(--jp-carousel-primary-color); |
| 358 | } |
| 359 | |
| 360 | .jp-swiper-pagination .swiper-pagination-bullet:not( .swiper-pagination-bullet-active ) { |
| 361 | background: var(--jp-carousel-primary-color); |
| 362 | opacity: 0.5; |
| 363 | } |
| 364 | /** Pagination End **/ |
| 365 | |
| 366 | /** Title and Desc Start **/ |
| 367 | .jp-carousel-info-footer .jp-carousel-photo-title-container { |
| 368 | flex-basis: 50vw; |
| 369 | flex: 4; |
| 370 | justify-content: center; |
| 371 | overflow: hidden; |
| 372 | margin: 0; |
| 373 | } |
| 374 | |
| 375 | .jp-carousel-photo-title, |
| 376 | .jp-carousel-photo-caption { |
| 377 | background: none !important; |
| 378 | border: none !important; |
| 379 | display: inline-block; |
| 380 | font: normal 20px/1.3em 'Helvetica Neue', sans-serif; |
| 381 | line-height: normal; |
| 382 | letter-spacing: 0 !important; |
| 383 | margin: 0 0 10px 0; |
| 384 | padding: 0; |
| 385 | overflow: hidden; |
| 386 | text-shadow: none !important; |
| 387 | text-transform: none !important; |
| 388 | color: var(--jp-carousel-primary-color); |
| 389 | } |
| 390 | |
| 391 | .jp-carousel-info-footer .jp-carousel-photo-caption { |
| 392 | text-align: center; |
| 393 | font-size: 15px; /* same as .jp-carousel-pagination */ |
| 394 | white-space: nowrap; |
| 395 | color: var(--jp-carousel-primary-subtle-color); |
| 396 | cursor: pointer; |
| 397 | margin: 0; |
| 398 | text-overflow: ellipsis; |
| 399 | } |
| 400 | |
| 401 | .jp-carousel-info-footer .jp-carousel-photo-caption p { |
| 402 | margin: 0; |
| 403 | } |
| 404 | |
| 405 | .jp-carousel-photo-title { |
| 406 | font-size: 32px; |
| 407 | margin-bottom: 2px; |
| 408 | } |
| 409 | |
| 410 | .jp-carousel-photo-description { |
| 411 | color: var(--jp-carousel-primary-subtle-color); |
| 412 | font-size: 16px; |
| 413 | margin: 25px 0; |
| 414 | width: 100%; |
| 415 | } |
| 416 | |
| 417 | .jp-carousel-photo-description { |
| 418 | overflow: hidden; |
| 419 | overflow-wrap: break-word; |
| 420 | } |
| 421 | |
| 422 | .jp-carousel-photo-description p { |
| 423 | color: var(--jp-carousel-primary-subtle-color); |
| 424 | line-height: 1.4; |
| 425 | margin-bottom: 0; |
| 426 | } |
| 427 | |
| 428 | .jp-carousel-photo-description p a, |
| 429 | .jp-carousel-comments p a, |
| 430 | .jp-carousel-info h2 a { |
| 431 | color: var(--jp-carousel-primary-color) !important; |
| 432 | border: none !important; |
| 433 | text-decoration: underline !important; |
| 434 | font-weight: normal !important; |
| 435 | font-style: normal !important; |
| 436 | } |
| 437 | |
| 438 | .jp-carousel-photo-description p strong, |
| 439 | .jp-carousel-photo-description p b { |
| 440 | font-weight: bold; |
| 441 | color: var(--jp-carousel-primary-subtle-color); |
| 442 | } |
| 443 | |
| 444 | .jp-carousel-photo-description p em, |
| 445 | .jp-carousel-photo-description p i { |
| 446 | font-style: italic; |
| 447 | color: var(--jp-carousel-primary-subtle-color); |
| 448 | } |
| 449 | |
| 450 | .jp-carousel-photo-description p a:hover, |
| 451 | .jp-carousel-comments p a:hover, |
| 452 | .jp-carousel-info h2 a:hover { |
| 453 | color: var(--jp-carousel-primary-subtle-color) !important; |
| 454 | } |
| 455 | |
| 456 | .jp-carousel-photo-description p:empty { |
| 457 | display: none; |
| 458 | } |
| 459 | |
| 460 | .jp-carousel-photo-info h1:before, |
| 461 | .jp-carousel-photo-info h1:after, |
| 462 | .jp-carousel-comments-wrapper h1:before, |
| 463 | .jp-carousel-comments-wrapper h1:after { |
| 464 | content: none !important; |
| 465 | } |
| 466 | |
| 467 | .jp-carousel-caption { |
| 468 | font-size: 14px; |
| 469 | font-weight: normal; |
| 470 | margin: 0; |
| 471 | } |
| 472 | |
| 473 | /** Title and Desc End **/ |
| 474 | |
| 475 | /** Meta Box Start **/ |
| 476 | .jp-carousel-image-meta { |
| 477 | color: var(--jp-carousel-primary-color); |
| 478 | font-size: 13px; |
| 479 | font: 12px/1.4 'Helvetica Neue', sans-serif !important; |
| 480 | width: 100%; |
| 481 | display: none; |
| 482 | } |
| 483 | |
| 484 | .jp-carousel-image-meta.jp-carousel-show { |
| 485 | display: block; |
| 486 | } |
| 487 | |
| 488 | .jp-carousel-image-meta li, |
| 489 | .jp-carousel-image-meta h5 { |
| 490 | font-family: 'Helvetica Neue', sans-serif !important; |
| 491 | position: inherit !important; |
| 492 | top: auto !important; |
| 493 | right: auto !important; |
| 494 | left: auto !important; |
| 495 | bottom: auto !important; |
| 496 | background: none !important; |
| 497 | border: none !important; |
| 498 | font-weight: 400 !important; |
| 499 | line-height: 1.3em !important; |
| 500 | } |
| 501 | |
| 502 | .jp-carousel-image-meta ul { |
| 503 | margin: 0 !important; |
| 504 | padding: 0 !important; |
| 505 | list-style: none !important; |
| 506 | } |
| 507 | |
| 508 | .jp-carousel-image-meta li { |
| 509 | width: 48% !important; |
| 510 | display: inline-block !important; |
| 511 | vertical-align: top !important; |
| 512 | margin: 0 2% 15px 0 !important; |
| 513 | color: var(--jp-carousel-primary-color) !important; |
| 514 | font-size: 13px !important; |
| 515 | } |
| 516 | |
| 517 | .jp-carousel-image-meta h5 { |
| 518 | color: var(--jp-carousel-primary-subtle-color) !important; |
| 519 | text-transform: uppercase !important; |
| 520 | font-size: 10px !important; |
| 521 | margin: 0 0 2px !important; |
| 522 | letter-spacing: 0.1em !important; |
| 523 | } |
| 524 | |
| 525 | a.jp-carousel-image-download { |
| 526 | display: inline-block; |
| 527 | clear: both; |
| 528 | color: var(--jp-carousel-primary-subtle-color); |
| 529 | line-height: 1; |
| 530 | font-weight: 400; |
| 531 | font-size: 14px; |
| 532 | text-decoration: none; |
| 533 | } |
| 534 | |
| 535 | a.jp-carousel-image-download svg { |
| 536 | display: inline-block; |
| 537 | vertical-align: middle; |
| 538 | margin: 0 3px; |
| 539 | padding-bottom: 2px; |
| 540 | } |
| 541 | |
| 542 | a.jp-carousel-image-download span.photo-size { |
| 543 | font-size: 11px; |
| 544 | border-radius: 1em; |
| 545 | margin-left: 2px; |
| 546 | display: inline-block; |
| 547 | } |
| 548 | |
| 549 | a.jp-carousel-image-download span.photo-size-times { |
| 550 | padding: 0 1px 0 2px; |
| 551 | } |
| 552 | |
| 553 | /** Meta Box End **/ |
| 554 | |
| 555 | /** Comments Start **/ |
| 556 | .jp-carousel-comments { |
| 557 | font: 15px/1.7 'Helvetica Neue', sans-serif !important; |
| 558 | font-weight: 400; |
| 559 | background: none transparent; |
| 560 | width: 100%; |
| 561 | bottom: 10px; |
| 562 | margin-top: 20px; |
| 563 | } |
| 564 | |
| 565 | .jp-carousel-comments p a:hover, |
| 566 | .jp-carousel-comments p a:focus, |
| 567 | .jp-carousel-comments p a:active { |
| 568 | color: var(--jp-carousel-primary-color) !important; |
| 569 | } |
| 570 | |
| 571 | .jp-carousel-comment { |
| 572 | background: none transparent; |
| 573 | color: var(--jp-carousel-primary-subtle-color); |
| 574 | overflow: auto; |
| 575 | width: 100%; |
| 576 | display: flex; |
| 577 | } |
| 578 | |
| 579 | .jp-carousel-comment + .jp-carousel-comment { |
| 580 | margin-top: 20px; |
| 581 | } |
| 582 | |
| 583 | .jp-carousel-comment:last-of-type { |
| 584 | margin-bottom: 20px; |
| 585 | } |
| 586 | |
| 587 | .jp-carousel-comment p { |
| 588 | color: var(--jp-carousel-primary-subtle-color) !important; |
| 589 | } |
| 590 | |
| 591 | .jp-carousel-comment .comment-author { |
| 592 | font-size: 15px; |
| 593 | font-weight: 500; |
| 594 | padding: 0; |
| 595 | width: auto; |
| 596 | display: inline; |
| 597 | float: none; |
| 598 | border: none; |
| 599 | margin: 0; |
| 600 | } |
| 601 | |
| 602 | .jp-carousel-comment .comment-author a { |
| 603 | color: var(--jp-carousel-primary-color); |
| 604 | } |
| 605 | |
| 606 | .jp-carousel-comment .comment-gravatar { |
| 607 | float: none; |
| 608 | margin-right: 10px; |
| 609 | } |
| 610 | |
| 611 | .jp-carousel-comment .comment-content { |
| 612 | border: none; |
| 613 | padding: 0; |
| 614 | } |
| 615 | |
| 616 | .jp-carousel-comment .avatar { |
| 617 | margin: 0; |
| 618 | -moz-border-radius: 4px; |
| 619 | -webkit-border-radius: 4px; |
| 620 | border-radius: 4px; |
| 621 | border: none !important; |
| 622 | padding: 0 !important; |
| 623 | background-color: transparent !important; |
| 624 | min-width: 64px; |
| 625 | min-height: 64px; |
| 626 | width: 64px; |
| 627 | height: 64px; |
| 628 | } |
| 629 | |
| 630 | .jp-carousel-comment .comment-date { |
| 631 | color: var(--jp-carousel-primary-subtle-color); |
| 632 | font-size: 11px; |
| 633 | border-bottom: 1px solid var(--jp-carousel-bg-faded-color); |
| 634 | margin-bottom: 6px; |
| 635 | } |
| 636 | |
| 637 | #jp-carousel-comment-form { |
| 638 | margin: 0 0 10px !important; |
| 639 | width: 100%; |
| 640 | } |
| 641 | |
| 642 | #jp-carousel-comment-form.jp-carousel-is-disabled { |
| 643 | opacity: 0.5; |
| 644 | pointer-events: none; |
| 645 | } |
| 646 | |
| 647 | textarea#jp-carousel-comment-form-comment-field { |
| 648 | background: var(--jp-carousel-bg-faded-color); |
| 649 | border: 1px solid var(--jp-carousel-border-color); |
| 650 | color: var(--jp-carousel-primary-subtle-color); |
| 651 | font: 16px/1.4 'Helvetica Neue', sans-serif !important; |
| 652 | width: 100%; |
| 653 | padding: 10px 10px 5px; |
| 654 | margin: 0; |
| 655 | float: none; |
| 656 | height: 147px; |
| 657 | -webkit-box-shadow: inset 2px 2px 2px rgba( 0, 0, 0, 0.1 ); |
| 658 | box-shadow: inset 2px 2px 2px rgba( 0, 0, 0, 0.1 ); |
| 659 | -moz-border-radius: 3px; |
| 660 | -webkit-border-radius: 3px; |
| 661 | border-radius: 3px; |
| 662 | overflow: hidden; |
| 663 | -webkit-box-sizing: border-box; |
| 664 | -moz-box-sizing: border-box; |
| 665 | box-sizing: border-box; |
| 666 | } |
| 667 | |
| 668 | textarea#jp-carousel-comment-form-comment-field::-webkit-input-placeholder { |
| 669 | color: #555; |
| 670 | } |
| 671 | |
| 672 | textarea#jp-carousel-comment-form-comment-field:focus { |
| 673 | background: var(--jp-carousel-bg-faded-color); |
| 674 | color: var(--jp-carousel-primary-subtle-color); |
| 675 | } |
| 676 | |
| 677 | textarea#jp-carousel-comment-form-comment-field:focus::-webkit-input-placeholder { |
| 678 | color: var(--jp-carousel-primary-subtle-color); |
| 679 | } |
| 680 | |
| 681 | #jp-carousel-loading-overlay { |
| 682 | display: none; |
| 683 | position: fixed; |
| 684 | top: 0; |
| 685 | bottom: 0; |
| 686 | left: 0; |
| 687 | right: 0; |
| 688 | } |
| 689 | |
| 690 | #jp-carousel-loading-wrapper { |
| 691 | display: flex; |
| 692 | align-items: center; |
| 693 | justify-content: center; |
| 694 | height: 100vh; |
| 695 | width: 100vw; |
| 696 | } |
| 697 | |
| 698 | #jp-carousel-library-loading, |
| 699 | #jp-carousel-library-loading:after { |
| 700 | border-radius: 50%; |
| 701 | width: 40px; |
| 702 | height: 40px; |
| 703 | } |
| 704 | |
| 705 | #jp-carousel-library-loading { |
| 706 | float: left; |
| 707 | margin: 22px 0 0 10px; |
| 708 | font-size: 10px; |
| 709 | position: relative; |
| 710 | text-indent: -9999em; |
| 711 | border-top: 8px solid rgba( 255, 255, 255, 0.2 ); |
| 712 | border-right: 8px solid rgba( 255, 255, 255, 0.2 ); |
| 713 | border-bottom: 8px solid rgba( 255, 255, 255, 0.2 ); |
| 714 | border-left: 8px solid var(--jp-carousel-primary-color); |
| 715 | -webkit-transform: translateZ( 0 ); |
| 716 | -ms-transform: translateZ( 0 ); |
| 717 | transform: translateZ( 0 ); |
| 718 | -webkit-animation: load8 1.1s infinite linear; |
| 719 | animation: load8 1.1s infinite linear; |
| 720 | } |
| 721 | |
| 722 | #jp-carousel-comment-form-spinner, |
| 723 | #jp-carousel-comment-form-spinner:after { |
| 724 | border-radius: 50%; |
| 725 | width: 20px; |
| 726 | height: 20px; |
| 727 | } |
| 728 | #jp-carousel-comment-form-spinner { |
| 729 | display: none; |
| 730 | float: left; |
| 731 | margin: 22px 0 0 10px; |
| 732 | font-size: 10px; |
| 733 | position: absolute; /* relative to .jp-carousel-comment-form-container */ |
| 734 | text-indent: -9999em; |
| 735 | border-top: 4px solid rgba( 255, 255, 255, 0.2 ); |
| 736 | border-right: 4px solid rgba( 255, 255, 255, 0.2 ); |
| 737 | border-bottom: 4px solid rgba( 255, 255, 255, 0.2 ); |
| 738 | border-left: 4px solid var(--jp-carousel-primary-color); |
| 739 | -webkit-transform: translateZ( 0 ); |
| 740 | -ms-transform: translateZ( 0 ); |
| 741 | transform: translateZ( 0 ); |
| 742 | -webkit-animation: load8 1.1s infinite linear; |
| 743 | animation: load8 1.1s infinite linear; |
| 744 | margin: 0 auto; |
| 745 | top: calc( 50% - 15px ); |
| 746 | left: 0; |
| 747 | bottom: 0; |
| 748 | right: 0; |
| 749 | } |
| 750 | |
| 751 | @-webkit-keyframes load8 { |
| 752 | 0% { |
| 753 | -webkit-transform: rotate( 0deg ); |
| 754 | transform: rotate( 0deg ); |
| 755 | } |
| 756 | 100% { |
| 757 | -webkit-transform: rotate( 360deg ); |
| 758 | transform: rotate( 360deg ); |
| 759 | } |
| 760 | } |
| 761 | @keyframes load8 { |
| 762 | 0% { |
| 763 | -webkit-transform: rotate( 0deg ); |
| 764 | transform: rotate( 0deg ); |
| 765 | } |
| 766 | 100% { |
| 767 | -webkit-transform: rotate( 360deg ); |
| 768 | transform: rotate( 360deg ); |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | .jp-carousel-info-content-wrapper { |
| 773 | max-width: 800px; |
| 774 | margin: auto; |
| 775 | } |
| 776 | |
| 777 | #jp-carousel-comment-form-submit-and-info-wrapper { |
| 778 | display: none; |
| 779 | overflow: hidden; |
| 780 | width: 100%; |
| 781 | } |
| 782 | |
| 783 | #jp-carousel-comment-form-commenting-as input { |
| 784 | background: var(--jp-carousel-bg-color); |
| 785 | border: 1px solid var(--jp-carousel-border-color); |
| 786 | color: var(--jp-carousel-primary-subtle-color); |
| 787 | font: 16px/1.4 'Helvetica Neue', sans-serif !important; |
| 788 | padding: 10px; |
| 789 | float: left; |
| 790 | -webkit-box-shadow: inset 2px 2px 2px rgba( 0, 0, 0, 0.2 ); |
| 791 | box-shadow: inset 2px 2px 2px rgba( 0, 0, 0, 0.2 ); |
| 792 | -moz-border-radius: 2px; |
| 793 | -webkit-border-radius: 2px; |
| 794 | border-radius: 2px; |
| 795 | width: 285px; |
| 796 | } |
| 797 | |
| 798 | #jp-carousel-comment-form-commenting-as input:focus { |
| 799 | background: var(--jp-carousel-bg-faded-color); |
| 800 | color: var(--jp-carousel-primary-subtle-color); |
| 801 | } |
| 802 | |
| 803 | #jp-carousel-comment-form-commenting-as p { |
| 804 | font: 400 13px/1.7 'Helvetica Neue', sans-serif !important; |
| 805 | margin: 22px 0 0; |
| 806 | float: left; |
| 807 | } |
| 808 | |
| 809 | #jp-carousel-comment-form-commenting-as fieldset { |
| 810 | float: left; |
| 811 | border: none; |
| 812 | margin: 20px 0 0 0; |
| 813 | padding: 0; |
| 814 | clear: both; |
| 815 | } |
| 816 | |
| 817 | #jp-carousel-comment-form-commenting-as label { |
| 818 | font: 400 13px/1.7 'Helvetica Neue', sans-serif !important; |
| 819 | margin: 0 20px 3px 0; |
| 820 | float: left; |
| 821 | width: 100px; |
| 822 | } |
| 823 | |
| 824 | #jp-carousel-comment-form-button-submit { |
| 825 | margin-top: 20px; |
| 826 | margin-left: auto; |
| 827 | display: block; |
| 828 | border: solid 1px var(--jp-carousel-primary-color); |
| 829 | background: var(--jp-carousel-bg-color); |
| 830 | border-radius: 3px; |
| 831 | padding: 8px 16px; |
| 832 | font-size: 14px; |
| 833 | color: var(--jp-carousel-primary-color); |
| 834 | } |
| 835 | |
| 836 | #jp-carousel-comment-form-button-submit:active, |
| 837 | #jp-carousel-comment-form-button-submit:focus { |
| 838 | background: var(--jp-carousel-primary-color); |
| 839 | color: var(--jp-carousel-bg-color); |
| 840 | } |
| 841 | |
| 842 | #jp-carousel-comment-form-container { |
| 843 | margin-bottom: 15px; |
| 844 | width: 100%; |
| 845 | margin-top: 20px; |
| 846 | color: var(--jp-carousel-primary-subtle-color); |
| 847 | position: relative; |
| 848 | overflow: hidden; |
| 849 | } |
| 850 | |
| 851 | #jp-carousel-comment-post-results { |
| 852 | display: none; |
| 853 | overflow: auto; |
| 854 | width: 100%; |
| 855 | } |
| 856 | |
| 857 | #jp-carousel-comment-post-results span { |
| 858 | display: block; |
| 859 | text-align: center; |
| 860 | margin-top: 20px; |
| 861 | width: 100%; |
| 862 | overflow: auto; |
| 863 | padding: 1em 0; |
| 864 | box-sizing: border-box; |
| 865 | border-radius: 2px; |
| 866 | font: 13px/1.4 'Helvetica Neue', sans-serif !important; |
| 867 | border: 1px solid var(--jp-carousel-border-color); |
| 868 | -webkit-box-shadow: inset 0px 0px 5px 0px rgba( 0, 0, 0, 0.2 ); |
| 869 | box-shadow: inset 0px 0px 5px 0px rgba( 0, 0, 0, 0.2 ); |
| 870 | } |
| 871 | |
| 872 | .jp-carousel-comment-post-error { |
| 873 | color: #df4926; |
| 874 | } |
| 875 | |
| 876 | #jp-carousel-comments-closed { |
| 877 | display: none; |
| 878 | color: var(--jp-carousel-primary-subtle-color); |
| 879 | } |
| 880 | |
| 881 | #jp-carousel-comments-loading { |
| 882 | font: 400 15px/1.7 'Helvetica Neue', sans-serif !important; |
| 883 | display: none; |
| 884 | color: var(--jp-carousel-primary-subtle-color); |
| 885 | text-align: left; |
| 886 | margin-bottom: 20px; |
| 887 | width: 100%; |
| 888 | bottom: 10px; |
| 889 | margin-top: 20px; |
| 890 | } |
| 891 | |
| 892 | /** Icons Start **/ |
| 893 | .jp-carousel-photo-icons-container { |
| 894 | flex: 1; |
| 895 | display: block; |
| 896 | text-align: right; |
| 897 | margin: 0 20px 0 30px; |
| 898 | white-space: nowrap; |
| 899 | } |
| 900 | |
| 901 | .jp-carousel-icon-btn { |
| 902 | padding: 16px; |
| 903 | text-decoration: none; |
| 904 | border: none; |
| 905 | background: none; |
| 906 | display: inline-block; |
| 907 | height: 64px; |
| 908 | } |
| 909 | |
| 910 | .jp-carousel-icon { |
| 911 | border: none; |
| 912 | display: inline-block; |
| 913 | line-height: 0; |
| 914 | font-weight: 400; |
| 915 | font-style: normal; |
| 916 | border-radius: 4px; |
| 917 | width: 31px; /* Prevent comments indicator from changing icon width */ |
| 918 | padding: 4px 3px 3px; |
| 919 | } |
| 920 | |
| 921 | .jp-carousel-icon:hover { |
| 922 | background: var(--jp-carousel-primary-subtle-color); |
| 923 | } |
| 924 | |
| 925 | .jp-carousel-icon svg { |
| 926 | display: inline-block; |
| 927 | } |
| 928 | |
| 929 | .jp-carousel-overlay rect { |
| 930 | fill: var(--jp-carousel-primary-color); |
| 931 | } |
| 932 | |
| 933 | .jp-carousel-selected .jp-carousel-icon { |
| 934 | background: var(--jp-carousel-primary-color); |
| 935 | } |
| 936 | .jp-carousel-selected rect { |
| 937 | fill: var(--jp-carousel-bg-color); |
| 938 | } |
| 939 | |
| 940 | .jp-carousel-icon-comments.jp-carousel-show { |
| 941 | display: inline-block; |
| 942 | } |
| 943 | |
| 944 | .jp-carousel-icon .jp-carousel-has-comments-indicator { |
| 945 | display: none; |
| 946 | font-size: 12px; |
| 947 | vertical-align: top; |
| 948 | margin-left: -16px; |
| 949 | line-height: 1; |
| 950 | padding: 2px 4px; |
| 951 | border-radius: 4px; |
| 952 | background: var(--jp-carousel-primary-color); |
| 953 | color: var(--jp-carousel-bg-color); |
| 954 | font-weight: normal; |
| 955 | font-family: 'Helvetica Neue', sans-serif !important; |
| 956 | position: relative; |
| 957 | } |
| 958 | |
| 959 | .jp-carousel-selected .jp-carousel-icon .jp-carousel-has-comments-indicator { |
| 960 | background: var(--jp-carousel-bg-color); |
| 961 | color: var(--jp-carousel-primary-color); |
| 962 | } |
| 963 | |
| 964 | .jp-carousel-has-comments-indicator.jp-carousel-show { |
| 965 | display: inline-block; |
| 966 | } |
| 967 | |
| 968 | /** Icons End **/ |
| 969 | |
| 970 | /* Small screens */ |
| 971 | @media only screen and ( max-width: 760px ) { |
| 972 | .jp-carousel-overlay .swiper-container .swiper-button-next, |
| 973 | .jp-carousel-overlay .swiper-container .swiper-button-prev { |
| 974 | display: none !important; |
| 975 | } |
| 976 | |
| 977 | .jp-carousel-buttons { |
| 978 | display: none !important; |
| 979 | } |
| 980 | |
| 981 | .jp-carousel-image-meta { |
| 982 | float: none !important; |
| 983 | width: 100% !important; |
| 984 | -moz-box-sizing: border-box; |
| 985 | -webkit-box-sizing: border-box; |
| 986 | box-sizing: border-box; |
| 987 | margin-left: 0; |
| 988 | } |
| 989 | |
| 990 | .jp-carousel-close-hint { |
| 991 | font-size: 26px !important; |
| 992 | position: fixed !important; |
| 993 | top: 10px; |
| 994 | right: 10px; |
| 995 | } |
| 996 | |
| 997 | /* The admin bar is fixed at top: 0*/ |
| 998 | .admin-bar .jp-carousel-close-hint { |
| 999 | top: 40px; |
| 1000 | } |
| 1001 | |
| 1002 | .jp-carousel-slide img { |
| 1003 | opacity: 1; |
| 1004 | } |
| 1005 | |
| 1006 | .jp-carousel-wrap { |
| 1007 | background-color: var(--jp-carousel-bg-color); |
| 1008 | } |
| 1009 | |
| 1010 | .jp-carousel-fadeaway { |
| 1011 | display: none; |
| 1012 | } |
| 1013 | |
| 1014 | .jp-carousel-info > .jp-carousel-photo-info { |
| 1015 | display: none; |
| 1016 | } |
| 1017 | |
| 1018 | .jp-carousel-comments-wrapper > .jp-carousel-photo-info { |
| 1019 | display: block; |
| 1020 | } |
| 1021 | |
| 1022 | .jp-carousel-caption { |
| 1023 | overflow: visible !important; |
| 1024 | } |
| 1025 | |
| 1026 | .jp-carousel-info-footer .jp-carousel-photo-title-container { |
| 1027 | display: none; |
| 1028 | } |
| 1029 | |
| 1030 | .jp-carousel-photo-icons-container { |
| 1031 | margin: 0 10px 0 0; |
| 1032 | white-space: nowrap; |
| 1033 | } |
| 1034 | |
| 1035 | .jp-carousel-icon-btn { |
| 1036 | padding-left: 20px; |
| 1037 | } |
| 1038 | |
| 1039 | .jp-carousel-pagination { |
| 1040 | padding-left: 5px; |
| 1041 | } |
| 1042 | |
| 1043 | .jp-carousel-pagination-container { |
| 1044 | margin-left: 25px; |
| 1045 | } |
| 1046 | |
| 1047 | .jp-carousel-comment .avatar { |
| 1048 | min-width: 48px; |
| 1049 | } |
| 1050 | |
| 1051 | #jp-carousel-comment-form-commenting-as fieldset, |
| 1052 | #jp-carousel-comment-form-commenting-as input { |
| 1053 | width: 100%; |
| 1054 | float: none; |
| 1055 | } |
| 1056 | } |
| 1057 |