Changeset 27638
- Timestamp:
- 03/20/2014 04:40:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/css/editor-style.css
r27607 r27638 15 15 * 6.0 - Tables 16 16 * 7.0 - Images 17 * 8.0 - Post Formats 18 * 9.0 - RTL 17 * 8.0 - Galleries 18 * 9.0 - Audio/Video 19 * 10.0 - Post Formats 20 * 11.0 - RTL 19 21 * ---------------------------------------------------------------------------- 20 22 */ … … 373 375 374 376 /** 375 * 8.0 Post Formats 377 * 8.0 Galleries 378 * ---------------------------------------------------------------------------- 379 */ 380 381 .gallery .gallery-item { 382 float: left; 383 margin: 0 4px 4px 0; 384 overflow: hidden; 385 padding: 0; 386 position: relative; 387 } 388 389 .gallery-columns-1 .gallery-item { 390 max-width: 100%; 391 width: auto; 392 } 393 394 .gallery-columns-2 .gallery-item { 395 max-width: 48%; 396 max-width: -webkit-calc(50% - 14px); 397 max-width: calc(50% - 14px); 398 width: auto; 399 } 400 401 .gallery-columns-3 .gallery-item { 402 max-width: 32%; 403 max-width: -webkit-calc(33.3% - 11px); 404 max-width: calc(33.3% - 11px); 405 width: auto; 406 } 407 408 .gallery-columns-4 .gallery-item { 409 max-width: 23%; 410 max-width: -webkit-calc(25% - 9px); 411 max-width: calc(25% - 9px); 412 width: auto; 413 } 414 415 .gallery-columns-5 .gallery-item { 416 max-width: 19%; 417 max-width: -webkit-calc(20% - 8px); 418 max-width: calc(20% - 8px); 419 width: auto; 420 } 421 422 .gallery-columns-6 .gallery-item { 423 max-width: 15%; 424 max-width: -webkit-calc(16.7% - 7px); 425 max-width: calc(16.7% - 7px); 426 width: auto; 427 } 428 429 .gallery-columns-7 .gallery-item { 430 max-width: 13%; 431 max-width: -webkit-calc(14.28% - 7px); 432 max-width: calc(14.28% - 7px); 433 width: auto; 434 } 435 436 .gallery-columns-8 .gallery-item { 437 max-width: 11%; 438 max-width: -webkit-calc(12.5% - 6px); 439 max-width: calc(12.5% - 6px); 440 width: auto; 441 } 442 443 .gallery-columns-9 .gallery-item { 444 max-width: 9%; 445 max-width: -webkit-calc(11.1% - 6px); 446 max-width: calc(11.1% - 6px); 447 width: auto; 448 } 449 450 .gallery-columns-1 .gallery-item:nth-of-type(1n), 451 .gallery-columns-2 .gallery-item:nth-of-type(2n), 452 .gallery-columns-3 .gallery-item:nth-of-type(3n), 453 .gallery-columns-4 .gallery-item:nth-of-type(4n), 454 .gallery-columns-5 .gallery-item:nth-of-type(5n), 455 .gallery-columns-6 .gallery-item:nth-of-type(6n), 456 .gallery-columns-7 .gallery-item:nth-of-type(7n), 457 .gallery-columns-8 .gallery-item:nth-of-type(8n), 458 .gallery-columns-9 .gallery-item:nth-of-type(9n) { 459 margin-right: 0; 460 } 461 462 .gallery-columns-1 .gallery-item:nth-of-type(1n), 463 .gallery-columns-2 .gallery-item:nth-of-type(2n - 1), 464 .gallery-columns-3 .gallery-item:nth-of-type(3n - 2), 465 .gallery-columns-4 .gallery-item:nth-of-type(4n - 3), 466 .gallery-columns-5 .gallery-item:nth-of-type(5n - 4), 467 .gallery-columns-6 .gallery-item:nth-of-type(6n - 5), 468 .gallery-columns-7 .gallery-item:nth-of-type(7n - 6), 469 .gallery-columns-8 .gallery-item:nth-of-type(8n - 7), 470 .gallery-columns-9 .gallery-item:nth-of-type(9n - 8) { 471 margin-left: 12px; /* Compensate for the default negative margin on .gallery, which can't be changed. */ 472 } 473 474 .gallery .gallery-caption { 475 background-color: rgba(0, 0, 0, 0.7); 476 box-sizing: border-box; 477 color: #fff; 478 font-size: 14px; 479 line-height: 1.3; 480 margin: 0; 481 max-height: 50%; 482 opacity: 0; 483 padding: 2px 8px; 484 position: absolute; 485 bottom: 0; 486 left: 0; 487 text-align: left; 488 -webkit-transition: opacity 400ms ease; 489 transition: opacity 400ms ease; 490 width: 100%; 491 } 492 493 .gallery .gallery-caption:before { 494 box-shadow: 0 -10px 15px #000 inset; 495 content: ""; 496 height: 100%; 497 min-height: 49px; 498 position: absolute; 499 left: 0; 500 top: 0; 501 width: 100%; 502 } 503 504 .gallery-item:hover .gallery-caption { 505 opacity: 1; 506 } 507 508 .gallery-columns-7 .gallery-caption, 509 .gallery-columns-8 .gallery-caption, 510 .gallery-columns-9 .gallery-caption { 511 display: none; 512 } 513 514 515 /** 516 * 9.0 Audio/Video 517 * ---------------------------------------------------------------------------- 518 */ 519 .mejs-mediaelement, 520 .mejs-container .mejs-controls { 521 background: #220e10; 522 } 523 524 .mejs-controls .mejs-time-rail .mejs-time-loaded, 525 .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { 526 background: #fff; 527 } 528 529 .mejs-controls .mejs-time-rail .mejs-time-current { 530 background: #ea9629; 531 } 532 533 .mejs-controls .mejs-time-rail .mejs-time-total, 534 .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total { 535 background: #595959; 536 } 537 538 .mejs-controls .mejs-time-rail span, 539 .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, 540 .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { 541 border-radius: 0; 542 } 543 544 545 /** 546 * 10.0 Post Formats 376 547 * ---------------------------------------------------------------------------- 377 548 */ … … 542 713 543 714 /** 544 * 9.0 RTL715 * 11.0 RTL 545 716 * ---------------------------------------------------------------------------- 546 717 */
Note: See TracChangeset
for help on using the changeset viewer.