_extends.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Button Placeholder style
  3. * - Since buttons appear in various blocks,
  4. * let’s use a placeholder to keep them all
  5. * in-sync
  6. */
  7. %button-style {
  8. @include crop-text(map-deep-get($config-button, "font", "line-height"));
  9. color: #{map-deep-get($config-button, "color", "text")};
  10. cursor: pointer;
  11. font-weight: #{map-deep-get($config-button, "font", "weight")};
  12. @include font-family( map-deep-get($config-button, "font", "family") );
  13. font-size: #{map-deep-get($config-button, "font", "size")};
  14. background-color: #{map-deep-get($config-button, "color", "background")};
  15. border-radius: #{map-deep-get($config-button, "border-radius")};
  16. border-width: 0;
  17. text-decoration: none;
  18. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  19. &:not(.has-background):hover,
  20. &:focus,
  21. &.has-focus {
  22. color: #{map-deep-get($config-button, "color", "text-hover")};
  23. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  24. }
  25. }
  26. /**
  27. * Onsale Placeholder style
  28. * - Since buttons appear in various blocks,
  29. * let’s use a placeholder to keep them all
  30. * in-sync
  31. */
  32. %onsale-style {
  33. border-radius: 100%;
  34. background-color: map-deep-get($config-global, "color", "alert", "warning");
  35. color: map-deep-get($config-global, "color", "foreground", "dark");
  36. font-size: map-deep-get($config-global, "font", "size", "sm");
  37. font-weight: 700;
  38. @include font-family( map-deep-get($config-global, "font", "family", "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. }