Changeset 26482
- Timestamp:
- 11/30/2013 03:35:07 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/css/theme.css (modified) (55 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/theme.css
r26464 r26482 3 3 padding: 0 0 100px; 4 4 } 5 5 6 .themes-php .wrap h2 { 6 7 float: left; 7 8 margin-bottom: 15px; 8 9 } 10 9 11 .themes-php .wrap h2 .button { 10 12 margin-left: 20px; 11 13 } 14 12 15 .themes-php .theme-count { 13 16 color: #fff; … … 20 23 margin-right: 20px; 21 24 position: relative; 22 top: -3px; 23 } 25 top: -3px; 26 } 27 24 28 /* Position admin messages */ 25 29 .themes-php div.updated { … … 27 31 clear: both; 28 32 } 33 29 34 .themes-php div.updated a { 30 35 text-decoration: underline; … … 41 46 position: relative; 42 47 width: 30%; 43 44 48 border: 1px solid #dedede; 45 -webkit-box-shadow: 0px 1px 1px -1px rgba(0,0,0,0.1); 46 box-shadow: 0px 1px 1px -1px rgba(0,0,0,0.1); 47 -moz-box-sizing: border-box; 48 box-sizing: border-box; 49 } 49 -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 50 box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); 51 -webkit-box-sizing: border-box; 52 -moz-box-sizing: border-box; 53 box-sizing: border-box; 54 } 55 50 56 .theme:nth-child(3n) { 51 57 margin-right: 0; … … 62 68 margin: 0; 63 69 padding: 15px; 64 box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); 70 -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); 71 box-shadow: inset 0 1px 0 rgba(0,0,0,0.1); 65 72 overflow: hidden; 66 73 white-space: nowrap; 67 74 text-overflow: ellipsis; 68 75 } 76 69 77 .theme-name { 70 78 background: #fff; … … 72 80 } 73 81 74 75 82 /* Activate and Customize buttons, shown on hover */ 76 83 .theme .theme-actions { 77 84 opacity: 0; 78 transition: opacity 0.1s ease-in-out; 79 position: absolute; 80 bottom: 0px; 81 right: 0px; 85 -webkit-transition: opacity 0.1s ease-in-out; 86 transition: opacity 0.1s ease-in-out; 87 position: absolute; 88 bottom: 0; 89 right: 0; 82 90 height: 38px; 83 91 padding: 9px 10px 0 10px; … … 85 93 border-left: 1px solid rgba(0,0,0,0.05); 86 94 } 95 87 96 .theme:hover .theme-actions { 88 97 opacity: 1; 89 98 } 99 90 100 .theme .theme-actions .button-primary { 91 101 margin-right: 3px; 92 102 } 103 93 104 .theme .theme-actions .button-secondary { 94 105 float: none; … … 96 107 } 97 108 98 /* 109 /** 99 110 * Theme Screenshot 100 111 * … … 106 117 overflow: hidden; 107 118 position: relative; 108 transition: opacity 0.2s ease-in-out; 109 } 119 -webkit-transition: opacity 0.2s ease-in-out; 120 transition: opacity 0.2s ease-in-out; 121 } 122 110 123 .theme .theme-screenshot:after { 111 124 content: ''; … … 113 126 padding-top: 66%; /* using a 3/2 aspect ratio */ 114 127 } 128 115 129 .theme .theme-screenshot img { 116 130 height: auto; 117 131 position: absolute; 118 left: 0;119 top: 0;132 left: 0; 133 top: 0; 120 134 width: 100%; 121 135 -webkit-transform: translateZ( 0 ); /* Prevents rendering bugs in Chrome */ 122 transition: opacity 0.2s ease-in-out; 136 -webkit-transition: opacity 0.2s ease-in-out; 137 transition: opacity 0.2s ease-in-out; 123 138 } 124 139 … … 138 153 padding-top: 24%; 139 154 text-shadow: 0 1px 20px rgba(255,255,255,0.9); 140 transition: opacity 0.2s ease-in-out; 141 } 155 -webkit-transition: opacity 0.2s ease-in-out; 156 transition: opacity 0.2s ease-in-out; 157 } 158 142 159 .theme:hover:after { 143 160 opacity: 0.6; … … 147 164 background: #fff; 148 165 } 166 149 167 .theme:hover .theme-screenshot img { 150 168 opacity: 0.4; 151 169 } 152 /* 170 171 /** 153 172 * Displays a theme update notice 154 * when an update is available 173 * when an update is available. 155 174 */ 156 175 .theme .theme-update { … … 165 184 padding: 0 10px; 166 185 position: absolute; 167 top: 0;168 right: 0;169 left: 0;186 top: 0; 187 right: 0; 188 left: 0; 170 189 border-bottom: 1px solid rgba(0,0,0,0.25); 171 190 overflow: hidden; 172 191 } 192 173 193 .theme .theme-update:before { 174 194 content: '\f113'; … … 178 198 opacity: 0.8; 179 199 position: relative; 180 top: 5px;200 top: 5px; 181 201 speak: none; 182 202 -webkit-font-smoothing: antialiased; … … 184 204 185 205 186 /* 206 /** 187 207 * The currently active theme 188 * is highlighted using the WP blue.189 * @todo use MP6 highlight color190 208 */ 191 209 .theme.active { 192 210 } 211 193 212 .theme.active .theme-screenshot { 194 213 } 214 195 215 .theme.active .theme-name { 196 216 background: #0074a2; 197 217 color: #fff; 198 box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); 199 } 218 -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); 219 box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); 220 } 221 200 222 .theme.active .theme-actions { 201 223 top: 0; … … 208 230 z-index: 1; 209 231 } 232 210 233 .theme.active .theme-actions .button { 211 234 float: right; 212 235 margin-top: 10px; 213 236 } 237 214 238 .theme.active .current-label { 215 239 font-size: 13px; … … 218 242 margin-left: 5px; 219 243 } 220 .theme.active .current-label:before { 221 color: #7ad03a; 222 content: '\f147'; 223 display: inline-block; 224 display: none; 225 font: normal 24px/1 'dashicons'; 226 margin: 0 4px 0 0; 227 position: relative; 228 top: 6px; 229 speak: none; 230 -webkit-font-smoothing: antialiased; 231 } 244 232 245 .theme.active .theme-update { 233 246 top: 48px; … … 242 255 padding: 5px 10px; 243 256 position: absolute; 244 bottom: 56px; 245 } 257 bottom: 56px; 258 } 259 246 260 .theme.display-author .theme-author { 247 261 display: block; 248 262 } 263 249 264 .theme.display-author .theme-author a { 250 265 color: inherit; … … 252 267 } 253 268 254 /* 255 * Experiment: allows to scroll through the whole theme 256 * If a theme includes the whole page, it could be a neat detail. 257 */ 258 .theme.active .theme-screenshot { 259 } 260 261 262 /* 269 /** 263 270 * Add new theme 264 271 */ … … 267 274 box-shadow: none; 268 275 } 276 269 277 .theme-browser .add-new-theme a { 270 278 color: #999; … … 274 282 z-index: 1; 275 283 } 284 276 285 .theme-browser .add-new-theme:after { 277 286 display: block; … … 286 295 padding: 10% 0 0 0; 287 296 text-shadow: none; 288 transition: opacity 0.2s ease-in-out;289 297 border: 5px dashed rgba(0, 0, 0, 0.1); 290 box-sizing: border-box; 291 } 298 -webkit-transition: opacity 0.2s ease-in-out; 299 transition: opacity 0.2s ease-in-out; 300 -webkit-box-sizing: border-box; 301 -moz-box-sizing: border-box; 302 box-sizing: border-box; 303 } 304 292 305 .theme-browser .add-new-theme span:after { 293 306 background: rgba(153, 153, 153, 0.1); … … 311 324 z-index:4; 312 325 } 326 313 327 .theme-browser .add-new-theme:hover .theme-screenshot { 314 328 background: none; 315 329 } 330 316 331 .theme-browser .add-new-theme:hover span:after { 317 332 background: #fff; … … 333 348 top: -50px; 334 349 } 350 335 351 .theme-browser .add-new-theme:hover .theme-name { 336 352 color: #fff; … … 343 359 .themes-php .theme-search { 344 360 position: relative; 345 top: -2px;346 left: 20px;361 top: -2px; 362 left: 20px; 347 363 font-size: 16px; 348 364 font-weight: 300; … … 350 366 } 351 367 352 /* 368 /** 353 369 * Theme Overlay 354 370 * Shown when clicking a theme … … 356 372 .theme-overlay .theme-backdrop { 357 373 position: absolute; 358 left: -20px;359 right: 0;360 top: 0;361 bottom: 0;374 left: -20px; 375 right: 0; 376 top: 0; 377 bottom: 0; 362 378 background: rgba( 238, 238, 238, 0.9 ); 363 /* background: rgba(0,0,0,0.7); */364 379 z-index: 10; 365 380 } 381 366 382 body.theme-overlay-open { 367 383 overflow: hidden; … … 370 386 .theme-overlay .theme-utility { 371 387 position: absolute; 372 top: 0;373 left: 0;374 right: 0;388 top: 0; 389 left: 0; 390 right: 0; 375 391 border-bottom: 1px solid #eee; 376 392 } 393 377 394 .theme-overlay .back { 378 395 cursor: pointer; … … 383 400 border-left: 1px solid #eee; 384 401 } 402 385 403 .theme-overlay .back:hover { 386 404 background: #333; 387 405 } 406 388 407 .theme-overlay .back:hover:before { 389 408 color: #fff; 390 409 } 410 391 411 .theme-overlay .back:before { 392 412 font: normal 30px/48px 'dashicons' !important; … … 396 416 font-weight: 300; 397 417 } 418 398 419 /* Left and right navigation */ 399 420 .theme-overlay .right, 400 421 .theme-overlay .left { 401 cursor: pointer;402 -webkit-user-select: none;403 -moz-user-select: none;404 user-select: none;405 422 cursor: pointer; 406 423 height: 48px; … … 409 426 text-align: center; 410 427 border-right: 1px solid #eee; 411 } 428 -webkit-user-select: none; 429 -moz-user-select: none; 430 -ms-user-select: none; 431 user-select: none; 432 } 433 412 434 .theme-overlay .right:hover, 413 435 .theme-overlay .left:hover { 414 436 background: #333; 415 437 } 416 .theme-overlay .right:hover:before, 417 .theme-overlay .left:hover:before { 418 color: #fff; 419 } 438 439 .theme-overlay .right:hover:before, 440 .theme-overlay .left:hover:before { 441 color: #fff; 442 } 443 420 444 .theme-overlay .left:before { 421 445 content: '\f341'; 422 446 } 447 423 448 .theme-overlay .right:before { 424 449 content: '\f345'; 425 450 } 451 426 452 .theme-overlay .right:before, 427 453 .theme-overlay .left:before { … … 430 456 font-weight: 300; 431 457 } 432 .theme-overlay .left:before {}433 458 434 459 .theme-overlay .theme-wrap { 435 460 clear: both; 436 461 position: fixed; 437 top: 120px;438 left: 190px;439 right: 40px;440 bottom: 80px;462 top: 120px; 463 left: 190px; 464 right: 40px; 465 bottom: 80px; 441 466 overflow: auto; 442 467 background: #fff; 443 468 padding: 88px 40px 110px 40px; 444 box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.1); 469 -webkit-box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.1); 470 box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.1); 445 471 z-index: 20; 446 472 } 473 447 474 .theme-overlay .theme-wrap:after { 448 475 content: "."; … … 464 491 z-index: 30; 465 492 } 493 466 494 .theme-overlay.active .theme-actions { 467 468 } 495 } 496 469 497 .theme-overlay .theme-actions a { 470 498 margin-right: 5px; … … 475 503 padding: 0 20px 1px 20px; 476 504 } 505 477 506 .theme-overlay .theme-actions .delete-theme { 478 507 border-radius: 2px; … … 481 510 padding: 0 10px; 482 511 position: absolute; 483 right: 10px;484 bottom: 20px;512 right: 10px; 513 bottom: 20px; 485 514 text-decoration: none; 486 515 } 516 487 517 .theme-overlay .theme-actions .delete-theme:hover { 488 518 background: #d54e21; … … 494 524 display: none; 495 525 } 526 496 527 .theme-overlay .theme-actions .inactive-theme, 497 528 .theme-overlay.active .theme-actions .active-theme { 498 529 display: block; 499 530 } 500 /* 531 532 /** 501 533 * Theme Screenshots gallery 502 534 */ … … 507 539 text-align: center; 508 540 } 541 509 542 /* First screenshot, shown big */ 510 543 .theme-overlay .screenshot { 511 544 border: 1px solid #fff; 512 -moz-box-sizing: border-box;513 545 -webkit-box-sizing: border-box; 514 box-sizing: border-box; 546 -moz-box-sizing: border-box; 547 box-sizing: border-box; 515 548 overflow: hidden; 516 549 position: relative; 517 box-shadow: 0 0 0 1px rgba(0,0,0,0.2); 518 } 550 -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,0.2); 551 box-shadow: 0 0 0 1px rgba(0,0,0,0.2); 552 } 553 519 554 .theme-overlay .screenshot:after { 520 555 content: ''; … … 522 557 padding-top: 66.66666%; /* using a 3/2 aspect ratio */ 523 558 } 559 524 560 .theme-overlay .screenshot img { 525 561 cursor: pointer; 526 562 height: auto; 527 563 position: absolute; 528 left: 0;529 top: 0;564 left: 0; 565 top: 0; 530 566 width: 100%; 531 567 } 568 532 569 /* Other screenshots, shown small and square */ 533 570 .theme-overlay .screenshot.thumb { … … 540 577 height: 80px; 541 578 } 579 542 580 .theme-overlay .screenshot.thumb:after { 543 581 content: ''; … … 545 583 padding-top: 100%; /* using a 1/1 aspect ratio */ 546 584 } 585 547 586 .theme-overlay .screenshot.thumb img { 548 587 cursor: pointer; 549 588 height: auto; 550 589 position: absolute; 551 left: 0;552 top: 0;590 left: 0; 591 top: 0; 553 592 width: 100%; 554 593 height: auto; 555 594 } 595 556 596 .theme-overlay .screenshot.selected { 557 597 background: transparent; 558 598 border: 2px solid #2ea2cc; 559 599 } 600 560 601 .theme-overlay .screenshot.selected img { 561 602 opacity: 0.8; … … 564 605 /* No screenshot placeholder */ 565 606 .theme .theme-screenshot.blank, 566 .theme-overlay .screenshot.blank { 567 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); 568 } 569 570 /* 607 .theme-overlay .screenshot.blank { 608 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); 609 } 610 611 /** 571 612 * Theme heading information 572 613 */ … … 575 616 float: left; 576 617 } 618 577 619 .theme-overlay .current-label { 578 620 background: #333; … … 584 626 margin: 0 0 -10px; 585 627 -webkit-user-select: none; 586 user-select: none; 587 } 628 -moz-user-select: none; 629 -ms-user-select: none; 630 user-select: none; 631 } 632 588 633 .theme-overlay .theme-name { 589 634 color: #222; … … 593 638 line-height: 1.3; 594 639 } 640 595 641 .theme-overlay .theme-version { 596 642 color: #999; … … 601 647 margin-left: 10px; 602 648 -webkit-user-select: none; 603 user-select: none; 604 } 649 -moz-user-select: none; 650 -ms-user-select: none; 651 user-select: none; 652 } 653 605 654 .theme-overlay .theme-author { 606 655 color: #686868; … … 609 658 margin: 15px 0 25px; 610 659 } 660 611 661 .theme-overlay .theme-author a { 612 662 color: inherit; 613 663 text-decoration: none; 614 664 } 665 615 666 .theme-overlay .theme-description { 616 667 color: #555; … … 620 671 margin: 30px 0 0 0; 621 672 } 673 622 674 .theme-overlay .theme-tags { 623 675 border-top: 3px solid #eee; … … 629 681 text-transform: capitalize; 630 682 } 683 631 684 .theme-overlay .theme-tags span { 632 685 color: #444; … … 634 687 margin-right: 5px; 635 688 } 689 636 690 .theme-overlay .theme-actions { 637 691 } 692 638 693 /* Theme Updates info */ 639 694 .theme-overlay .theme-update-message { … … 644 699 padding: 5px 20px 10px; 645 700 } 701 646 702 .theme-overlay .theme-update { 647 703 color: #222; … … 651 707 margin: 0; 652 708 } 709 653 710 .theme-overlay .parent-theme { 654 711 background: #f7fcfe; … … 660 717 padding: 10px 10px 10px 20px; 661 718 } 719 662 720 .theme-overlay .parent-theme strong { 663 721 font-weight: 700; … … 670 728 */ 671 729 672 @media ( min-width: 1700px) {730 @media only screen and (min-width: 1700px) { 673 731 .theme { 674 732 width: 22.7%; 675 733 margin: 0 3% 3% 0; 676 734 } 735 677 736 .theme:nth-child(3n) { 678 737 margin-right: 3%; 679 738 } 739 680 740 .theme:nth-child(4n) { 681 741 margin-right: 0; 682 742 } 743 683 744 .theme-overlay .theme-wrap, 684 745 .theme-overlay .theme-actions { … … 687 748 } 688 749 } 689 @media ( max-width: 1200px ) { 750 751 @media only screen and (max-width: 1200px) { 690 752 .theme { 691 753 width: 47.5%; 692 754 margin-right: 0; 693 755 } 756 694 757 .theme:nth-child(even) { 695 758 margin-right: 0; 696 759 } 760 697 761 .theme:nth-child(odd) { 698 762 margin-right: 5%; 699 763 } 700 764 } 701 /* Mini-sidebar in MP6 */ 702 @media ( max-width: 900px ) { 765 766 /* Admin menu is folded */ 767 @media only screen and (max-width: 900px) { 703 768 .theme-overlay .theme-wrap, 704 769 .theme-overlay .theme-actions { … … 706 771 } 707 772 } 708 @media ( max-width: 780px ) { 773 774 @media only screen and (max-width: 780px) { 709 775 .theme.active .theme-actions .button { 710 776 margin-top: 6px; 711 777 margin-right: -3px 712 778 } 779 713 780 .theme-overlay .theme-wrap { 714 781 top: 45px; 715 right: 0 px;716 bottom: 0 px;717 left: 0 px;782 right: 0; 783 bottom: 0; 784 left: 0; 718 785 padding: 70px 20px 100px; 719 786 } 787 720 788 .theme-overlay .theme-actions { 721 right: 0 px;722 bottom: 0 px;723 left: 0 px;789 right: 0; 790 bottom: 0; 791 left: 0; 724 792 text-align: left; 725 793 padding: 10px; 726 794 } 795 727 796 .theme-overlay .theme-screenshots { 728 797 width: 40%; 729 798 } 799 730 800 .theme-overlay .theme-info { 731 801 width: 50%; 732 802 } 803 733 804 .theme-overlay .theme-actions .delete-theme { 734 805 bottom: 10px; 735 806 } 736 807 } 737 @media ( max-width: 650px ) { 808 809 @media only screen and (max-width: 650px) { 738 810 .theme { 739 811 width: 100%; 740 812 margin-right: 0; 741 813 } 814 742 815 .theme:hover .theme-actions { 743 816 display: none; 744 817 } 818 745 819 .theme:nth-child(2n), 746 820 .theme:nth-child(3n) { 747 821 margin-right: 0; 748 822 } 823 749 824 .theme-overlay .theme-update, 750 825 .theme-overlay .theme-description { 751 826 margin-left: 0; 752 827 } 828 753 829 .theme-overlay.active .theme-actions .active-theme .button:nth-child(3n) { 754 830 display: none; 755 831 } 832 756 833 .theme.active .theme-actions .button { 757 834 margin-top: 6px; 758 835 margin-right: 0; 759 836 } 837 760 838 .theme-overlay .theme-screenshots { 761 839 width: 100%; 762 840 float: none; 763 841 } 842 764 843 .theme-overlay .theme-info { 765 844 width: 100%; 766 845 } 846 767 847 .theme-overlay .theme-author { 768 848 margin: 5px 0 15px 0; 769 849 } 850 770 851 .theme-overlay .theme-version { 771 852 margin-left: 0; 772 853 position: absolute; 773 top: 18px; 774 left: 130px; 775 } 854 top: 18px; 855 left: 130px; 856 } 857 776 858 .theme-overlay .current-label { 777 859 margin-top: 10px; 778 860 font-size: 13px; 779 861 } 780 /* 781 * Search form 782 */ 862 783 863 .themes-php .wrap h2 { 784 864 width: 100%; 785 865 } 866 786 867 .themes-php .theme-search { 787 868 float: none;
Note: See TracChangeset
for help on using the changeset viewer.