- 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/sass/blocks/_blocks.scss
r43808 r43842 42 42 43 43 @include media(tablet) { 44 margin-left: calc( 1* (100vw / 12));45 margin-right: calc( 1* (100vw / 12));46 max-width: calc( 10* (100vw / 12));44 margin-left: calc(2 * (100vw / 12)); 45 margin-right: calc(2 * (100vw / 12)); 46 max-width: calc(8 * (100vw / 12)); 47 47 } 48 48 } … … 82 82 margin-left: calc(2 * #{$size__spacing-unit}); 83 83 margin-right: calc(2 * (100vw / 12)); 84 } 85 } 86 &.aligncenter { 87 88 margin-left: auto; 89 margin-right: auto; 90 91 @include media(desktop) { 92 margin-left: calc(2 * (100vw / 12)); 93 margin-right: calc(2 * (100vw / 12)); 94 max-width: calc(10 * (100vw / 12)); 95 position: relative; 96 left: 25%; 97 transform: translate(-50%); 84 98 } 85 99 } … … 132 146 box-sizing: border-box; 133 147 font-weight: bold; 134 padding: ($size__spacing-unit * .66) $size__spacing-unit; 148 text-decoration: none; 149 padding: ($size__spacing-unit * .76) $size__spacing-unit; 135 150 outline: none; 136 151 color: white; … … 161 176 @include button-all-transition; 162 177 background: transparent; 163 border: 2px solid $color__background-button; 164 165 &:not(.has-text-color) { 166 color: $color__background-button; 167 } 178 border: 2px solid currentColor; 179 color: $color__background-button; 168 180 } 169 181 170 182 &.is-style-outline .wp-block-button__link:hover { 171 border-color: $color__background-button-hover;172 183 color: $color__background-button-hover; 173 184 } … … 187 198 font-weight: bold; 188 199 line-height: $font__line-height-heading; 189 190 a:after { 191 color: $color__text-light; 192 content: ","; 193 } 194 195 &:last-child a:after { 196 color: $color__text-light; 197 content: "."; 200 201 &:not(.menu-item-has-children) { 202 padding-bottom: ( .75 * $size__spacing-unit ); 203 } 204 205 a { 206 text-decoration: none; 207 } 208 209 ul { 210 padding-left: $size__spacing-unit; 198 211 } 199 212 } … … 234 247 } 235 248 236 // !Paragraphs249 //! Paragraphs 237 250 .has-drop-cap { 238 251 &:not(:focus):first-letter { … … 245 258 } 246 259 247 // !Pullquote260 //! Pullquote 248 261 .wp-block-pullquote { 249 262 border: none; … … 251 264 252 265 blockquote { 266 color: $color__text-main; 253 267 border: none; 254 268 padding-bottom: calc(2 * #{$size__spacing-unit}); … … 262 276 margin-bottom: 0.5em; 263 277 margin-top: 0.5em; 264 color: $color__text-main;265 278 266 279 em { … … 279 292 line-height: 1.6; 280 293 text-transform: none; 281 color: $color__text-light;282 294 } 283 295 … … 296 308 &.is-style-solid-color { 297 309 310 background-color: $color__link; 311 298 312 p { 299 313 font-size: $font__size-lg; … … 307 321 } 308 322 323 a { 324 color: $color__background-body; 325 } 326 309 327 blockquote { 328 color: $color__background-body; 310 329 margin: 0 auto; 311 330 } 312 331 313 blockquote:not(.has-text-color) p, 314 cite { 315 color: white; 316 } 317 318 &:not(.has-background-color) { 332 .has-primary-background-color { 319 333 background-color: $color__link; 320 334 } … … 406 420 407 421 //! Cover Image 408 .wp-block-cover-image { 422 .wp-block-cover-image, 423 .wp-block-cover { 409 424 410 425 .wp-block-cover-image-text, 426 .wp-block-cover-text, 411 427 h2 { 412 428 font-family: $font__heading; … … 433 449 &.aligncenter { 434 450 h2, 435 .wp-block-cover-image-text { 451 .wp-block-cover-image-text, 452 .wp-block-cover-text { 436 453 width: 100%; 437 454 z-index: 1; … … 447 464 448 465 h2, 449 .wp-block-cover-image-text { 466 .wp-block-cover-image-text, 467 .wp-block-cover-text { 450 468 padding: $size__spacing-unit; 451 469 } … … 456 474 457 475 h2, 458 .wp-block-cover-image-text { 476 .wp-block-cover-image-text, 477 .wp-block-cover-text { 459 478 padding: $size__spacing-unit; 460 479 } … … 629 648 } 630 649 } 650 651 //! Custom colors 652 .has-primary-background-color { 653 background-color: $color__link; 654 655 p, 656 h1, 657 h2, 658 h3, 659 h4, 660 h5, 661 h6, 662 a { 663 color: $color__background-body; 664 } 665 } 631 666 }
Note: See TracChangeset
for help on using the changeset viewer.