WordPress.org

Making WordPress.org

Ticket #1653: 1653.patch

File 1653.patch, 1.4 KB (added by juanfra, 6 years ago)

Modified image size and added CSS to make it work with retina. (Don't know if we need to add a new size or by editing the 'wccentral-thumbnail-large' is fine).

  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

     
    5656
    5757                // Add some new image sizes, also site shot is 205x148, minimap is 130x70
    5858                add_image_size( 'wccentral-thumbnail-small', 82, 37, true );
    59                 add_image_size( 'wccentral-thumbnail-large', 926, 160, true );
     59                add_image_size( 'wccentral-thumbnail-large', 1852, 320, true );
    6060                add_image_size( 'wccentral-thumbnail-past', 130, 60, true );
    6161                add_image_size( 'wccentral-thumbnail-hero', 493, 315, true );
    6262
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/style.css

     
    17721772.single-wordcamp .wc-banner img {
    17731773        border: 0;
    17741774        vertical-align: middle;
    1775 
     1775        width: 100%;
     1776        height: auto;
     1777
    17761778        box-shadow: none;
    1777         -webkit-box-shadow: none;
     1779        -webkit-box-shadow: none;
    17781780}