- Timestamp:
- 11/02/2018 11:52:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss
r43842 r43860 1 1 /*! 2 2 Twenty Nineteen Editor Styles 3 4 NOTE: Styling alignment styles require use of [data-align] selectors.5 This is not ideal, but it works. Styles using those selectors should be refactored6 when Gutenberg supports styling those variations more intuitively.7 3 */ 8 4 … … 13 9 @import "sass/mixins/mixins-master"; 14 10 11 /** === Editor Frame === */ 12 13 body { 14 15 // Non-standard media query necessary to override a Gutenberg breakpoint style. 16 @media screen and (min-width: 600px) { 17 .wp-block[data-align="full"] { 18 width: calc( 100% + 90px ); 19 max-width: calc( 100% + 90px ); 20 } 21 } 22 23 @include media(tablet) { 24 overflow-x: hidden; 25 26 .editor-writing-flow { 27 max-width: 80%; 28 margin: 0 10%; 29 } 30 31 .editor-post-title__block, 32 .editor-default-block-appender, 33 .editor-block-list__block { 34 margin-left: 0; 35 margin-right: 0; 36 } 37 38 .wp-block[data-align="wide"] { 39 width: 100%; 40 } 41 42 .wp-block[data-align="full"] { 43 position: relative; 44 left: calc( -12.5% - 14px ); 45 width: calc( 125% + 116px ); 46 max-width: calc( 125% + 116px ); 47 } 48 49 .wp-block[data-align="right"] { 50 max-width: 125%; 51 } 52 } 53 } 54 15 55 /** === Content Width === */ 16 56 17 57 .wp-block { 18 58 width: calc(100vw - (2 * #{$size__spacing-unit})); 59 max-width: 100%; 19 60 20 61 @include media(tablet) { … … 24 65 @include media(desktop) { 25 66 width: calc(6 * (100vw / 12 )); 67 } 68 69 .wp-block { 70 width: 100%; 26 71 } 27 72 } … … 126 171 } 127 172 173 /** === Post Title === */ 174 175 .editor-post-title__block { 176 @include post-section-dash; 177 178 &:before { 179 width: $font__size-xxl; 180 margin-top: 0; 181 margin-bottom: 0; 182 margin-left: 1em; 183 position: relative; 184 top: 0.5em; 185 } 186 187 .editor-post-title__input { 188 font-family: $font__heading; 189 font-size: $font__size-xxl; 190 } 191 } 192 193 /** === Default Appender === */ 194 195 .editor-default-block-appender input[type="text"].editor-default-block-appender__content { 196 font-family: $font__body; 197 font-size: $font__size_base; 198 } 199 128 200 /** === Paragraph === */ 129 201 … … 152 224 153 225 &.has-left-content { 154 justify-content: center;155 226 156 227 h2, … … 161 232 162 233 &.has-right-content { 163 justify-content: center;164 234 165 235 h2, … … 170 240 } 171 241 172 body[data-type="core/cover"][data-align="left"],173 body[data-type="core/cover"][data-align="right"] {242 .wp-block[data-type="core/cover"][data-align="left"], 243 .wp-block[data-type="core/cover"][data-align="right"] { 174 244 175 245 h2, … … 180 250 } 181 251 182 body[data-type="core/cover"][data-align="wide"],183 body[data-type="core/cover"][data-align="full"] {252 .wp-block[data-type="core/cover"][data-align="wide"], 253 .wp-block[data-type="core/cover"][data-align="full"] { 184 254 185 255 @include media(desktop) { … … 308 378 } 309 379 310 body[data-type="core/pullquote"],311 body[data-type="core/pullquote"][data-align="left"],312 body[data-type="core/pullquote"][data-align="right"] {380 .wp-block[data-type="core/pullquote"], 381 .wp-block[data-type="core/pullquote"][data-align="left"], 382 .wp-block[data-type="core/pullquote"][data-align="right"] { 313 383 314 384 blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before, … … 338 408 } 339 409 340 body[data-type="core/pullquote"][data-align="left"],341 body[data-type="core/pullquote"][data-align="right"] {410 .wp-block[data-type="core/pullquote"][data-align="left"], 411 .wp-block[data-type="core/pullquote"][data-align="right"] { 342 412 343 413 .editor-block-list__block-edit { … … 413 483 color: $color__text-light; 414 484 font-size: $font__size-lg; 415 letter-spacing: $font__size-sm; 485 letter-spacing: calc(2 * #{$size__spacing-unit}); 486 padding-left: calc(2 * #{$size__spacing-unit}); 416 487 } 417 488 } … … 432 503 li { 433 504 font-family: $font__heading; 434 font-size: $font__size-lg;505 font-size: calc(#{$font__size_base} * #{$font__size-ratio}); 435 506 font-weight: bold; 436 507 line-height: $font__line-height-heading; … … 499 570 .wp-caption { 500 571 dd { 572 color: $color__text-light; 573 font-size: $font__size-xs; 574 font-family: $font__heading; 575 line-height: $font__line-height-pre; 576 margin: 0; 577 padding: ( $size__spacing-unit * .5 ); 578 text-align: left; 501 579 text-align: center; 502 580 -webkit-margin-start: 0px;
Note: See TracChangeset
for help on using the changeset viewer.