Make WordPress Core

Changeset 33418


Ignore:
Timestamp:
07/25/2015 10:59:23 PM (11 years ago)
Author:
iseulde
Message:

Revert [31849] and [33351]

Also set the max-width of images in themes to 100%, not in pixels.

See #33022 and #31250.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/css/editor-style.css

    r32231 r33418  
    1616 * 7.0 - Audio / Video
    1717 * 8.0 - RTL
    18  * 9.0 - Media Queries
    1918 */
    2019
    … …  
    298297        border: 0;
    299298        height: auto;
    300         max-width: 660px;
     299        max-width: 100%;
    301300        vertical-align: middle;
    302301}
    … …  
    348347        font-family: "Noto Sans", sans-serif;
    349348        margin: 0 0 28px 0;
    350         max-width: 660px;
     349        max-width: 100%;
    351350        padding: 0;
    352351        text-align: inherit;
    … …  
    477476        text-align: right;
    478477}
    479 
    480 
    481 /**
    482  * 9.0 Media Queries
    483  */
    484 
    485 @media screen and (max-width: 740px) {
    486         body, img, .wp-caption {
    487                 max-width: 100%;
    488         }
    489 
    490         img, .wp-caption {
    491                 width: auto !important;
    492         }
    493 }
  • trunk/src/wp-content/themes/twentyfourteen/css/editor-style.css

    r32094 r33418  
    1818 * 9.0 - Audio/Video
    1919 * 10.0 - RTL
    20  * 11.0 - Media Queries
    2120 * ----------------------------------------------------------------------------
    2221 */
    … …  
    381380img {
    382381        height: auto;
    383         max-width: 474px;
     382        max-width: 100%;
    384383        vertical-align: middle;
    385384}
    … …  
    390389        color: #767676;
    391390        margin: 0 0 24px 0;
    392         max-width: 474px;
     391        max-width: 100%;
    393392        padding: 0;
    394393        text-align: left;
    … …  
    721720        text-align: right;
    722721}
    723 
    724 
    725 /**
    726  * 11.0 Media Queries
    727  */
    728 
    729 @media screen and (max-width: 494px) {
    730         body, img, .wp-caption {
    731                 max-width: 100%;
    732         }
    733 
    734         img, .wp-caption {
    735                 width: auto !important;
    736         }
    737 }
  • trunk/src/wp-content/themes/twentythirteen/css/editor-style.css

    r31849 r33418  
    1919 * 10.0 - Post Formats
    2020 * 11.0 - RTL
    21  * 12.0 - Media Queries
    2221 * ----------------------------------------------------------------------------
    2322 */
    … …  
    771770        content: none;
    772771}
    773 
    774 
    775 /**
    776  * 12.0 Media Queries
    777  */
    778 
    779 @media screen and (max-width: 604px) {
    780         body, img, .wp-caption {
    781                 max-width: 100%;
    782         }
    783 
    784         img, .wp-caption {
    785                 width: auto !important;
    786         }
    787 }
  • trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    r33417 r33418  
    142142        box-shadow: none;
    143143        width: 96%;
    144         min-width: 96%;
    145144        height: 16px;
    146145        display: block;
Note: See TracChangeset for help on using the changeset viewer.