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