金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
3.4 KiB

  1. @import '../../common/css/global';
  2. .g-main {
  3. position: relative;
  4. .m-lead {
  5. font-size: 13px;
  6. background: #ffffff;
  7. padding:10px 15px;
  8. .ul-box {
  9. display: flex;
  10. display: -webkit-flex;
  11. flex-direction: row;
  12. justify-content: center;
  13. height: 100%;
  14. .li-box {
  15. position: relative;
  16. flex: 1;
  17. width: 1px;
  18. height: 100%;
  19. span {
  20. display: inline-block;
  21. font-size: 22px;
  22. //padding-left: 6px;
  23. //border-left: 4px solid #E7031C;
  24. font-weight: 700;
  25. }
  26. .hover {
  27. border-bottom: 2px solid #333;
  28. box-sizing: border-box;
  29. }
  30. span.active {
  31. font-size: 17px;
  32. font-weight: bold;
  33. -webkit-box-sizing: border-box;
  34. -moz-box-sizing: border-box;
  35. box-sizing: border-box;
  36. border-bottom: 2px solid #000000;
  37. }
  38. }
  39. }
  40. }
  41. .grouping-tap-box {
  42. height: 45px;
  43. line-height: 45px;
  44. display: flex;
  45. align-items: center;
  46. background: #FFFFFF;
  47. margin-bottom: 10px;
  48. color: #999999;
  49. .tap-item {
  50. flex: 1;
  51. text-align: center;
  52. &.active {
  53. span {
  54. position: relative;
  55. color: @globalColor;
  56. &:after {
  57. content: '';
  58. position: absolute;
  59. bottom: -12px;
  60. left: -10px;
  61. right: -10px;
  62. height: 2px;
  63. background: @globalColor;
  64. }
  65. }
  66. }
  67. }
  68. }
  69. .m-content {
  70. padding: 10px 15px;
  71. padding-top: 0;
  72. &.g-bg {
  73. background: #F3F3F3;
  74. }
  75. .m-main {
  76. display: flex;
  77. justify-content: space-between;
  78. flex-wrap: wrap;
  79. align-content: space-between;
  80. image {
  81. width: 100%;
  82. box-sizing: border-box;
  83. display: block;
  84. }
  85. .img-box {
  86. position: relative;
  87. width: 100%;
  88. height: 100%;
  89. margin-bottom: 10px;
  90. .description {
  91. position: absolute;
  92. width: 100%;
  93. left: 0;
  94. bottom: 0;
  95. height: 30px;
  96. line-height: 30px;
  97. text-indent: 5px;
  98. color: #fff;
  99. background: rgba(0, 0, 0, .5);
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. display: -webkit-box;
  103. -webkit-box-orient: vertical;
  104. white-space: nowrap;
  105. font-size: 14px;
  106. }
  107. &:last-child {
  108. margin-bottom: 0;
  109. }
  110. }
  111. .goods_box {
  112. width: 49%;
  113. background: #ffffff;
  114. margin-bottom: 5px;
  115. box-shadow:0px 1px 4px 0px rgba(210,210,210,0.5);
  116. overflow: hidden;
  117. .goods_image {
  118. position: relative;
  119. padding-top: 100%;
  120. width: 100%;
  121. image {
  122. position: absolute;
  123. left: 0;
  124. top: 0;
  125. height: 100%;
  126. width: 100%;
  127. object-fit: cover;
  128. object-position: center center;
  129. }
  130. }
  131. .title {
  132. font-size: 13px;
  133. color: #4a4a4a;
  134. padding:0 10px;
  135. height: 36px;
  136. line-height: 18px;
  137. margin-top: 5px;
  138. display: -webkit-box;
  139. -webkit-box-orient: vertical;
  140. -webkit-line-clamp:2;
  141. overflow: hidden;
  142. }
  143. .price {
  144. color: #ea4448;
  145. font-size: 14px;
  146. padding: 6px 10px;
  147. }
  148. }
  149. }
  150. }
  151. }