Changeset 47327
- Timestamp:
- 02/20/2020 04:38:38 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes/twentynineteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/style-editor.css
r46586 r47327 552 552 /** === Editor Frame === */ 553 553 body .wp-block[data-align="full"] { 554 width: 100%; 554 width: calc(100% + 28px); 555 max-width: calc(100% + 28px); 555 556 } 556 557 557 558 @media only screen and (min-width: 600px) { 558 559 body .wp-block[data-align="full"] { 559 width: calc( 100% + 90px);560 max-width: calc( 100% + 90px);560 width: calc( 100% + 116px); 561 max-width: calc( 100% + 115px); 561 562 } 562 563 } … … 567 568 margin: 0 10%; 568 569 } 569 body .editor-post-title__block,570 570 body .editor-default-block-appender, 571 571 body .editor-block-list__block { … … 576 576 width: 100%; 577 577 } 578 body .wp-block[data-align="full"] {579 position: relative;580 left: calc( -12.5% - 14px);581 width: calc( 125% + 116px);582 max-width: calc( 125% + 115px);583 }584 578 body .wp-block[data-align="right"] { 585 579 max-width: 125%; … … 589 583 /** === Content Width === */ 590 584 .wp-block { 591 width: calc(100vw - (2 * 1rem));592 585 max-width: 100%; 593 586 } … … 780 773 margin-top: 0; 781 774 margin-bottom: 0; 782 margin-left: 1 em;775 margin-left: 1rem; 783 776 position: relative; 784 777 top: 0.5em; 778 } 779 780 @media only screen and (min-width: 600px) { 781 .editor-post-title__block:before { 782 margin-left: 0; 783 } 785 784 } 786 785 … … 792 791 793 792 /** === Default Appender === */ 794 . editor-default-block-appender .editor-default-block-appender__content {793 .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { 795 794 font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif; 796 795 font-size: 22px; … … 1315 1314 1316 1315 /** === Group Block === */ 1317 .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] { 1318 left: 0; 1319 } 1320 1321 .wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background { 1316 .wp-block[data-type="core/group"] > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1317 margin-left: 0; 1318 margin-right: 0; 1319 } 1320 1321 .wp-block[data-type="core/group"] > .wp-block-group.has-background { 1322 1322 padding: 22px; 1323 1323 } 1324 1324 1325 .wp-block[data-type="core/group"] > . editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {1325 .wp-block[data-type="core/group"] > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1326 1326 margin-left: -22px; 1327 1327 width: calc(100% + 44px); … … 1330 1330 1331 1331 @media only screen and (min-width: 768px) { 1332 .wp-block[data-type="core/group"][data-align="wide"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {1332 .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 1333 1333 width: calc(8 * (100vw / 12)); 1334 1334 } … … 1336 1336 1337 1337 @media only screen and (min-width: 1168px) { 1338 .wp-block[data-type="core/group"][data-align="wide"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {1338 .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 1339 1339 width: calc(6 * (100vw / 12 )); 1340 1340 } 1341 1341 } 1342 1342 1343 @media only screen and (min-width: 768px) { 1344 .wp-block[data-type="core/group"][data-align="wide"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 1343 .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1344 padding-left: 0; 1345 padding-right: 0; 1346 } 1347 1348 @media only screen and (min-width: 768px) { 1349 .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 1345 1350 width: calc(8 * (100vw / 12) - 44px); 1346 1351 } … … 1348 1353 1349 1354 @media only screen and (min-width: 1168px) { 1350 .wp-block[data-type="core/group"][data-align="wide"] > . editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) {1355 .wp-block[data-type="core/group"][data-align="wide"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="wide"]):not([data-align="full"]) { 1351 1356 width: calc(6 * (100vw / 12 ) - 44px); 1352 1357 } … … 1354 1359 1355 1360 @media only screen and (min-width: 600px) { 1356 .wp-block[data-type="core/group"][data-align="full"] { 1357 max-width: calc(100% + 89px); 1358 } 1359 } 1360 1361 @media only screen and (min-width: 768px) { 1362 .wp-block[data-type="core/group"][data-align="full"] { 1363 max-width: calc(125% + 114px); 1364 } 1365 } 1366 1367 @media only screen and (min-width: 600px) { 1368 .wp-block[data-type="core/group"][data-align="full"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout { 1361 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { 1369 1362 padding-left: 46px; 1370 1363 padding-right: 46px; … … 1373 1366 1374 1367 @media only screen and (min-width: 768px) { 1375 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout {1368 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { 1376 1369 width: 80%; 1377 1370 margin-left: 10%; … … 1382 1375 } 1383 1376 1384 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="full"]) {1377 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) { 1385 1378 max-width: calc(100vw - (2 * 1rem)); 1386 1379 } 1387 1380 1388 1381 @media only screen and (min-width: 768px) { 1389 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="full"]) {1382 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) { 1390 1383 max-width: calc(8 * (100vw / 12)); 1391 1384 } … … 1393 1386 1394 1387 @media only screen and (min-width: 1168px) { 1395 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block:not([data-align="full"]) {1388 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not([data-align="full"]) { 1396 1389 max-width: calc(6 * (100vw / 12)); 1397 1390 } … … 1399 1392 1400 1393 @media only screen and (min-width: 768px) { 1401 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="right"] {1394 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="right"] { 1402 1395 max-width: 125%; 1403 1396 } … … 1405 1398 1406 1399 @media only screen and (min-width: 768px) { 1407 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="wide"] {1400 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="wide"] { 1408 1401 width: calc(100% + 4px); 1409 1402 max-width: calc(100% + 4px); … … 1411 1404 } 1412 1405 1413 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align=full] {1406 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] { 1414 1407 max-width: calc(100vw + (2 * 1rem)); 1415 1408 } 1416 1409 1417 1410 @media only screen and (min-width: 600px) { 1418 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align=full] {1411 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] { 1419 1412 width: calc(100% + 92px); 1420 1413 left: -46px; … … 1423 1416 1424 1417 @media only screen and (min-width: 768px) { 1425 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align=full] {1418 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align=full] { 1426 1419 left: calc(-12.5% - 58px); 1427 1420 width: calc(125% + 120px); … … 1430 1423 } 1431 1424 1432 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div> .wp-block-group.has-background {1425 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background { 1433 1426 padding: 22px 0; 1434 1427 } 1435 1428 1436 1429 @media only screen and (min-width: 600px) { 1437 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div> .wp-block-group.has-background {1430 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background { 1438 1431 padding-left: 0; 1439 1432 padding-right: 0; … … 1441 1434 } 1442 1435 1443 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {1436 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1444 1437 margin-left: 0; 1445 1438 width: 100%; … … 1447 1440 1448 1441 @media only screen and (min-width: 600px) { 1449 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {1442 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1450 1443 width: calc(100% + 92px); 1451 1444 } … … 1453 1446 1454 1447 @media only screen and (min-width: 768px) { 1455 .wp-block[data-type="core/group"][data-align="full"] > . editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {1448 .wp-block[data-type="core/group"][data-align="full"] > .is-block-content > .wp-block-group.has-background > .wp-block-group__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block[data-align="full"] { 1456 1449 width: calc(125% + 120px); 1457 1450 } -
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.