Ticket #55991: 55991-2.diff
| File 55991-2.diff, 3.8 KB (added by , 4 years ago) |
|---|
-
src/wp-content/themes/twentytwentyone/assets/sass/04-elements/blockquote.scss
1 1 blockquote { 2 padding: 0;3 2 position: relative; 4 3 margin: var(--global--spacing-vertical) 0 var(--global--spacing-vertical) var(--global--spacing-horizontal); 5 4 … … 19 18 p { 20 19 letter-spacing: var(--heading--letter-spacing-h4); 21 20 font-family: var(--quote--font-family); 22 font-size: var(--quote--font-size);23 21 font-style: var(--quote--font-style); 24 22 font-weight: var(--quote--font-weight); 25 23 line-height: var(--quote--line-height); … … 29 27 footer { 30 28 font-weight: normal; 31 29 color: var(--global--color-primary); 32 font-size: var(--global--font-size-xs);33 30 letter-spacing: var(--global--letter-spacing); 34 31 } 35 32 … … 57 54 58 55 &:before { 59 56 content: "\201C"; 60 font-size: var(--quote--font-size);61 57 line-height: var(--quote--line-height); 62 58 position: absolute; 63 59 left: calc(-0.5 * var(--global--spacing-horizontal)); … … 67 63 cite, 68 64 footer { 69 65 color: var(--global--color-primary); 70 font-size: var(--global--font-size-xs);71 66 font-style: var(--quote--font-style-cite); 72 67 } 73 68 … … 79 74 } 80 75 } 81 76 } 77 78 /* Ony apply the default font size if the user has not selected a size. */ 79 blockquote:not([class*="font-size"]) { 80 font-size: var(--quote--font-size); 81 82 &:before { 83 font-size: var(--quote--font-size); 84 } 85 86 .wp-block-quote__citation, 87 cite, 88 footer { 89 font-size: var(--global--font-size-xs); 90 } 91 } -
src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss
5 5 6 6 p { 7 7 font-family: var(--quote--font-family); 8 font-size: var(--quote--font-size);9 8 font-style: var(--quote--font-style); 10 9 font-weight: var(--quote--font-weight); 11 10 line-height: var(--quote--line-height); … … 17 16 18 17 &:before { 19 18 content: "\201C"; 20 font-size: var(--quote--font-size);21 19 line-height: var(--quote--line-height); 22 20 left: calc(-0.5 * var(--global--spacing-horizontal)); 23 21 } … … 24 22 25 23 .wp-block-quote__citation { 26 24 color: currentColor; 27 font-size: var(--global--font-size-xs);28 25 font-style: var(--quote--font-style-cite); 29 26 30 27 .has-background &, … … 63 60 } 64 61 } 65 62 63 // This block style has been removed from WordPress core, 64 // the CSS is kept for backwards compatibility. 66 65 &.is-large, 67 66 &.is-style-large { 68 67 padding-left: 0; -
src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_style.scss
3 3 4 4 &:before { 5 5 content: "\201C"; 6 font-size: var(--quote--font-size);7 6 line-height: var(--quote--line-height); 8 7 left: 8px; 9 8 } … … 11 10 .wp-block-quote__citation, 12 11 cite, 13 12 footer { 14 15 13 .has-background &, 16 14 [class*="background-color"] &, 17 15 [style*="background-color"] &, … … 136 134 } 137 135 } 138 136 } 137 138 /* Ony apply the default font size if the user has not selected a size. */ 139 blockquote:not([class*="font-size"]) { 140 font-size: var(--quote--font-size); 141 142 &:before { 143 font-size: var(--quote--font-size); 144 } 145 146 .wp-block-quote__citation, 147 cite, 148 footer { 149 font-size: var(--global--font-size-xs); 150 } 151 } 152