WordPress.org

Make WordPress Core

Ticket #21475: 21475.patch

File 21475.patch, 597 bytes (added by pdclark, 21 months ago)

Set image width and padding as percentage in galleries

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

    diff --git wp-content/themes/twentyeleven/style.css wp-content/themes/twentyeleven/style.css
    index 593fdf1..5d818f8 100644
    img#wpstats { 
    928928        width: 23%; 
    929929        padding-right: 2%; 
    930930} 
    931 #content .gallery-columns-4 .gallery-item img { 
    932         width: 100%; 
     931#content .gallery-item a { 
     932        width: 90%; 
     933        display:block; 
     934} 
     935#content .gallery dt.gallery-icon img { 
     936        max-width: 90%; 
    933937        height: auto; 
     938        padding: 5%; 
     939} 
     940#content .gallery-columns-1 dt.gallery-icon img { 
     941        padding: 3%; 
    934942} 
    935943 
    936944/* Image borders */