Make WordPress Core

Ticket #25966: 25966.2.patch

File 25966.2.patch, 15.9 KB (added by ocean90, 12 years ago)
  • src/wp-admin/css/theme.css

     
    22        clear: both;
    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;
    1417        border-radius: 30px;
     
    1922        margin-left: 5px;
    2023        margin-right: 20px;
    2124        position: relative;
    22                 top: -3px;
     25        top: -3px;
    2326}
     27
    2428/* Position admin messages */
    2529.themes-php div.updated {
    2630        margin: 0 0 20px 0;
    2731        clear: both;
    2832}
     33
    2934.themes-php div.updated a {
    3035        text-decoration: underline;
    3136}
     
    4247        width: 30%;
    4348
    4449        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;
     50        -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1);
     51        box-shadow:         0 1px 1px -1px rgba(0,0,0,0.1);
     52        -webkit-box-sizing: border-box;
     53        -moz-box-sizing:    border-box;
     54        box-sizing:         border-box;
    4955}
     56
    5057.theme:nth-child(3n) {
    5158        margin-right: 0;
    5259}
     
    6168        font-weight: 600;
    6269        margin: 0;
    6370        padding: 15px;
    64         box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
     71        -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
     72        box-shadow:         inset 0 1px 0 rgba(0,0,0,0.1);
    6573        overflow: hidden;
    6674        white-space: nowrap;
    6775        text-overflow: ellipsis;
    6876}
     77
    6978.theme-name {
    7079        background: #fff;
    7180        background: rgba(255,255,255,0.65);
     
    7584/* Activate and Customize buttons, shown on hover */
    7685.theme .theme-actions {
    7786        opacity: 0;
    78         transition: opacity 0.1s ease-in-out;
     87        -webkit-transition: opacity 0.1s ease-in-out;
     88        transition:         opacity 0.1s ease-in-out;
    7989        position: absolute;
    80                 bottom: 0px;
    81                 right: 0px;
     90        bottom: 0;
     91        right: 0;
    8292        height: 38px;
    8393        padding: 9px 10px 0 10px;
    8494        background: rgba(244, 244, 244, 0.7);
    8595        border-left: 1px solid rgba(0,0,0,0.05);
    8696}
     97
    8798.theme:hover .theme-actions {
    8899        opacity: 1;
    89100}
     101
    90102.theme .theme-actions .button-primary {
    91103        margin-right: 3px;
    92104}
     105
    93106.theme .theme-actions .button-secondary {
    94107        float: none;
    95108        margin-left: 3px;
     
    105118        display: block;
    106119        overflow: hidden;
    107120        position: relative;
    108         transition: opacity 0.2s ease-in-out;
     121        -webkit-transition: opacity 0.2s ease-in-out;
     122        transition:         opacity 0.2s ease-in-out;
    109123}
     124
    110125.theme .theme-screenshot:after {
    111126        content: '';
    112127        display: block;
    113128        padding-top: 66%; /* using a 3/2 aspect ratio */
    114129}
     130
    115131.theme .theme-screenshot img {
    116132        height: auto;
    117133        position: absolute;
    118                 left: 0;
    119                 top: 0;
     134        left: 0;
     135        top: 0;
    120136        width: 100%;
    121137        -webkit-transform: translateZ( 0 ); /* Prevents rendering bugs in Chrome */
    122         transition: opacity 0.2s ease-in-out;
     138        -webkit-transition: opacity 0.2s ease-in-out;
     139        transition:         opacity 0.2s ease-in-out;
    123140}
    124141
    125142.theme:after {
     
    137154        right: 0;
    138155        padding-top: 24%;
    139156        text-shadow: 0 1px 20px rgba(255,255,255,0.9);
    140         transition: opacity 0.2s ease-in-out;
     157        -webkit-transition: opacity 0.2s ease-in-out;
     158        transition:         opacity 0.2s ease-in-out;
    141159}
     160
    142161.theme:hover:after {
    143162        opacity: 0.6;
    144163}
     
    146165.theme:hover .theme-screenshot {
    147166        background: #fff;
    148167}
     168
    149169.theme:hover .theme-screenshot img {
    150170        opacity: 0.4;
    151171}
     172
    152173/*
    153174 * Displays a theme update notice
    154175 * when an update is available
     
    164185        line-height: 48px;
    165186        padding: 0 10px;
    166187        position: absolute;
    167                 top: 0;
    168                 right: 0;
    169                 left: 0;
     188        top: 0;
     189        right: 0;
     190        left: 0;
    170191        border-bottom: 1px solid rgba(0,0,0,0.25);
    171192        overflow: hidden;
    172193}
     194
    173195.theme .theme-update:before {
    174196        content: '\f113';
    175197        display: inline-block;
     
    177199        margin: 0 6px 0 0;
    178200        opacity: 0.8;
    179201        position: relative;
    180                 top: 5px;
     202        top: 5px;
    181203        speak: none;
    182204        -webkit-font-smoothing: antialiased;
    183205}
     
    190212 */
    191213.theme.active {
    192214}
     215
    193216.theme.active .theme-screenshot {
    194217}
     218
    195219.theme.active .theme-name {
    196220        background: #0074a2;
    197221        color: #fff;
    198         box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
     222        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
     223        box-shadow:         inset 0 1px 1px rgba(0,0,0,0.5);
    199224}
     225
    200226.theme.active .theme-actions {
    201227        top: 0;
    202228        left: 0;
     
    207233        padding: 0 10px;
    208234        z-index: 1;
    209235}
     236
    210237.theme.active .theme-actions .button {
    211238        float: right;
    212239        margin-top: 10px;
    213240}
     241
    214242.theme.active .current-label {
    215243        font-size: 13px;
    216244        font-weight: 400;
    217245        color: #ccc;
    218246        margin-left: 5px;
    219247}
    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 }
     248
    232249.theme.active .theme-update {
    233250        top: 48px;
    234251}
     
    241258        margin: 0 10px;
    242259        padding: 5px 10px;
    243260        position: absolute;
    244                 bottom: 56px;
     261        bottom: 56px;
    245262}
     263
    246264.theme.display-author .theme-author {
    247265        display: block;
    248266}
     267
    249268.theme.display-author .theme-author a {
    250269        color: inherit;
    251270        text-decoration: none;
     
    266285        border: none;
    267286        box-shadow: none;
    268287}
     288
    269289.theme-browser .add-new-theme a {
    270290        color: #999;
    271291        text-decoration: none;
     
    273293        position: relative;
    274294        z-index: 1;
    275295}
     296
    276297.theme-browser .add-new-theme:after {
    277298        display: block;
    278299        content: '';
     
    285306        bottom: 0;
    286307        padding: 10% 0 0 0;
    287308        text-shadow: none;
    288         transition: opacity 0.2s ease-in-out;
    289309        border: 5px dashed rgba(0, 0, 0, 0.1);
    290         box-sizing: border-box;
     310        -webkit-transition: opacity 0.2s ease-in-out;
     311        transition:         opacity 0.2s ease-in-out;
     312        -webkit-box-sizing: border-box;
     313        -moz-box-sizing:    border-box;
     314        box-sizing:         border-box;
    291315}
     316
    292317.theme-browser .add-new-theme span:after {
    293318        background: rgba(153, 153, 153, 0.1);
    294319        border-radius: 50%;
     
    310335        text-shadow: none;
    311336        z-index:4;
    312337}
     338
    313339.theme-browser .add-new-theme:hover .theme-screenshot {
    314340        background: none;
    315341}
     342
    316343.theme-browser .add-new-theme:hover span:after {
    317344        background: #fff;
    318345        color: #0074a2;
     
    332359        position: relative;
    333360        top: -50px;
    334361}
     362
    335363.theme-browser .add-new-theme:hover .theme-name {
    336364        color: #fff;
    337365        z-index: 2;
     
    342370 */
    343371.themes-php .theme-search {
    344372        position: relative;
    345                 top: -2px;
    346                 left: 20px;
     373        top: -2px;
     374        left: 20px;
    347375        font-size: 16px;
    348376        font-weight: 300;
    349377        line-height: 1.5;
     
    355383 */
    356384.theme-overlay .theme-backdrop {
    357385        position: absolute;
    358                 left: -20px;
    359                 right: 0;
    360                 top: 0;
    361                 bottom: 0;
     386        left: -20px;
     387        right: 0;
     388        top: 0;
     389        bottom: 0;
    362390        background: rgba( 238, 238, 238, 0.9 );
    363         /* background: rgba(0,0,0,0.7); */
    364391        z-index: 10;
    365392}
     393
    366394body.theme-overlay-open {
    367395        overflow: hidden;
    368396}
    369397
    370398.theme-overlay .theme-utility {
    371399        position: absolute;
    372                 top: 0;
    373                 left: 0;
    374                 right: 0;
     400        top: 0;
     401        left: 0;
     402        right: 0;
    375403        border-bottom: 1px solid #eee;
    376404}
     405
    377406.theme-overlay .back {
    378407        cursor: pointer;
    379408        height: 48px;
     
    382411        float: right;
    383412        border-left: 1px solid #eee;
    384413}
     414
    385415.theme-overlay .back:hover {
    386416        background: #333;
    387417}
     418
    388419.theme-overlay .back:hover:before {
    389420        color: #fff;
    390421}
     422
    391423.theme-overlay .back:before {
    392424        font: normal 30px/48px 'dashicons' !important;
    393425        color: #bbb;
     
    395427        content: '\f335';
    396428        font-weight: 300;
    397429}
     430
    398431/* Left and right navigation */
    399432.theme-overlay .right,
    400433.theme-overlay .left {
    401434        cursor: pointer;
    402         -webkit-user-select: none;
    403         -moz-user-select: none;
    404         user-select: none;
    405         cursor: pointer;
    406435        height: 48px;
    407436        width: 54px;
    408437        float: left;
    409438        text-align: center;
    410439        border-right: 1px solid #eee;
     440        -webkit-user-select: none;
     441        -moz-user-select:    none;
     442        -ms-user-select:     none;
     443        user-select:         none;
    411444}
     445
    412446.theme-overlay .right:hover,
    413447.theme-overlay .left:hover {
    414448        background: #333;
    415449}
    416         .theme-overlay .right:hover:before,
    417         .theme-overlay .left:hover:before {
    418                 color: #fff;
    419         }
     450
     451.theme-overlay .right:hover:before,
     452.theme-overlay .left:hover:before {
     453        color: #fff;
     454}
     455
    420456.theme-overlay .left:before {
    421457        content: '\f341';
    422458}
     459
    423460.theme-overlay .right:before {
    424461        content: '\f345';
    425462}
     463
    426464.theme-overlay .right:before,
    427465.theme-overlay .left:before {
    428466        font: normal 16px/54px 'dashicons' !important;
    429467        display: inline;
    430468        font-weight: 300;
    431469}
    432 .theme-overlay .left:before {}
    433470
    434471.theme-overlay .theme-wrap {
    435472        clear: both;
    436473        position: fixed;
    437                 top: 120px;
    438                 left: 190px;
    439                 right: 40px;
    440                 bottom: 80px;
     474        top: 120px;
     475        left: 190px;
     476        right: 40px;
     477        bottom: 80px;
    441478        overflow: auto;
    442479        background: #fff;
    443480        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);
     481        -webkit-box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.1);
     482        box-shadow:         0 1px 20px 5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.1);
    445483        z-index: 20;
    446484}
     485
    447486.theme-overlay .theme-wrap:after {
    448487        content: ".";
    449488        display: block;
     
    463502        border-top: 1px solid rgba(0,0,0,0.1);
    464503        z-index: 30;
    465504}
     505
    466506.theme-overlay.active .theme-actions {
     507}
    467508
    468 }
    469509.theme-overlay .theme-actions a {
    470510        margin-right: 5px;
    471511        margin-bottom: 0;
     
    474514        height: 37px;
    475515        padding: 0 20px 1px 20px;
    476516}
     517
    477518.theme-overlay .theme-actions .delete-theme {
    478519        border-radius: 2px;
    479520        color: #a00;
    480521        font-size: 14px;
    481522        padding: 0 10px;
    482523        position: absolute;
    483                 right: 10px;
    484                 bottom: 20px;
     524        right: 10px;
     525        bottom: 20px;
    485526        text-decoration: none;
    486527}
     528
    487529.theme-overlay .theme-actions .delete-theme:hover {
    488530        background: #d54e21;
    489531        color: #fff;
     
    493535.theme-overlay.active .theme-actions .inactive-theme {
    494536        display: none;
    495537}
     538
    496539.theme-overlay .theme-actions .inactive-theme,
    497540.theme-overlay.active .theme-actions .active-theme {
    498541        display: block;
    499542}
     543
    500544/*
    501545 * Theme Screenshots gallery
    502546 */
     
    506550        width: 55%;
    507551        text-align: center;
    508552}
     553
    509554/* First screenshot, shown big */
    510555.theme-overlay .screenshot {
    511556        border: 1px solid #fff;
    512         -moz-box-sizing: border-box;
    513557        -webkit-box-sizing: border-box;
    514         box-sizing: border-box;
     558        -moz-box-sizing:    border-box;
     559        box-sizing:         border-box;
    515560        overflow: hidden;
    516561        position: relative;
    517         box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
     562        -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
     563        box-shadow:         0 0 0 1px rgba(0,0,0,0.2);
    518564}
     565
    519566.theme-overlay .screenshot:after {
    520567        content: '';
    521568        display: block;
    522569        padding-top: 66.66666%; /* using a 3/2 aspect ratio */
    523570}
     571
    524572.theme-overlay .screenshot img {
    525573        cursor: pointer;
    526574        height: auto;
    527575        position: absolute;
    528                 left: 0;
    529                 top: 0;
     576        left: 0;
     577        top: 0;
    530578        width: 100%;
    531579}
     580
    532581/* Other screenshots, shown small and square */
    533582.theme-overlay .screenshot.thumb {
    534583        background: #ccc;
     
    539588        width: 140px;
    540589        height: 80px;
    541590}
     591
    542592.theme-overlay .screenshot.thumb:after {
    543593        content: '';
    544594        display: block;
    545595        padding-top: 100%; /* using a 1/1 aspect ratio */
    546596}
     597
    547598.theme-overlay .screenshot.thumb img {
    548599        cursor: pointer;
    549600        height: auto;
    550601        position: absolute;
    551                 left: 0;
    552                 top: 0;
     602        left: 0;
     603        top: 0;
    553604        width: 100%;
    554605        height: auto;
    555606}
     607
    556608.theme-overlay .screenshot.selected {
    557609        background: transparent;
    558610        border: 2px solid #2ea2cc;
    559611}
     612
    560613.theme-overlay .screenshot.selected img {
    561614        opacity: 0.8;
    562615}
    563616
    564617/* No screenshot placeholder */
    565618.theme .theme-screenshot.blank,
    566 .theme-overlay .screenshot.blank { 
    567         background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); 
     619.theme-overlay .screenshot.blank {
     620        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=);
    568621}
    569622
    570623/*
     
    574627        width: 40%;
    575628        float: left;
    576629}
     630
    577631.theme-overlay .current-label {
    578632        background: #333;
    579633        color: #fff;
     
    583637        border-radius: 2px;
    584638        margin: 0 0 -10px;
    585639        -webkit-user-select: none;
    586         user-select: none;
     640        -moz-user-select:    none;
     641        -ms-user-select:     none;
     642        user-select:         none;
    587643}
     644
    588645.theme-overlay .theme-name {
    589646        color: #222;
    590647        font-size: 32px;
     
    592649        margin: 10px 0 0;
    593650        line-height: 1.3;
    594651}
     652
    595653.theme-overlay .theme-version {
    596654        color: #999;
    597655        font-size: 13px;
     
    600658        display: inline-block;
    601659        margin-left: 10px;
    602660        -webkit-user-select: none;
    603         user-select: none;
     661        -moz-user-select:    none;
     662        -ms-user-select:     none;
     663        user-select:         none;
    604664}
     665
    605666.theme-overlay .theme-author {
    606667        color: #686868;
    607668        font-size: 16px;
    608669        font-weight: 400;
    609670        margin: 15px 0 25px;
    610671}
     672
    611673.theme-overlay .theme-author a {
    612674        color: inherit;
    613675        text-decoration: none;
    614676}
     677
    615678.theme-overlay .theme-description {
    616679        color: #555;
    617680        font-size: 15px;
     
    619682        line-height: 1.5;
    620683        margin: 30px 0 0 0;
    621684}
     685
    622686.theme-overlay .theme-tags {
    623687        border-top: 3px solid #eee;
    624688        color: #888;
     
    628692        padding-top: 20px;
    629693        text-transform: capitalize;
    630694}
     695
    631696.theme-overlay .theme-tags span {
    632697        color: #444;
    633698        font-weight: bold;
    634699        margin-right: 5px;
    635700}
     701
    636702.theme-overlay .theme-actions {
    637703}
     704
    638705/* Theme Updates info */
    639706.theme-overlay .theme-update-message {
    640707        background: #fefaf7;
     
    643710        border-radius: 3px;
    644711        padding: 5px 20px 10px;
    645712}
     713
    646714.theme-overlay .theme-update {
    647715        color: #222;
    648716        font-size: 18px;
     
    650718        line-height: 40px;
    651719        margin: 0;
    652720}
     721
    653722.theme-overlay .parent-theme {
    654723        background: #f7fcfe;
    655724        border: 1px solid #eee;
     
    659728        margin-top: 30px;
    660729        padding: 10px 10px 10px 20px;
    661730}
     731
    662732.theme-overlay .parent-theme strong {
    663733        font-weight: 700;
    664734}
     
    669739 * Shuffles theme columns around based on screen width
    670740 */
    671741
    672 @media ( min-width: 1700px ) {
     742@media only screen and (min-width: 1700px) {
    673743        .theme {
    674744                width: 22.7%;
    675745                margin: 0 3% 3% 0;
    676746        }
     747
    677748        .theme:nth-child(3n) {
    678749                margin-right: 3%;
    679750        }
     751
    680752        .theme:nth-child(4n) {
    681753                margin-right: 0;
    682754        }
     755
    683756        .theme-overlay .theme-wrap,
    684757        .theme-overlay .theme-actions {
    685758                right: 15%;
    686759                left: 22%;
    687760        }
    688761}
    689 @media ( max-width: 1200px ) {
     762
     763@media only screen and (max-width: 1200px) {
    690764        .theme {
    691765                width: 47.5%;
    692766                margin-right: 0;
    693767        }
     768
    694769        .theme:nth-child(even) {
    695770                margin-right: 0;
    696771        }
     772
    697773        .theme:nth-child(odd) {
    698774                margin-right: 5%;
    699775        }
    700776}
    701 /* Mini-sidebar in MP6 */
    702 @media ( max-width: 900px ) {
     777
     778/* Admin menu is folded */
     779@media only screen and (max-width: 900px) {
    703780        .theme-overlay .theme-wrap,
    704781        .theme-overlay .theme-actions {
    705782                left: 76px;
    706783        }
    707784}
    708 @media ( max-width: 780px ) {
     785
     786@media only screen and (max-width: 780px) {
    709787        .theme.active .theme-actions .button {
    710788                margin-top: 6px;
    711789                margin-right: -3px
    712790        }
     791
    713792        .theme-overlay .theme-wrap {
    714793                top: 45px;
    715                 right: 0px;
    716                 bottom: 0px;
    717                 left: 0px;
     794                right: 0;
     795                bottom: 0;
     796                left: 0;
    718797                padding: 70px 20px 100px;
    719798        }
     799
    720800        .theme-overlay .theme-actions {
    721                 right: 0px;
    722                 bottom: 0px;
    723                 left: 0px;
     801                right: 0;
     802                bottom: 0;
     803                left: 0;
    724804                text-align: left;
    725805                padding: 10px;
    726806        }
     807
    727808        .theme-overlay .theme-screenshots {
    728809                width: 40%;
    729810        }
     811
    730812        .theme-overlay .theme-info {
    731813                width: 50%;
    732814        }
     815
    733816        .theme-overlay .theme-actions .delete-theme {
    734817                bottom: 10px;
    735818        }
    736819}
    737 @media ( max-width: 650px ) {
     820
     821@media only screen and (max-width: 650px) {
    738822        .theme {
    739823                width: 100%;
    740824                margin-right: 0;
    741825        }
     826
    742827        .theme:hover .theme-actions {
    743828                display: none;
    744829        }
     830
    745831        .theme:nth-child(2n),
    746832        .theme:nth-child(3n) {
    747833                margin-right: 0;
    748834        }
     835
    749836        .theme-overlay .theme-update,
    750837        .theme-overlay .theme-description {
    751838                margin-left: 0;
    752839        }
     840
    753841        .theme-overlay.active .theme-actions .active-theme .button:nth-child(3n) {
    754842                display: none;
    755843        }
     844
    756845        .theme.active .theme-actions .button {
    757846                margin-top: 6px;
    758847                margin-right: 0;
    759848        }
     849
    760850        .theme-overlay .theme-screenshots {
    761851                width: 100%;
    762852                float: none;
    763853        }
     854
    764855        .theme-overlay .theme-info {
    765856                width: 100%;
    766857        }
     858
    767859        .theme-overlay .theme-author {
    768860                margin: 5px 0 15px 0;
    769861        }
     862
    770863        .theme-overlay .theme-version {
    771864                margin-left: 0;
    772865                position: absolute;
    773866                        top: 18px;
    774867                        left: 130px;
    775868        }
     869
    776870        .theme-overlay .current-label {
    777871                margin-top: 10px;
    778872                font-size: 13px;
    779873        }
     874
    780875        /*
    781876         * Search form
    782877         */
    783878        .themes-php .wrap h2 {
    784879                width: 100%;
    785880        }
     881
    786882        .themes-php .theme-search {
    787883                float: none;
    788884                clear: both;
     
    792888                margin: 10px 0;
    793889                width: 100%;
    794890        }
    795 }
    796  No newline at end of file
     891}