_button.scss 867 B

1234567891011121314151617181920212223242526272829303132333435
  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-padding-styles;
  13. text-decoration: none;
  14. }
  15. &.is-style-outline {
  16. &.wp-block-button__link,
  17. .wp-block-button__link {
  18. --wp--custom--button--color--text: var(--wp--custom--button--border--color);
  19. --wp--custom--button--color--background: transparent;
  20. @include button-border-styles;
  21. @include button-hover-styles;
  22. @include button-color-styles;
  23. }
  24. }
  25. }
  26. // TODO: I'm not sure what the end goal should be here, but since we are unable to use
  27. // a button block OUTSIDE of the context of the button collection block (grrrrrrrrr)
  28. // then there are undesired margins to be dealt with somehow.
  29. .wp-block-buttons {
  30. .wp-block-button:last-child {
  31. margin-bottom: 0;
  32. }
  33. }