_button.scss 959 B

123456789101112131415161718192021222324252627282930313233343536
  1. @import 'button-mixins';
  2. /**
  3. * Button
  4. */
  5. /**
  6. * Block Options
  7. */
  8. .wp-block-button, .wp-block-button__link {
  9. &.wp-block-button__link,
  10. .wp-block-button__link {
  11. @include button-hover-styles;
  12. @include button-padding-styles;
  13. text-decoration: none;
  14. font-weight: var(--wp--custom--button--typography--font-weight);
  15. }
  16. &.is-style-outline {
  17. &.wp-block-button__link,
  18. .wp-block-button__link {
  19. --wp--custom--button--color--text: var(--wp--custom--button--border--color);
  20. --wp--custom--button--color--background: transparent;
  21. @include button-border-styles;
  22. @include button-hover-styles;
  23. @include button-color-styles;
  24. }
  25. }
  26. }
  27. // TODO: I'm not sure what the end goal should be here, but since we are unable to use
  28. // a button block OUTSIDE of the context of the button collection block (grrrrrrrrr)
  29. // then there are undesired margins to be dealt with somehow.
  30. .wp-block-buttons {
  31. .wp-block-button:last-child {
  32. margin-bottom: 0;
  33. }
  34. }