Make WordPress Core

Timestamp:
11/11/2019 08:54:49 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty: Make CSS adjustments to account for the latest editor changes and ensure that group blocks work in expected ways.

Props williampatton, allancole, karmatosed, pierlo, joen, ianbelanger.
Fixes #48557.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

    r46701 r46711  
    7979}
    8080
    81 .wp-block[data-align="wide"] .wp-block,
    82 .wp-block[data-align="full"] .wp-block {
    83     max-width: none;
    84 }
    85 
    8681.wp-block[data-align="wide"] .wp-block[data-align="wide"],
    8782.wp-block[data-align="full"] .wp-block[data-align="wide"] {
     
    107102
    108103.wp-block[data-align="wide"] {
    109     margin-bottom: 30px;
    110     margin-top: 30px;
    111104    max-width: 1200px;
    112105}
    113106
    114107.wp-block[data-align="full"] {
    115     margin-bottom: 50px;
    116     margin-top: 50px;
    117108    max-width: none;
    118109}
     
    178169.has-accent-background-color {
    179170    background-color: #cd2653;
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
    180195}
    181196
     
    679694.editor-styles-wrapper .wp-block-cover .wp-block-cover__inner-container {
    680695    margin: 0 auto;
    681     max-width: 1200px;
    682696    width: calc(100% - 40px);
    683697}
    684698
    685 [data-align="left"] .wp-block-cover,
    686 [data-align="left"] .wp-block-cover-image,
    687 [data-align="right"] .wp-block-cover,
    688 [data-align="right"] .wp-block-cover-image {
    689     max-width: 260px;
     699.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="right"],
     700.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="left"] {
     701    height: auto;
     702    max-height: none;
     703}
     704
     705.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover {
     706    text-align: right;
     707}
     708
     709.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
     710    text-align: left;
     711}
     712
     713.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="right"] .block-editor-block-list__block-edit,
     714.editor-styles-wrapper .wp-block[data-type="core/cover"][data-align="left"] .block-editor-block-list__block-edit {
     715    float: none;
     716    margin-right: 0;
     717    margin-left: 0;
     718    max-width: 100%;
    690719}
    691720
     
    10531082    }
    10541083
     1084
     1085
     1086
     1087
     1088
     1089
     1090
     1091
     1092
     1093
     1094
     1095
     1096
     1097
     1098
     1099
     1100
     1101
     1102
     1103
     1104
     1105
     1106
     1107
     1108
     1109
     1110
    10551111    /* BLOCK: PULL QUOTE */
    10561112
     
    11321188    }
    11331189
    1134     .wp-block[data-align="wide"],
    1135     .wp-block[data-align="full"] {
    1136         margin-bottom: 60px;
    1137         margin-top: 60px;
    1138     }
    1139 
    11401190    /* TYPOGRAPHY */
    11411191
     
    12091259    /* BLOCK: GROUP */
    12101260
    1211     .editor-styles-wrapper .wp-block-group.has-background {
     1261    .editor-styles-wrapper .wp-block:not([data-align="wide"]):not([data-align="full"]) div:not([class*="__inner-container"]) .wp-block-group.has-background,
     1262    .editor-styles-wrapper .wp-block div[class*="__inner-container"] .wp-block[data-align="wide"] .wp-block-group.has-background,
     1263    .editor-styles-wrapper .wp-block div[class*="__inner-container"] .wp-block[data-align="full"] .wp-block-group.has-background {
    12121264        padding: 40px;
     1265
     1266
     1267
     1268
     1269
    12131270    }
    12141271
     
    12841341
    12851342
    1286     /* STRUCTURE */
    1287 
    1288     .wp-block[data-align="wide"],
    1289     .wp-block[data-align="full"] {
    1290         margin-bottom: 80px;
    1291         margin-top: 80px;
    1292     }
    1293 
    12941343    /* BLOCK: COLUMNS */
    12951344
    12961345    .wp-block-column {
    12971346        font-size: 18px;
    1298     }
    1299 
    1300     /* BLOCK: GROUP */
    1301 
    1302     .wp-block[data-align="wide"] .wp-block-group.has-background,
    1303     .wp-block[data-align="full"] .wp-block-group.has-background {
    1304         padding: 80px 40px;
    13051347    }
    13061348
     
    13331375    .editor-styles-wrapper .wp-block h6 {
    13341376        font-size: 18px;
    1335     }
    1336 
    1337     /* STRUCTURE */
    1338 
    1339     .wp-block[data-align="wide"],
    1340     .wp-block[data-align="full"] {
    1341         margin-bottom: 80px;
    1342         margin-top: 80px;
    13431377    }
    13441378
Note: See TracChangeset for help on using the changeset viewer.