- Timestamp:
- 02/20/2020 04:38:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/style-editor.scss
r46587 r47327 13 13 14 14 .wp-block[data-align="full"] { 15 width: 100%; 15 width: calc(100% + 28px); 16 max-width: calc(100% + 28px); 16 17 } 17 18 … … 19 20 20 21 .wp-block[data-align="full"] { 21 width: calc( 100% + 90px );22 max-width: calc( 100% + 90px );22 width: calc( 100% + 116px ); 23 max-width: calc( 100% + 115px ); 23 24 } 24 25 } … … 31 32 } 32 33 33 .editor-post-title__block,34 34 .editor-default-block-appender, 35 35 .editor-block-list__block { … … 42 42 } 43 43 44 .wp-block[data-align="full"] {45 position: relative;46 left: calc( -12.5% - 14px );47 width: calc( 125% + 116px );48 max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages.49 }50 51 44 .wp-block[data-align="right"] { 52 45 max-width: 125%; … … 58 51 59 52 .wp-block { 60 width: calc(100vw - (2 * #{$size__spacing-unit}));61 53 max-width: 100%; 62 54 … … 205 197 margin-top: 0; 206 198 margin-bottom: 0; 207 margin-left: 1 em;199 margin-left: 1rem; 208 200 position: relative; 209 201 top: 0.5em; 202 203 @include media(mobile) { 204 margin-left: 0; 205 } 210 206 } 211 207 … … 219 215 /** === Default Appender === */ 220 216 221 . editor-default-block-appender .editor-default-block-appender__content {217 .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { 222 218 @include font-family( $font__body ); 223 219 font-size: $font__size_base; … … 781 777 782 778 // Group block base styles 783 > . editor-block-list__block-edit > div > .wp-block-group {779 > .wp-block-group { 784 780 785 781 // Child: Full alignment 786 > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { 787 left: 0; 782 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 783 margin-left: 0; 784 margin-right: 0; 788 785 } 789 786 } 790 787 791 788 // Group block with background color 792 > . editor-block-list__block-edit > div > .wp-block-group.has-background {789 > .wp-block-group.has-background { 793 790 padding: $group-block-background__padding; 794 791 795 792 // Child: Full alignment 796 > .wp-block-group__inner-container > . editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {793 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 797 794 margin-left: -$group-block-background__padding; 798 795 width: calc(100% + #{$group-block-background__padding * 2}); … … 802 799 803 800 // Wide and full alignments 804 &[data-align="wide"] {801 &[data-align="wide"] > .is-block-content { 805 802 806 803 // Group block base styles. 807 > . editor-block-list__block-edit > div > .wp-block-group {804 > .wp-block-group { 808 805 809 806 // Child blocks: Default alignments 810 > .wp-block-group__inner-container > . editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {807 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 811 808 @include media(tablet) { 812 809 width: calc(8 * (100vw / 12)); … … 817 814 } 818 815 } 816 817 // Child blocks: Full alignment 818 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 819 padding-left: 0; 820 padding-right: 0; 821 } 819 822 } 820 823 821 824 // Group block with background color 822 > . editor-block-list__block-edit > div > .wp-block-group.has-background {825 > .wp-block-group.has-background { 823 826 824 827 // Child blocks: Default alignments 825 > .wp-block-group__inner-container > . editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {828 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 826 829 @include media(tablet) { 827 830 width: calc(8 * (100vw / 12) - #{$group-block-background__padding * 2}); … … 838 841 &[data-align="full"] { 839 842 840 // Max-width needs to be a pixel narrower than usual to prevent horizontal scrolling.841 @include media(mobile) {842 max-width: calc(100% + 89px);843 }844 @include media(tablet) {845 max-width: calc(125% + 114px);846 }847 848 843 // Group block base styles 849 > . editor-block-list__block-edit > div> .wp-block-group {844 > .is-block-content > .wp-block-group { 850 845 851 846 // Margins & padding are added to this container to mimic … … 853 848 // container. This way, child items sync up with the placement 854 849 // and size of other top-level blocks. 855 > .wp-block-group__inner-container > . editor-inner-blocks > .editor-block-list__layout {850 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { 856 851 857 852 @include media(mobile) { … … 920 915 921 916 // Group block with background color 922 > . editor-block-list__block-edit > div> .wp-block-group.has-background {917 > .is-block-content > .wp-block-group.has-background { 923 918 924 919 // When the Group block is full width, we can remove the left/right padding … … 932 927 933 928 // Child blocks: Full alignment 934 > .wp-block-group__inner-container > . editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {929 > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 935 930 margin-left: 0; 936 931 width: 100%;
Note: See TracChangeset
for help on using the changeset viewer.