index.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. .goods-details {
  2. padding: 20px 48px;
  3. width: 1200px;
  4. &__close {
  5. position: absolute;
  6. top: 15px;
  7. right: 15px;
  8. font-size: 28px;
  9. color: #666;
  10. cursor: pointer;
  11. }
  12. &__wrapper {
  13. position: relative;
  14. display: flex;
  15. background-color: #fff;
  16. border-radius: 4px;
  17. overflow: hidden;
  18. padding: 6px;
  19. }
  20. &__aside {
  21. background-color: #f4f8fe;
  22. padding: 60px 30px;
  23. .sku {
  24. &-gallery {
  25. margin-bottom: 20px;
  26. }
  27. &-address {
  28. background-color: #fff;
  29. padding: 20px;
  30. ul {
  31. li {
  32. display: flex;
  33. font-size: 12px;
  34. padding: 5px 0;
  35. span {
  36. flex: 1;
  37. &:first-child {
  38. color: #94A0AF;
  39. }
  40. &:last-child {
  41. text-align: right;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. &__main {
  50. flex: 1;
  51. padding: 60px 30px;
  52. .sku {
  53. &-title {
  54. display: flex;
  55. align-items: center;
  56. h1 {
  57. font-size: 24px;
  58. }
  59. }
  60. &-info {
  61. margin-top: 30px;
  62. }
  63. &-spec {
  64. margin-top: 30px;
  65. ul {
  66. display: flex;
  67. flex-wrap: wrap;
  68. li {
  69. width: 25%;
  70. }
  71. }
  72. }
  73. &-price {
  74. margin-top: 30px;
  75. span {
  76. &:first-child {
  77. color: #FD565C;
  78. font-size: 36px;
  79. font-weight: bold;
  80. }
  81. &:not(:first-child) {
  82. color: #999;
  83. margin-left: 10px;
  84. }
  85. }
  86. }
  87. &-button {
  88. margin-top: 30px;
  89. }
  90. &-parameter {
  91. border-top: 1px solid #f2f2f2;
  92. margin-top: 30px;
  93. h4 {
  94. font-size: 18px;
  95. color: #999;
  96. padding: 20px 0;
  97. }
  98. ul {
  99. display: flex;
  100. flex-wrap: wrap;
  101. li {
  102. display: flex;
  103. justify-content: space-between;
  104. width: calc(~"50% - 10px");
  105. padding: 10px 15px;
  106. &:nth-child(4n+1),
  107. &:nth-child(4n+2) {
  108. background-color: #E3E8F1;
  109. }
  110. &:nth-child(odd) {
  111. margin-right: 10px;
  112. }
  113. &:nth-child(even) {
  114. margin-left: 10px;
  115. }
  116. span {
  117. &:first-child {
  118. color: #94A0AF;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }