_extends.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Button Placeholder style
  2. // - Since buttons appear in various blocks,
  3. // let’s use a placeholder to keep them all
  4. // in-sync
  5. %button-style {
  6. @include crop-text(var(--button--line-height));
  7. color: var(--button--color-text);
  8. cursor: pointer;
  9. font-weight: var(--button--font-weight);
  10. font-family: var(--button--font-family);
  11. font-size: var(--button--font-size);
  12. background-color: var(--button--color-background);
  13. border-radius: var(--button--border-radius);
  14. border-width: 0;
  15. text-decoration: none;
  16. padding: var(--button--padding-vertical) var(--button--padding-horizontal);
  17. &:active {
  18. color: var(--button--color-text-active);
  19. background-color: var(--button--color-background-active);
  20. }
  21. &:hover,
  22. &:focus,
  23. &.has-focus {
  24. color: var(--button--color-text-hover);
  25. background-color: var(--button--color-background-hover);
  26. }
  27. }
  28. // Onsale Placeholder style
  29. // - Since buttons appear in various blocks,
  30. // let’s use a placeholder to keep them all
  31. // in-sync
  32. %onsale-style {
  33. border-radius: 100%;
  34. background-color: var(--global--color-alert-warning);
  35. color: var(--global--color-foreground-dark);
  36. font-size: var(--global--font-size-sm);
  37. font-weight: 700;
  38. font-family: var(--global--font-primary);
  39. min-height: 3.236rem;
  40. min-width: 3.236rem;
  41. padding: 0.202rem;
  42. position: absolute;
  43. text-align: center;
  44. text-transform: none;
  45. line-height: 3.236;
  46. top: -0.5em;
  47. right: -0.5em;
  48. left: auto;
  49. margin: 0;
  50. z-index: 9;
  51. }