Make WordPress Core

Changeset 36957


Ignore:
Timestamp:
03/10/2016 09:12:25 PM (11 years ago)
Author:
karmatosed
Message:

Twenty Elevent: Captioned image fix for editor
Fixes #33153
Props: @iseulde

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

Legend:

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

    r22154 r36957  
    44*/
    55
    6 html .mceContentBody {
    7         max-width: 584px;
    8 }
    9 * {
    10         color: inherit;
    11         font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
    12         font-style: inherit;
    13         font-weight: inherit;
    14         line-height: 1.625;
    15 }
    166body {
    177        color: #333;
     
    199        font-weight: 300;
    2010        line-height: 1.625;
     11        max-width: 584px;
    2112}
    2213
     
    238229
    239230/* Images */
    240 img[class*="wp-image-"] {
    241         height: auto;
    242         max-width: 97.5%;
    243 }
    244231img.size-full {
    245232        width: auto; /* Prevent stretching of full-size images in IE8 */
     
    255242        margin-top: 0.4em;
    256243}
    257 img,
    258 .editor-attachment {
     244img {
    259245        border: 1px solid #ddd;
    260246        padding: 6px;
     247        height: auto;
     248        max-width: 97.5%;
     249        max-width: calc( 100% - 14px );
    261250}
    262251img.alignleft,
     
    270259        margin-bottom: 1.625em;
    271260        max-width: 96%;
    272         padding: 9px;
     261        max-width: calc( 100% - 22px );
     262        padding: 9px 11px;
    273263}
    274264.wp-caption img {
    275265        display: block;
    276         margin: 5px auto 0 !important;
     266        margin: 0 -2px;
    277267        max-width: 98%;
     268        max-width: calc( 100% - 10px );
    278269        border-color: #eee;
    279270}
    280 .wp-caption .wp-caption-text,
    281 .wp-caption-dd {
     271.wp-caption .wp-caption-dd {
    282272        color: #666;
    283         font-family: Georgia, serif !important;
     273        font-family: Georgia, serif;
    284274        font-size: 12px;
    285         margin: 0 0 0.6em 0 !important;
    286         padding: 0 0 5px 40px;
     275        margin-bottom: 0.6em;
     276        padding: 10px 0 5px 40px;
    287277        position: relative;
    288         text-align: left;
    289 }
    290 .wp-caption .wp-caption-text:before {
     278}
     279.wp-caption .wp-caption-dd:before {
    291280        color: #666;
    292281        content: '\2014';
     
    299288        top: 7px;
    300289}
    301 a:focus img[class*="wp-image-"],
    302 a:hover img[class*="wp-image-"],
    303 a:active img[class*="wp-image-"] {
     290a:focus img,
     291a:hover img,
     292a:active img {
    304293        background: #eee;
    305294        border-color: #bbb;
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r35802 r36957  
    911911        margin-bottom: 1.625em;
    912912        max-width: 96%;
     913        max-width: calc( 100% - 18px );
    913914        padding: 9px;
    914915}
    915916.wp-caption img {
    916917        display: block;
    917         margin: -2px 0 0 -2px;
    918918        max-width: 98%;
     919        max-width: calc( 100% - 14px );
    919920}
    920921.wp-caption .wp-caption-text,
     
    966967        padding: 6px;
    967968        max-width: 97.5%;
     969        max-width: calc( 100% - 14px );
    968970}
    969971.wp-caption img {
Note: See TracChangeset for help on using the changeset viewer.