金诚优选前端代码
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.

353 lines
7.3 KiB

  1. @import '../../../common/css/global';
  2. #micro-pages{
  3. image{
  4. vertical-align: middle;
  5. }
  6. //最佳销售单品
  7. .best {
  8. overflow: hidden;
  9. .title {
  10. font-size: 14px;
  11. text-align: center;
  12. margin: 15px 0;
  13. }
  14. .SalesGoods-box {
  15. .SalesGoods-item {
  16. text-align: center;
  17. display: inline-block;
  18. width: 33.33%;
  19. padding: 0 3px;
  20. box-sizing: border-box;
  21. vertical-align: middle;
  22. margin-bottom: 6px;
  23. .item {
  24. background: #FFFFFF;
  25. }
  26. }
  27. .slider-image {
  28. width: 100%;
  29. }
  30. .goods-name {
  31. white-space: nowrap;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. padding-left: 2px;
  35. }
  36. .money-box {
  37. display: flex;
  38. align-items: center;
  39. padding-left: 7px;
  40. .money-now {
  41. color: red;
  42. font-size: 12px;
  43. }
  44. .money-old {
  45. color: #c7c7c7;
  46. font-size: 13px;
  47. text-decoration: line-through;
  48. }
  49. }
  50. }
  51. .button-box {
  52. width: 100%;
  53. height: 44px;
  54. text-align: center;
  55. line-height: 44px;
  56. background: #FFFFFF;
  57. margin-bottom: 10px;
  58. }
  59. }
  60. //商品组合
  61. .excellent-box {
  62. position: relative;
  63. .m-lead {
  64. font-size: 13px;
  65. height: 45px;
  66. background: #ffffff;
  67. padding: 0 20px;
  68. ul {
  69. display: flex;
  70. display: -webkit-flex;
  71. flex-direction: row;
  72. justify-content: center;
  73. height: 100%;
  74. li {
  75. position: relative;
  76. flex: 1;
  77. width: 1px;
  78. height: 100%;
  79. text-align: center;
  80. span {
  81. display: inline-block;
  82. text-align: center;
  83. line-height: 45px;
  84. width: auto;
  85. height: 100%;
  86. font-size: 14px;
  87. box-sizing: content-box;
  88. }
  89. .hover {
  90. border-bottom: 2px solid #333;
  91. box-sizing: border-box;
  92. }
  93. span.active {
  94. font-size: 17px;
  95. font-weight: bold;
  96. -webkit-box-sizing: border-box;
  97. -moz-box-sizing: border-box;
  98. box-sizing: border-box;
  99. border-bottom: 2px solid #000000;
  100. }
  101. }
  102. }
  103. }
  104. .m-content {
  105. padding: 5px;
  106. .goods-box{
  107. padding: 5px;
  108. box-sizing: border-box;
  109. display: inline-block;
  110. width: 50%;
  111. .goods_image{
  112. image{
  113. width: 100%;
  114. }
  115. }
  116. }
  117. //.m-main {
  118. // display: flex;
  119. // justify-content: space-between;
  120. // flex-wrap: wrap;
  121. // align-content: space-between;
  122. //
  123. // image {
  124. // width: 100%;
  125. // box-sizing: border-box;
  126. // display: block;
  127. // }
  128. // .img-box {
  129. // position: relative;
  130. // width: 100%;
  131. // height: 100%;
  132. // margin-bottom: 10px;
  133. // .description {
  134. // position: absolute;
  135. // width: 100%;
  136. // left: 0;
  137. // bottom: 0;
  138. // height: 30px;
  139. // line-height: 30px;
  140. // text-indent: 5px;
  141. // color: #fff;
  142. // background: rgba(0, 0, 0, .5);
  143. // overflow: hidden;
  144. // text-overflow: ellipsis;
  145. // display: -webkit-box;
  146. // -webkit-box-orient: vertical;
  147. // white-space: nowrap;
  148. // font-size: 14px;
  149. // }
  150. // &:last-child {
  151. // margin-bottom: 0;
  152. // }
  153. // }
  154. // .goods_box {
  155. // width: 47%;
  156. // background: #ffffff;
  157. // margin-top: 10px;
  158. // .goods_image {
  159. // position: relative;
  160. // padding-top: 100%;
  161. // width: 100%;
  162. //
  163. // image {
  164. // position: absolute;
  165. // left: 0;
  166. // top: 0;
  167. // height: 100%;
  168. // width: 100%;
  169. // object-fit: cover;
  170. // object-position: center center;
  171. // }
  172. // }
  173. //
  174. // .title {
  175. // font-size: 16px;
  176. // color: #4a4a4a;
  177. // overflow: hidden;
  178. // text-overflow: ellipsis;
  179. // white-space: nowrap;
  180. // }
  181. //
  182. // .price {
  183. // color: #ea4448;
  184. // font-size: 14px;
  185. // text-indent: 5px;
  186. // }
  187. // }
  188. //}
  189. }
  190. }
  191. //秒杀
  192. .seckill-box{
  193. background: #FFFFFF;
  194. padding: 15px;
  195. margin-bottom: 10px;
  196. .title{
  197. height: 35px;
  198. display: flex;
  199. justify-content: space-between;
  200. color: #000;
  201. line-height: 35px;
  202. text:nth-child(1) {
  203. font-size: 18px;
  204. font-weight: bold;
  205. }
  206. text:nth-child(2) {
  207. font-size: 12px;
  208. }
  209. }
  210. .seckill-info{
  211. display: flex;
  212. align-items: center;
  213. margin-top: 15px;
  214. .left{
  215. width: 100px;
  216. height: 100px;
  217. image{
  218. width: 100%;
  219. height: 100%;
  220. }
  221. }
  222. .right{
  223. flex: 1;
  224. margin-left: 10px;
  225. overflow: hidden;
  226. .goods-name{
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. white-space: nowrap;
  230. font-size: 16px;
  231. }
  232. .price-box {
  233. color: #e50303;
  234. font-size: 18px;
  235. .old{
  236. font-size: 12px;
  237. color: #9c9c9c;
  238. text-decoration: line-through;
  239. }
  240. &.free-money{
  241. font-size: 14px;
  242. color: #9C9C9C;
  243. display: flex;
  244. align-items: center;
  245. justify-content: space-between;
  246. .money{
  247. display: flex;
  248. align-items: center;
  249. .new {
  250. font-size: 18px;
  251. color: @globalColor;
  252. }
  253. .old{
  254. font-size: 10px;
  255. margin-left: 5px;
  256. text-decoration: line-through;
  257. }
  258. }
  259. }
  260. }
  261. .seckill-time{
  262. display: flex;
  263. align-items: flex-end;
  264. justify-content: space-between;
  265. .free{
  266. white-space: nowrap;
  267. overflow: hidden;
  268. text-overflow: ellipsis;
  269. flex: 1;
  270. }
  271. .buy{
  272. width: 70px;
  273. height: 25px;
  274. border-radius: 50px;
  275. color: #fff;
  276. background: @mainColor;
  277. font-size: 12px;
  278. line-height: 25px;
  279. text-align: center;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. .marketing-time-box {
  286. .seckill-item {
  287. text-align: left !important;
  288. color: #000 !important;
  289. .time-out {
  290. flex-direction: column;
  291. color: #000 !important;
  292. align-items: flex-start !important;
  293. .tiem {
  294. margin: 5px 0;
  295. .num-item {
  296. color: #ffffff !important;
  297. }
  298. }
  299. }
  300. }
  301. }
  302. //底部广告
  303. .bottom-banner {
  304. padding: 10px 15px;
  305. image{
  306. display: block;
  307. width: 100%;
  308. }
  309. .goods-box {
  310. background: #FFFFFF;
  311. margin-bottom: 10px;
  312. .name {
  313. margin: 5px;
  314. }
  315. .price {
  316. margin: 5px;
  317. color: @globalColor;
  318. }
  319. }
  320. .image-box{
  321. margin-bottom: 10px;
  322. }
  323. }
  324. }