WordPress.org

Make WordPress Core

Changeset 22195


Ignore:
Timestamp:
10/11/12 20:02:33 (18 months ago)
Author:
lancewillett
Message:

Twenty Ten and Eleven: more elegant fix for long word overflow in sidebars. Also improves image resizing for images in widgets in Twenty Ten. Props obenland, fixes #21151; see #21503 also.

Location:
trunk/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/style.css

    r22123 r22195  
    17531753} 
    17541754.widget { 
     1755    word-wrap: break-word; 
     1756    -webkit-hyphens: auto; 
     1757    -moz-hyphens: auto; 
     1758    hyphens: auto; 
    17551759    clear: both; 
    17561760    margin: 0 0 2.2em; 
  • trunk/wp-content/themes/twentyten/style.css

    r22194 r22195  
    785785img.size-large, 
    786786img.size-medium, 
    787 .attachment img { 
     787.attachment img, 
     788.widget-container img { 
    788789    max-width: 100%; /* When images are too wide for containing element, force them to fit. */ 
    789790    height: auto; /* Override height to match resized width for correct aspect ratio. */ 
     
    11331134} 
    11341135.widget-container { 
     1136    word-wrap: break-word; 
     1137    -webkit-hyphens: auto; 
     1138    -moz-hyphens: auto; 
     1139    hyphens: auto; 
    11351140    margin: 0 0 18px 0; 
     1141} 
     1142.widget-container .wp-caption img { 
     1143    margin: auto; 
    11361144} 
    11371145.widget-title { 
Note: See TracChangeset for help on using the changeset viewer.