WordPress.org

Make WordPress Core

Ticket #45239: 45239.1.patch

File 45239.1.patch, 3.3 KB (added by laurelfulford, 2 years ago)
  • src/wp-content/themes/twentyeleven/blocks.css

     
    130130        width: 100%;
    131131}
    132132
    133 /* Cover Image */
     133/* Cover */
    134134
    135 .wp-block-cover-image.aligncenter {
     135.wp-block-cover-image.aligncenter,
     136.wp-block-cover.aligncenter {
    136137        clear: both;
    137138        display: flex;
    138139}
    139140
    140 .wp-block-cover-image.alignleft {
     141.wp-block-cover-image.alignleft,
     142.wp-block-cover.alignleft {
    141143        margin-right: 1.625em;
    142144}
    143145
    144 .wp-block-cover-image.alignright {
     146.wp-block-cover-image.alignright,
     147.wp-block-cover.alignright {
    145148        margin-left: 1.625em;
    146149}
    147150
     
    260263        max-width: 100%;
    261264}
    262265
     266/* Media & Text */
     267
     268.wp-block-media-text {
     269        margin-bottom: 1.625em;
     270}
     271
     272.wp-block-media-text *:last-child {
     273        margin-bottom: 0;
     274}
     275
    263276/*--------------------------------------------------------------
    2642775.0 Blocks - Widgets
    265278--------------------------------------------------------------*/
    266279
     280/* Archives, Categories & Latest Posts */
     281
     282.wp-block-archives.aligncenter,
     283.wp-block-categories.aligncenter,
     284.wp-block-latest-posts.aligncenter {
     285        list-style-position: inside;
     286        margin-left: 2.5em;
     287        text-align: center;
     288}
     289
     290.rtl .wp-block-archives.aligncenter,
     291.rtl .wp-block-categories.aligncenter,
     292.rtl .wp-block-latest-posts.aligncenter {
     293        margin-left: 0;
     294        margin-right: 2.5em;
     295}
     296
    267297/* Latest Comments */
    268298
    269299.wp-block-latest-comments {
  • src/wp-content/themes/twentyeleven/editor-blocks.css

     
    7272
    7373/* Main column width */
    7474
    75 body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
    76 body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
    77 body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
    78         max-width: 614px;
     75.editor-styles-wrapper {
     76        max-width: 100% !important; /* Override where editor-style.css is affecting this. */
    7977}
    8078
     79.wp-block {
     80        max-width: 614px; /* 584px + 30px to account for padding */
     81}
     82
    8183/* Link styles */
    8284
    8385.edit-post-visual-editor a,
     
    288290        font-size: 16px;
    289291}
    290292
     293/* Cover */
    291294
    292 /* Cover Image */
    293 
    294 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text {
     295.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text,
     296.edit-post-visual-editor .editor-block-list__block .wp-block-cover p.wp-block-cover-text {
    295297        font-size: 30px;
    296298        line-height: 37.5px;
    297299}
     
    385387        text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    386388}
    387389
     390/* Media & Text */
     391
     392.wp-block-media-text *:last-child {
     393        margin-bottom: 0;
     394}
     395
    388396/*--------------------------------------------------------------
    3893976.0 Blocks - Widgets
    390398--------------------------------------------------------------*/
    391399
     400/* Archives, Categories & Latest Posts */
     401
     402[data-align="center"] .wp-block-archives ul,
     403[data-align="center"] .wp-block-categories ul,
     404[data-align="center"] .wp-block-latest-posts ul {
     405        list-style-position: inside;
     406        margin-left: 2.5em;
     407        text-align: center;
     408}
     409
    392410/* Latest Comments */
    393411
    394412.wp-block-latest-comments {