Make WordPress Core

Ticket #25300: 25300.1.diff

File 25300.1.diff, 1.7 KB (added by iamtakashi, 13 years ago)

Add fallback colors if gradients are not supported, and this patch is made from the WordPress root directory.

  • wp-content/themes/twentyfourteen/style.css

     
    884884        max-width: 67.2rem;
    885885}
    886886.attachment-featured-thumbnail {
    887         background: #767676 url(images/pattern.png) repeat 0 0;
    888         background-size: 5px 5px;
     887        background-color: #dfdfdf;
     888        background-image: -webkit-linear-gradient(135deg, #dfdfdf 12.5%, #fff 12.5%, #fff 50%, #dfdfdf 50%, #dfdfdf 62.5%, #fff 62.5%);
     889        background-image:         linear-gradient(135deg, #dfdfdf 12.5%, #fff 12.5%, #fff 50%, #dfdfdf 50%, #dfdfdf 62.5%, #fff 62.5%);
     890        background-size: 4px 4px;
    889891        display: block;
    890892        float: none;
    891893        margin: 0;
    … …  
    896898        height: auto;
    897899        z-index: 0;
    898900}
     901.attachment-featured-thumbnail:hover {
     902        background-color: #969696;
     903        background-image: -webkit-linear-gradient(135deg, #969696 12.5%, #fff 12.5%, #fff 50%, #969696 50%, #969696 62.5%, #fff 62.5%);
     904        background-image:         linear-gradient(135deg, #969696 12.5%, #fff 12.5%, #fff 50%, #969696 50%, #969696 62.5%, #fff 62.5%);
     905}
    899906.entry-header {
    900907        position: relative;
    901908        z-index: 1;
    … …  
    12721279----------------------------------------------- */
    12731280
    12741281#featured-content {
    1275         background: #000 url(images/pattern-dark.png) repeat 0 0;
    1276         background-size: 5px 5px;
     1282        background-color: #000;
     1283        background-image: -webkit-linear-gradient(135deg, #4d4d4d 12.5%, #000 12.5%, #000 50%, #4d4d4d 50%, #4d4d4d 62.5%, #000 62.5%);
     1284        background-image:         linear-gradient(135deg, #4d4d4d 12.5%, #000 12.5%, #000 50%, #4d4d4d 50%, #4d4d4d 62.5%, #000 62.5%);
     1285        background-size: 4px 4px;
    12771286        -moz-box-sizing: border-box;
    12781287        box-sizing: border-box;
    12791288        width: 100%;