_buttons.less 840 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. //
  6. // Common
  7. // _____________________________________________
  8. & when (@media-common = true) {
  9. // Using buttons mixins
  10. button,
  11. a.action.primary {
  12. .lib-css(border-radius, @button__border-radius);
  13. }
  14. button {
  15. &:not(.primary) {
  16. .lib-css(box-shadow, @button__shadow);
  17. &:active {
  18. .lib-css(box-shadow, @button__shadow-active);
  19. }
  20. }
  21. }
  22. body {
  23. &:not(._keyfocus) {
  24. button {
  25. &:focus {
  26. box-shadow: none;
  27. }
  28. }
  29. }
  30. }
  31. a.action.primary {
  32. .lib-link-as-button();
  33. }
  34. .action.primary {
  35. .lib-button-primary();
  36. }
  37. }