_price.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. // Prices
  10. .price-style-1() {
  11. .price {
  12. &-tier_price .price-excluding-tax,
  13. &-tier_price .price-including-tax {
  14. display: inline;
  15. }
  16. }
  17. }
  18. .price-style-2() {
  19. .price {
  20. &-including-tax,
  21. &-excluding-tax {
  22. display: inline !important;
  23. }
  24. &-including-tax:before {
  25. content: ' / ';
  26. }
  27. &-including-tax:after {
  28. content: '('attr(data-label)')';
  29. }
  30. }
  31. }
  32. .price-style-3() {
  33. .price-including-tax,
  34. .price-excluding-tax {
  35. display: block;
  36. .lib-font-size(18);
  37. line-height: 1;
  38. .price {
  39. font-weight: @font-weight__bold;
  40. }
  41. .cart-tax-total {
  42. &:extend(.abs-tax-total all);
  43. &-expanded {
  44. &:extend(.abs-tax-total-expanded all);
  45. }
  46. }
  47. }
  48. .price-including-tax + .price-excluding-tax,
  49. .weee[data-label] {
  50. display: block;
  51. .lib-font-size(18);
  52. &:before {
  53. content: attr(data-label) ': ';
  54. .lib-font-size(11);
  55. }
  56. .price {
  57. .lib-font-size(11);
  58. }
  59. }
  60. }
  61. .price-style-1();
  62. .price-style-3();
  63. }