- Timestamp:
- 11/19/2018 09:26:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss
r43904 r43909 6 6 7 7 @import "sass/variables-site/variables-site"; 8 @import "sass/variables-site/colors";9 8 @import "sass/mixins/mixins-master"; 9 10 /** === Font Overide === */ 11 12 /* 13 * Chrome renders extra-wide characters for the Hoefler Text font. 14 * This results in a jumping cursor when typing in both the Classic and block 15 * editors. The following font-face override fixes the issue by manually inserting 16 * a custom font that includes just a Hoefler Text space replacement for that 17 * character instead. 18 */ 19 @font-face { 20 font-family: 'NonBreakingSpaceOverride'; 21 src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp4IADDCAPCEFMGpMZ9AQpTfQtQGhLbGVBZFV8BaqNyP68oTZgHNj3M8kBPfXTTC9t90UuzYhy9ciH0grVlOcqyCytisv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 23 } 24 25 $font__body: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 10 26 11 27 /** === Editor Frame === */ … … 54 70 } 55 71 } 72 } 73 74 /** === Editor Block Toolbar Position === */ 75 76 // Since 2019 left-aligns wide and fullwide blocks, left align the toolbar too. 77 .editor-block-list__block[data-align="wide"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar, 78 .editor-block-list__block[data-align="full"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar { 79 max-width: none; 56 80 } 57 81 … … 154 178 } 155 179 156 .has-primary-background-color { 180 // Use white text against these backgrounds by default. 181 .has-primary-background-color, 182 .has-secondary-background-color, 183 .has-dark-gray-background-color, 184 .has-light-gray-background-color { 185 color: $color__background-body; 157 186 158 187 p, … … 163 192 h5, 164 193 h6, 165 a, 166 a:hover { 194 a { 167 195 color: $color__background-body; 196 } 197 } 198 199 // Use dark gray text against this background by default. 200 .has-white-background-color { 201 color: $color__text-main; 202 203 p, 204 h1, 205 h2, 206 h3, 207 h4, 208 h5, 209 h6, 210 a { 211 color: $color__text-main; 168 212 } 169 213 } … … 277 321 max-width: 100%; 278 322 } 323 324 @include media(tablet) { 325 326 .wp-block-cover { 327 padding: $size__spacing-unit; 328 } 329 } 279 330 } 280 331 … … 393 444 394 445 .wp-block-pullquote { 395 border: none; 446 border-color: transparent; 447 border-width: 2px; 396 448 color: #000; 397 449 … … 413 465 max-width: calc( 100% - (2 * #{ $size__spacing-unit})); 414 466 467 &.has-text-color p { 468 color: inherit; 469 } 470 471 &:not(.has-text-color) { 472 color: $color__background-body; 473 } 474 415 475 @include media(tablet) { 416 476 max-width: 80%; 417 477 } 418 }419 420 blockquote:not(.has-text-color) {421 color: $color__background-body;422 478 } 423 479
Note: See TracChangeset
for help on using the changeset viewer.