Make WordPress Core

Changeset 26482


Ignore:
Timestamp:
11/30/2013 03:35:07 PM (12 years ago)
Author:
ocean90
Message:

Themes: Prepare theme.css for a merge with wp-admin.css.

  • Let the code breathe.
  • Add necessary vendor prefixes.
  • Remove .current-label:before since it was hidden.

see #25966.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/theme.css

    r26464 r26482  
    33    padding: 0 0 100px;
    44}
     5
    56.themes-php .wrap h2 {
    67    float: left;
    78    margin-bottom: 15px;
    89}
     10
    911.themes-php .wrap h2 .button {
    1012    margin-left: 20px;
    1113}
     14
    1215.themes-php .theme-count {
    1316    color: #fff;
     
    2023    margin-right: 20px;
    2124    position: relative;
    22         top: -3px;
    23 }
     25    top: -3px;
     26}
     27
    2428/* Position admin messages */
    2529.themes-php div.updated {
     
    2731    clear: both;
    2832}
     33
    2934.themes-php div.updated a {
    3035    text-decoration: underline;
     
    4146    position: relative;
    4247    width: 30%;
    43 
    4448    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
    5056.theme:nth-child(3n) {
    5157    margin-right: 0;
     
    6268    margin: 0;
    6369    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);
    6572    overflow: hidden;
    6673    white-space: nowrap;
    6774    text-overflow: ellipsis;
    6875}
     76
    6977.theme-name {
    7078    background: #fff;
     
    7280}
    7381
    74 
    7582/* Activate and Customize buttons, shown on hover */
    7683.theme .theme-actions {
    7784    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;
    8290    height: 38px;
    8391    padding: 9px 10px 0 10px;
     
    8593    border-left: 1px solid rgba(0,0,0,0.05);
    8694}
     95
    8796.theme:hover .theme-actions {
    8897    opacity: 1;
    8998}
     99
    90100.theme .theme-actions .button-primary {
    91101    margin-right: 3px;
    92102}
     103
    93104.theme .theme-actions .button-secondary {
    94105    float: none;
     
    96107}
    97108
    98 /*
     109/**
    99110 * Theme Screenshot
    100111 *
     
    106117    overflow: hidden;
    107118    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
    110123.theme .theme-screenshot:after {
    111124    content: '';
     
    113126    padding-top: 66%; /* using a 3/2 aspect ratio */
    114127}
     128
    115129.theme .theme-screenshot img {
    116130    height: auto;
    117131    position: absolute;
    118         left: 0;
    119         top: 0;
     132    left: 0;
     133    top: 0;
    120134    width: 100%;
    121135    -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;
    123138}
    124139
     
    138153    padding-top: 24%;
    139154    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
    142159.theme:hover:after {
    143160    opacity: 0.6;
     
    147164    background: #fff;
    148165}
     166
    149167.theme:hover .theme-screenshot img {
    150168    opacity: 0.4;
    151169}
    152 /*
     170
     171/**
    153172 * Displays a theme update notice
    154  * when an update is available
     173 * when an update is available.
    155174 */
    156175.theme .theme-update {
     
    165184    padding: 0 10px;
    166185    position: absolute;
    167         top: 0;
    168         right: 0;
    169         left: 0;
     186    top: 0;
     187    right: 0;
     188    left: 0;
    170189    border-bottom: 1px solid rgba(0,0,0,0.25);
    171190    overflow: hidden;
    172191}
     192
    173193.theme .theme-update:before {
    174194    content: '\f113';
     
    178198    opacity: 0.8;
    179199    position: relative;
    180         top: 5px;
     200    top: 5px;
    181201    speak: none;
    182202    -webkit-font-smoothing: antialiased;
     
    184204
    185205
    186 /*
     206/**
    187207 * The currently active theme
    188  * is highlighted using the WP blue.
    189  * @todo use MP6 highlight color
    190208 */
    191209.theme.active {
    192210}
     211
    193212.theme.active .theme-screenshot {
    194213}
     214
    195215.theme.active .theme-name {
    196216    background: #0074a2;
    197217    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
    200222.theme.active .theme-actions {
    201223    top: 0;
     
    208230    z-index: 1;
    209231}
     232
    210233.theme.active .theme-actions .button {
    211234    float: right;
    212235    margin-top: 10px;
    213236}
     237
    214238.theme.active .current-label {
    215239    font-size: 13px;
     
    218242    margin-left: 5px;
    219243}
    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
    232245.theme.active .theme-update {
    233246    top: 48px;
     
    242255    padding: 5px 10px;
    243256    position: absolute;
    244         bottom: 56px;
    245 }
     257    bottom: 56px;
     258}
     259
    246260.theme.display-author .theme-author {
    247261    display: block;
    248262}
     263
    249264.theme.display-author .theme-author a {
    250265    color: inherit;
     
    252267}
    253268
    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/**
    263270 * Add new theme
    264271 */
     
    267274    box-shadow: none;
    268275}
     276
    269277.theme-browser .add-new-theme a {
    270278    color: #999;
     
    274282    z-index: 1;
    275283}
     284
    276285.theme-browser .add-new-theme:after {
    277286    display: block;
     
    286295    padding: 10% 0 0 0;
    287296    text-shadow: none;
    288     transition: opacity 0.2s ease-in-out;
    289297    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
    292305.theme-browser .add-new-theme span:after {
    293306    background: rgba(153, 153, 153, 0.1);
     
    311324    z-index:4;
    312325}
     326
    313327.theme-browser .add-new-theme:hover .theme-screenshot {
    314328    background: none;
    315329}
     330
    316331.theme-browser .add-new-theme:hover span:after {
    317332    background: #fff;
     
    333348    top: -50px;
    334349}
     350
    335351.theme-browser .add-new-theme:hover .theme-name {
    336352    color: #fff;
     
    343359.themes-php .theme-search {
    344360    position: relative;
    345         top: -2px;
    346         left: 20px;
     361    top: -2px;
     362    left: 20px;
    347363    font-size: 16px;
    348364    font-weight: 300;
     
    350366}
    351367
    352 /*
     368/**
    353369 * Theme Overlay
    354370 * Shown when clicking a theme
     
    356372.theme-overlay .theme-backdrop {
    357373    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;
    362378    background: rgba( 238, 238, 238, 0.9 );
    363     /* background: rgba(0,0,0,0.7); */
    364379    z-index: 10;
    365380}
     381
    366382body.theme-overlay-open {
    367383    overflow: hidden;
     
    370386.theme-overlay .theme-utility {
    371387    position: absolute;
    372         top: 0;
    373         left: 0;
    374         right: 0;
     388    top: 0;
     389    left: 0;
     390    right: 0;
    375391    border-bottom: 1px solid #eee;
    376392}
     393
    377394.theme-overlay .back {
    378395    cursor: pointer;
     
    383400    border-left: 1px solid #eee;
    384401}
     402
    385403.theme-overlay .back:hover {
    386404    background: #333;
    387405}
     406
    388407.theme-overlay .back:hover:before {
    389408    color: #fff;
    390409}
     410
    391411.theme-overlay .back:before {
    392412    font: normal 30px/48px 'dashicons' !important;
     
    396416    font-weight: 300;
    397417}
     418
    398419/* Left and right navigation */
    399420.theme-overlay .right,
    400421.theme-overlay .left {
    401     cursor: pointer;
    402     -webkit-user-select: none;
    403     -moz-user-select: none;
    404     user-select: none;
    405422    cursor: pointer;
    406423    height: 48px;
     
    409426    text-align: center;
    410427    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
    412434.theme-overlay .right:hover,
    413435.theme-overlay .left:hover {
    414436    background: #333;
    415437}
    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
    420444.theme-overlay .left:before {
    421445    content: '\f341';
    422446}
     447
    423448.theme-overlay .right:before {
    424449    content: '\f345';
    425450}
     451
    426452.theme-overlay .right:before,
    427453.theme-overlay .left:before {
     
    430456    font-weight: 300;
    431457}
    432 .theme-overlay .left:before {}
    433458
    434459.theme-overlay .theme-wrap {
    435460    clear: both;
    436461    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;
    441466    overflow: auto;
    442467    background: #fff;
    443468    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);
    445471    z-index: 20;
    446472}
     473
    447474.theme-overlay .theme-wrap:after {
    448475    content: ".";
     
    464491    z-index: 30;
    465492}
     493
    466494.theme-overlay.active .theme-actions {
    467 
    468 }
     495}
     496
    469497.theme-overlay .theme-actions a {
    470498    margin-right: 5px;
     
    475503    padding: 0 20px 1px 20px;
    476504}
     505
    477506.theme-overlay .theme-actions .delete-theme {
    478507    border-radius: 2px;
     
    481510    padding: 0 10px;
    482511    position: absolute;
    483         right: 10px;
    484         bottom: 20px;
     512    right: 10px;
     513    bottom: 20px;
    485514    text-decoration: none;
    486515}
     516
    487517.theme-overlay .theme-actions .delete-theme:hover {
    488518    background: #d54e21;
     
    494524    display: none;
    495525}
     526
    496527.theme-overlay .theme-actions .inactive-theme,
    497528.theme-overlay.active .theme-actions .active-theme {
    498529    display: block;
    499530}
    500 /*
     531
     532/**
    501533 * Theme Screenshots gallery
    502534 */
     
    507539    text-align: center;
    508540}
     541
    509542/* First screenshot, shown big */
    510543.theme-overlay .screenshot {
    511544    border: 1px solid #fff;
    512     -moz-box-sizing: border-box;
    513545    -webkit-box-sizing: border-box;
    514     box-sizing: border-box;
     546    -moz-box-sizing:    border-box;
     547    box-sizing:         border-box;
    515548    overflow: hidden;
    516549    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
    519554.theme-overlay .screenshot:after {
    520555    content: '';
     
    522557    padding-top: 66.66666%; /* using a 3/2 aspect ratio */
    523558}
     559
    524560.theme-overlay .screenshot img {
    525561    cursor: pointer;
    526562    height: auto;
    527563    position: absolute;
    528         left: 0;
    529         top: 0;
     564    left: 0;
     565    top: 0;
    530566    width: 100%;
    531567}
     568
    532569/* Other screenshots, shown small and square */
    533570.theme-overlay .screenshot.thumb {
     
    540577    height: 80px;
    541578}
     579
    542580.theme-overlay .screenshot.thumb:after {
    543581    content: '';
     
    545583    padding-top: 100%; /* using a 1/1 aspect ratio */
    546584}
     585
    547586.theme-overlay .screenshot.thumb img {
    548587    cursor: pointer;
    549588    height: auto;
    550589    position: absolute;
    551         left: 0;
    552         top: 0;
     590    left: 0;
     591    top: 0;
    553592    width: 100%;
    554593    height: auto;
    555594}
     595
    556596.theme-overlay .screenshot.selected {
    557597    background: transparent;
    558598    border: 2px solid #2ea2cc;
    559599}
     600
    560601.theme-overlay .screenshot.selected img {
    561602    opacity: 0.8;
     
    564605/* No screenshot placeholder */
    565606.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/**
    571612 * Theme heading information
    572613 */
     
    575616    float: left;
    576617}
     618
    577619.theme-overlay .current-label {
    578620    background: #333;
     
    584626    margin: 0 0 -10px;
    585627    -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
    588633.theme-overlay .theme-name {
    589634    color: #222;
     
    593638    line-height: 1.3;
    594639}
     640
    595641.theme-overlay .theme-version {
    596642    color: #999;
     
    601647    margin-left: 10px;
    602648    -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
    605654.theme-overlay .theme-author {
    606655    color: #686868;
     
    609658    margin: 15px 0 25px;
    610659}
     660
    611661.theme-overlay .theme-author a {
    612662    color: inherit;
    613663    text-decoration: none;
    614664}
     665
    615666.theme-overlay .theme-description {
    616667    color: #555;
     
    620671    margin: 30px 0 0 0;
    621672}
     673
    622674.theme-overlay .theme-tags {
    623675    border-top: 3px solid #eee;
     
    629681    text-transform: capitalize;
    630682}
     683
    631684.theme-overlay .theme-tags span {
    632685    color: #444;
     
    634687    margin-right: 5px;
    635688}
     689
    636690.theme-overlay .theme-actions {
    637691}
     692
    638693/* Theme Updates info */
    639694.theme-overlay .theme-update-message {
     
    644699    padding: 5px 20px 10px;
    645700}
     701
    646702.theme-overlay .theme-update {
    647703    color: #222;
     
    651707    margin: 0;
    652708}
     709
    653710.theme-overlay .parent-theme {
    654711    background: #f7fcfe;
     
    660717    padding: 10px 10px 10px 20px;
    661718}
     719
    662720.theme-overlay .parent-theme strong {
    663721    font-weight: 700;
     
    670728 */
    671729
    672 @media ( min-width: 1700px ) {
     730@media only screen and (min-width: 1700px) {
    673731    .theme {
    674732        width: 22.7%;
    675733        margin: 0 3% 3% 0;
    676734    }
     735
    677736    .theme:nth-child(3n) {
    678737        margin-right: 3%;
    679738    }
     739
    680740    .theme:nth-child(4n) {
    681741        margin-right: 0;
    682742    }
     743
    683744    .theme-overlay .theme-wrap,
    684745    .theme-overlay .theme-actions {
     
    687748    }
    688749}
    689 @media ( max-width: 1200px ) {
     750
     751@media only screen and (max-width: 1200px) {
    690752    .theme {
    691753        width: 47.5%;
    692754        margin-right: 0;
    693755    }
     756
    694757    .theme:nth-child(even) {
    695758        margin-right: 0;
    696759    }
     760
    697761    .theme:nth-child(odd) {
    698762        margin-right: 5%;
    699763    }
    700764}
    701 /* Mini-sidebar in MP6 */
    702 @media ( max-width: 900px ) {
     765
     766/* Admin menu is folded */
     767@media only screen and (max-width: 900px) {
    703768    .theme-overlay .theme-wrap,
    704769    .theme-overlay .theme-actions {
     
    706771    }
    707772}
    708 @media ( max-width: 780px ) {
     773
     774@media only screen and (max-width: 780px) {
    709775    .theme.active .theme-actions .button {
    710776        margin-top: 6px;
    711777        margin-right: -3px
    712778    }
     779
    713780    .theme-overlay .theme-wrap {
    714781        top: 45px;
    715         right: 0px;
    716         bottom: 0px;
    717         left: 0px;
     782        right: 0;
     783        bottom: 0;
     784        left: 0;
    718785        padding: 70px 20px 100px;
    719786    }
     787
    720788    .theme-overlay .theme-actions {
    721         right: 0px;
    722         bottom: 0px;
    723         left: 0px;
     789        right: 0;
     790        bottom: 0;
     791        left: 0;
    724792        text-align: left;
    725793        padding: 10px;
    726794    }
     795
    727796    .theme-overlay .theme-screenshots {
    728797        width: 40%;
    729798    }
     799
    730800    .theme-overlay .theme-info {
    731801        width: 50%;
    732802    }
     803
    733804    .theme-overlay .theme-actions .delete-theme {
    734805        bottom: 10px;
    735806    }
    736807}
    737 @media ( max-width: 650px ) {
     808
     809@media only screen and (max-width: 650px) {
    738810    .theme {
    739811        width: 100%;
    740812        margin-right: 0;
    741813    }
     814
    742815    .theme:hover .theme-actions {
    743816        display: none;
    744817    }
     818
    745819    .theme:nth-child(2n),
    746820    .theme:nth-child(3n) {
    747821        margin-right: 0;
    748822    }
     823
    749824    .theme-overlay .theme-update,
    750825    .theme-overlay .theme-description {
    751826        margin-left: 0;
    752827    }
     828
    753829    .theme-overlay.active .theme-actions .active-theme .button:nth-child(3n) {
    754830        display: none;
    755831    }
     832
    756833    .theme.active .theme-actions .button {
    757834        margin-top: 6px;
    758835        margin-right: 0;
    759836    }
     837
    760838    .theme-overlay .theme-screenshots {
    761839        width: 100%;
    762840        float: none;
    763841    }
     842
    764843    .theme-overlay .theme-info {
    765844        width: 100%;
    766845    }
     846
    767847    .theme-overlay .theme-author {
    768848        margin: 5px 0 15px 0;
    769849    }
     850
    770851    .theme-overlay .theme-version {
    771852        margin-left: 0;
    772853        position: absolute;
    773             top: 18px;
    774             left: 130px;
    775     }
     854        top: 18px;
     855        left: 130px;
     856    }
     857
    776858    .theme-overlay .current-label {
    777859        margin-top: 10px;
    778860        font-size: 13px;
    779861    }
    780     /*
    781      * Search form
    782      */
     862
    783863    .themes-php .wrap h2 {
    784864        width: 100%;
    785865    }
     866
    786867    .themes-php .theme-search {
    787868        float: none;
Note: See TracChangeset for help on using the changeset viewer.