_button.scss 839 B

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