Make WordPress Core

Ticket #25300: 25300.diff

File 25300.diff, 2.1 KB (added by iamtakashi, 13 years ago)

Here is the patch to tone down the diagonal lines and to recreate the pattern with CSS.

  • src/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-image: -webkit-linear-gradient(135deg, #dfdfdf 12.5%, #fff 12.5%, #fff 50%, #dfdfdf 50%, #dfdfdf 62.5%, #fff 62.5%);
     888        background-image:         linear-gradient(135deg, #dfdfdf 12.5%, #fff 12.5%, #fff 50%, #dfdfdf 50%, #dfdfdf 62.5%, #fff 62.5%);
     889        background-size: 4px 4px;
    889890        display: block;
    890891        float: none;
    891892        margin: 0;
    … …  
    896897        height: auto;
    897898        z-index: 0;
    898899}
     900.attachment-featured-thumbnail:hover {
     901        background-image: -webkit-linear-gradient(135deg, #969696 12.5%, #fff 12.5%, #fff 50%, #969696 50%, #969696 62.5%, #fff 62.5%);
     902        background-image:         linear-gradient(135deg, #969696 12.5%, #fff 12.5%, #fff 50%, #969696 50%, #969696 62.5%, #fff 62.5%);
     903}
    899904.entry-header {
    900905        position: relative;
    901906        z-index: 1;
    … …  
    12721277----------------------------------------------- */
    12731278
    12741279#featured-content {
    1275         background: #000 url(images/pattern-dark.png) repeat 0 0;
    1276         background-size: 5px 5px;
     1280        background-image: -webkit-linear-gradient(135deg, #4d4d4d 12.5%, #000 12.5%, #000 50%, #4d4d4d 50%, #4d4d4d 62.5%, #000 62.5%);
     1281        background-image:         linear-gradient(135deg, #4d4d4d 12.5%, #000 12.5%, #000 50%, #4d4d4d 50%, #4d4d4d 62.5%, #000 62.5%);
     1282        background-size: 4px 4px;
    12771283        -moz-box-sizing: border-box;
    12781284        box-sizing: border-box;
    12791285        width: 100%;