Changeset 49728 for branches/5.6/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss
- Timestamp:
- 12/01/2020 07:25:43 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss
r49574 r49728 20 20 font-size: var(--quote--font-size); 21 21 line-height: var(--quote--line-height); 22 position: absolute;23 22 left: calc(-0.5 * var(--global--spacing-horizontal)); 24 23 } … … 29 28 font-style: var(--quote--font-style-cite); 30 29 31 .has-background :not(.has-background-background-color)&,32 [class*="background-color"] :not(.has-background-background-color)&,33 [style*="background-color"] :not(.has-background-background-color)&,30 .has-background &, 31 [class*="background-color"] &, 32 [style*="background-color"] &, 34 33 .wp-block-cover[style*="background-image"] & { 35 34 color: currentColor; … … 42 41 border-right: none; 43 42 43 // Hide the left aligned quote. 44 44 &:before { 45 display: none; 46 } 47 48 // Align the quote left of the text. 49 p:before { 45 50 content: "\201D"; 46 left: initial; 47 right: calc(-0.5 * var(--global--spacing-horizontal)); 51 font-size: var(--quote--font-size); 52 font-weight: normal; 53 line-height: var(--quote--line-height); 54 margin-right: 5px; 48 55 } 49 56 } … … 79 86 &.has-text-align-right { 80 87 88 // Hide the left aligned quote. 81 89 &:before { 82 left: initial; 83 right: calc(-1 * var(--global--spacing-horizontal)); 90 display: none; 91 } 92 93 // Align the quote left of the text. 94 p:before { 95 content: "\201D"; 96 font-size: var(--quote--font-size-large); 97 font-weight: normal; 98 line-height: var(--quote--line-height-large); 99 margin-right: 10px; 84 100 } 85 101 }
Note: See TracChangeset
for help on using the changeset viewer.