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