- Timestamp:
- 10/30/2018 02:13:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss
r43808 r43842 103 103 } 104 104 105 .has-primary-background-color { 106 107 p, 108 h1, 109 h2, 110 h3, 111 h4, 112 h5, 113 h6, 114 a, 115 a:hover { 116 color: $color__background-body; 117 } 118 } 119 105 120 figcaption, 106 121 .gallery-caption { … … 124 139 } 125 140 126 /** === Cover Image=== */127 128 .wp-block-cover -image{141 /** === Cover === */ 142 143 .wp-block-cover { 129 144 130 145 h2, 131 .wp-block-cover- image-text {146 .wp-block-cover-text { 132 147 font-family: $font__heading; 133 148 font-size: $font__size-xl; … … 140 155 141 156 h2, 142 .wp-block-cover- image-text {157 .wp-block-cover-text { 143 158 padding: 1em; 144 159 } … … 149 164 150 165 h2, 151 .wp-block-cover- image-text {166 .wp-block-cover-text { 152 167 padding: 1em; 153 168 } … … 155 170 } 156 171 157 body[data-type="core/cover -image"][data-align="left"],158 body[data-type="core/cover -image"][data-align="right"] {172 body[data-type="core/cover"][data-align="left"], 173 body[data-type="core/cover"][data-align="right"] { 159 174 160 175 h2, 161 .wp-block-cover- image-text {176 .wp-block-cover-text { 162 177 width: 100%; 163 178 max-width: 305px; … … 165 180 } 166 181 167 body[data-type="core/cover -image"][data-align="wide"],168 body[data-type="core/cover -image"][data-align="full"] {182 body[data-type="core/cover"][data-align="wide"], 183 body[data-type="core/cover"][data-align="full"] { 169 184 170 185 @include media(desktop) { 171 186 h2, 172 .wp-block-cover- image-text {187 .wp-block-cover-text { 173 188 padding: 0; 174 189 width: calc(6 * (100vw / 12)); … … 201 216 } 202 217 203 .wp-block-button__link:not(.has-background), 204 .wp-block-button__link:not(.has-background) { 218 &:not(.is-style-outline) .wp-block-button__link { 205 219 background: $color__background-button; 206 220 } … … 210 224 } 211 225 212 &.is-style-outline .wp-block-button__link,213 &.is-style-outline .wp-block-button__link:hover,214 &.is-style-outline .wp-block-button__link:focus,215 &.is-style-outline .wp-block-button__link:active {226 &.is-style-outline, 227 &.is-style-outline:hover, 228 &.is-style-outline:focus, 229 &.is-style-outline:active { 216 230 background: transparent; 217 border-color: $color__background-button; 218 219 &:not(.has-text-color) { 220 color: $color__background-button; 231 color: $color__background-button; 232 233 .wp-block-button__link { 234 background: transparent; 235 236 &:not(.has-text-color) { 237 color: $color__background-button; 238 } 221 239 } 222 240 } … … 275 293 } 276 294 277 blockquote:not(.has-text-color) p, 278 .wp-block-pullquote__citation { 279 color: white; 295 blockquote:not(.has-text-color) { 296 color: $color__background-body; 280 297 } 281 298 … … 303 320 margin-bottom: 0.5em; 304 321 margin-top: 0.5em; 305 color: $color__text-main;306 322 307 323 @include media(tablet) { … … 315 331 line-height: 1.6; 316 332 text-transform: none; 317 color: $color__text-light;318 333 } 319 334 … … 335 350 .wp-block-pullquote.is-style-solid-color { 336 351 padding: 1em; 337 338 p,339 .wp-block-pullquote__citation {340 color: white;341 }342 352 } 343 353 } … … 426 436 line-height: $font__line-height-heading; 427 437 438 &:not(.menu-item-has-children) { 439 padding-bottom: ( .75 * $size__spacing-unit ); 440 } 441 428 442 a { 429 443 text-decoration: none; 430 431 &:after { 432 color: $color__text-light; 433 content: ","; 434 } 435 } 436 437 &:last-child a:after { 438 color: $color__text-light; 439 content: "."; 444 } 445 446 ul { 447 padding-left: $size__spacing-unit; 440 448 } 441 449 } … … 500 508 501 509 /* Add style for galleries in classic-editor block */ 510 blockquote { 511 border-left: 2px solid $color__link; 512 513 cite { 514 font-family: $font__heading; 515 font-size: $font__size-xs; 516 font-style: normal; 517 line-height: 1.6; 518 color: $color__text-light; 519 } 520 } 521 522 /* Add style for galleries in classic-editor block */ 502 523 .gallery { 503 524
Note: See TracChangeset
for help on using the changeset viewer.