- 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/sass/blocks/_blocks.scss
r43904 r43909 61 61 margin-right: calc(2 * #{$size__spacing-unit}); 62 62 } 63 64 @include media(desktop) {65 max-width: calc(3 * (100vw / 12));66 }67 63 } 68 64 … … 164 160 @include button-transition; 165 161 border: none; 166 background: $color__background-button;167 162 font-size: $font__size-sm; 168 163 font-family: $font__heading; … … 173 168 padding: ($size__spacing-unit * .76) $size__spacing-unit; 174 169 outline: none; 175 color: white;176 170 outline: none; 177 171 172 &:not(.has-background) { 173 background-color: $color__background-button; 174 } 175 176 &:not(.has-text-color) { 177 color: white; 178 } 179 178 180 &:hover { 181 color: white; 179 182 background: $color__background-button-hover; 180 183 cursor: pointer; … … 182 185 183 186 &:focus { 187 color: white; 184 188 background: $color__background-button-hover; 185 189 outline: thin dotted; … … 195 199 &.is-style-outline .wp-block-button__link:focus, 196 200 &.is-style-outline .wp-block-button__link:active { 197 198 @include button-all-transition; 199 background: transparent; 200 border: 2px solid currentColor; 201 color: $color__background-button; 201 @include button-all-transition; 202 border-width: 2px; 203 border-style: solid; 204 205 &:not(.has-background) { 206 background: transparent; 207 } 208 209 &:not(.has-text-color) { 210 color: $color__background-button; 211 border-color: currentColor; 212 } 202 213 } 203 214 204 215 &.is-style-outline .wp-block-button__link:hover { 205 color: $color__background-button-hover; 216 color: white; 217 border-color: $color__background-button-hover; 206 218 } 207 219 } … … 295 307 //! Pullquote 296 308 .wp-block-pullquote { 297 border: none; 309 border-color: transparent; 310 border-width: 2px; 298 311 padding: $size__spacing-unit; 299 312 … … 384 397 margin-left: $size__spacing-unit; 385 398 399 &.has-text-color p, 400 &.has-primary-color, 401 &.has-secondary-color, 402 &.has-dark-gray-color, 403 &.has-light-gray-color, 404 &.has-white-color { 405 color: inherit; 406 } 407 386 408 @include media(tablet) { 387 409 margin-left: 0; 388 410 margin-right: 0; 389 411 } 390 }391 392 .has-primary-background-color {393 background-color: $color__link;394 412 } 395 413 … … 502 520 padding: 0; 503 521 color: #fff; 522 -ms-hyphens: auto; 523 -moz-hyphens: auto; 524 -webkit-hyphens: auto; 525 hyphens: auto; 504 526 505 527 @include media(tablet) { … … 509 531 } 510 532 511 &.aligncenter {512 h2,513 .wp-block-cover-image-text,514 .wp-block-cover-text {515 width: 100%;516 z-index: 1;517 left: 50%;518 position: absolute;519 transform: translate(-50%, -50%);520 top: 50%;521 }522 }523 524 533 &.alignleft, 525 534 &.alignright { 526 535 width: 100%; 536 537 @include media(tablet) { 538 padding: $size__spacing-unit; 539 } 527 540 } 528 541 … … 682 695 .wp-block-columns { 683 696 697 &.alignfull { 698 padding-left: $size__spacing-unit; 699 padding-right: $size__spacing-unit; 700 } 701 684 702 @include media(tablet) { 685 703 .wp-block-column > * { … … 700 718 margin-right: 0; 701 719 } 720 } 721 722 &.alignfull, 723 &.alignfull .wp-block-column { 724 padding-left: calc(2 * #{$size__spacing-unit}); 725 padding-right: calc(2 * #{$size__spacing-unit}); 702 726 } 703 727 } … … 738 762 } 739 763 740 //! Custom colors 741 .has-primary-background-color { 742 background-color: $color__link; 764 //! Font Sizes 765 .has-small-font-size { 766 font-size: $font__size-sm; 767 } 768 769 .has-normal-font-size { 770 font-size: $font__size-md; 771 } 772 773 .has-large-font-size { 774 font-size: $font__size-lg; 775 } 776 777 .has-huge-font-size { 778 font-size: $font__size-xl; 779 } 780 781 //! Custom background colors 782 .has-primary-background-color, 783 .has-secondary-background-color, 784 .has-dark-gray-background-color, 785 .has-light-gray-background-color { 786 787 // Use white text against these backgrounds by default. 788 color: $color__background-body; 743 789 744 790 p, … … 753 799 } 754 800 } 801 802 .has-white-background-color { 803 color: $color__text-main; 804 805 // Use dark gray text against this background by default. 806 p, 807 h1, 808 h2, 809 h3, 810 h4, 811 h5, 812 h6, 813 a { 814 color: $color__text-main; 815 } 816 } 817 818 .has-primary-background-color, 819 .wp-block-pullquote.is-style-solid-color.has-primary-background-color { 820 background-color: $color__link; 821 } 822 823 .has-secondary-background-color, 824 .wp-block-pullquote.is-style-solid-color.has-secondary-background-color { 825 background-color: $color__border-link-hover; 826 } 827 828 .has-dark-gray-background-color, 829 .wp-block-pullquote.is-style-solid-color.has-dark-gray-background-color { 830 background-color: $color__text-main; 831 } 832 833 .has-light-gray-background-color, 834 .wp-block-pullquote.is-style-solid-color.has-light-gray-background-color { 835 background-color: $color__text-light; 836 } 837 838 .has-white-background-color, 839 .wp-block-pullquote.is-style-solid-color.has-white-background-color { 840 background-color: #FFF; 841 } 842 843 //! Custom foreground colors 844 .has-primary-color, 845 .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color, 846 .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color p { 847 color: $color__link; 848 } 849 850 .has-secondary-color, 851 .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color, 852 .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color p { 853 color: $color__border-link-hover; 854 } 855 856 .has-dark-gray-color, 857 .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color, 858 .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color p { 859 color: $color__text-main; 860 } 861 862 .has-light-gray-color, 863 .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color, 864 .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color p { 865 color: $color__text-light; 866 } 867 868 .has-white-color, 869 .wp-block-pullquote.is-style-solid-color blockquote.has-white-color { 870 color: #FFF; 871 } 755 872 }
Note: See TracChangeset
for help on using the changeset viewer.