Make WordPress Core

Changeset 33415


Ignore:
Timestamp:
07/25/2015 01:11:32 PM (9 years ago)
Author:
iseulde
Message:

Editor: add space around aligned images

Also increase the font size of captions.

Part props jmichaelward.
Fixes #32176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    r33351 r33415  
    7272}
    7373
    74 .aligncenter,
    75 dl.aligncenter,
    76 .html5-captions .wp-caption.aligncenter {
     74.mceIEcenter {
     75    text-align: center;
     76}
     77
     78.wp-caption {
     79    margin: 0;
     80}
     81
     82.wp-caption img {
     83    display: block;
     84}
     85
     86div.mceTemp {
     87    -ms-user-select: element;
     88}
     89
     90dl.wp-caption,
     91dl.wp-caption * {
     92    -webkit-user-drag: none;
     93}
     94
     95.wp-caption-dd {
     96    font-size: 14px;
     97    padding-top: 0.5em;
     98    margin: 0; /* browser reset */
     99}
     100
     101.aligncenter {
    77102    display: block;
    78103    margin-left: auto;
     
    82107.alignleft {
    83108    float: left;
     109    margin: 0.5em 1em 0.5em 0;
    84110}
    85111
    86112.alignright {
    87113    float: right;
    88 }
    89 
    90 .wp-caption {
    91     border: 1px solid #ddd;
    92     text-align: center;
    93     background-color: #f3f3f3;
    94     padding-top: 4px;
    95     margin: 10px 0;
    96 }
    97 
    98 .html5-captions .wp-caption {
    99     border: none;
    100     background-color: transparent;
    101     margin: 0;
    102     padding: 0;
    103 }
    104 
    105 .mceIEcenter {
    106     text-align: center;
    107 }
    108 
    109 .wp-caption img {
    110     margin: 0;
    111     padding: 0;
    112     border: 0 none;
    113 }
    114 
    115 div.mceTemp {
    116     -ms-user-select: element;
    117 }
    118 
    119 dl.wp-caption,
    120 dl.wp-caption * {
    121     -webkit-user-drag: none;
    122 }
    123 
    124 .wp-caption-dd {
    125     font-size: 11px;
    126     line-height: 17px;
    127     padding: 0 4px 5px;
    128     margin: 0;
     114    margin: 0.5em 0 0.5em 1em;
    129115}
    130116
Note: See TracChangeset for help on using the changeset viewer.