style.less 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. @whiteColor: #fff;
  2. .wrapper {
  3. margin-top: 40px;
  4. display: flex;
  5. position: relative;
  6. // margin-top: 600px;
  7. // margin: 30px auto;
  8. width: 700px;
  9. // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
  10. // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
  11. filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
  12. .card-box-star {
  13. position: absolute;
  14. width: auto;
  15. height: 44.3px;
  16. position: absolute;
  17. left: 183px;
  18. top: 28px;
  19. font-size: 20px;
  20. color: @whiteColor;
  21. .card-star-image {
  22. padding-left: 6px;
  23. width: 21px;
  24. height: 21px;
  25. }
  26. .card-star-text {
  27. padding-left: 10px;
  28. font-size: 20px;
  29. color: #333;
  30. font-weight: 700;
  31. }
  32. }
  33. .left-complete-one {
  34. padding-top: 85px;
  35. padding-bottom: 43px;
  36. position: relative;
  37. display: flex;
  38. background: @whiteColor;
  39. background: radial-gradient(
  40. circle at top right,
  41. transparent 15px,
  42. @whiteColor 0
  43. )
  44. top right,
  45. radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
  46. bottom right;
  47. background-size: 100% 60%;
  48. background-repeat: no-repeat;
  49. width: 573px;
  50. border-radius: 15px 0px 0px 15px;
  51. // border-radius: 12px;
  52. align-items: center;
  53. .left-image-1 {
  54. width: 145px;
  55. height: 44px;
  56. position: absolute;
  57. top: 22px;
  58. }
  59. .left-viewText {
  60. // background-image: url(@Image-ProCard_hot);
  61. // width: 287px;
  62. width: auto;
  63. height: 44.3px;
  64. position: absolute;
  65. left: 1px;
  66. top: 28px;
  67. font-size: 20px;
  68. color: @whiteColor;
  69. }
  70. //图片
  71. .title-image {
  72. height: 144px;
  73. margin-left: 20px;
  74. border-radius: 24px;
  75. overflow: hidden;
  76. position: relative;
  77. .image-1 {
  78. width: 144px;
  79. height: 144px;
  80. margin: 0 ;
  81. }
  82. .image-2 {
  83. width: 89px;
  84. height: 34px;
  85. position: absolute;
  86. left: 0;
  87. top: 0;
  88. }
  89. }
  90. // 商品标题
  91. .title-content {
  92. // padding: 84px 0 56px 20px;
  93. padding-left: 18px;
  94. .Pro-title {
  95. .title-text {
  96. width: 375px;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. // display: -webkit-box; //必须要
  100. -webkit-line-clamp: 1;
  101. -webkit-box-orient: vertical;
  102. // word-break: break-all; /* 多出文本省略号代替 */
  103. text-align: left;
  104. font-size: 24px;
  105. // padding-bottom: 10px;
  106. }
  107. }
  108. .title-money {
  109. // padding-top: 34px;
  110. font-size: 24px;
  111. // color: red;
  112. font-weight: 800;
  113. }
  114. .title-money-2 {
  115. font-size: 18px;
  116. color: rgba(102, 102, 102, 0.8);
  117. padding-left: 10px;
  118. text-decoration: line-through;
  119. }
  120. .title-time {
  121. font-size: 24px;
  122. // padding-top: 20px;
  123. color: #c0c8d3;
  124. }
  125. .title-position-on {
  126. display: flex;
  127. font-size: 20px;
  128. .title-position {
  129. width: 18px;
  130. height: 24px;
  131. padding-right: 10px;
  132. padding-top: 5px;
  133. }
  134. .title-position-image {
  135. align-items: center;
  136. font-size: 20px;
  137. color: #333;
  138. }
  139. .title-on {
  140. // margin-bottom: 10px;
  141. padding-top: 5px;
  142. padding-left: 40px;
  143. width: 21px;
  144. height: 21px;
  145. padding-right: 10px;
  146. }
  147. .title-on-text {
  148. align-items: center;
  149. font-size: 20px;
  150. color: #333;
  151. }
  152. }
  153. }
  154. }
  155. // .left-complete-one:nth-child(2) {
  156. // background: rgb(182, 0, 0);
  157. // padding-top: 10px;
  158. // }
  159. }
  160. .right-complete-two {
  161. background: @whiteColor;
  162. background: radial-gradient(
  163. circle at top left,
  164. transparent 15px,
  165. @whiteColor 0
  166. )
  167. top left,
  168. radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
  169. bottom left;
  170. background-size: 100% 60%;
  171. background-repeat: no-repeat;
  172. width: 129px;
  173. border-radius: 0 15px 15px 0;
  174. position: relative;
  175. //右面部分
  176. .right-content {
  177. width: 50%;
  178. height: 134px;
  179. position: absolute;
  180. top: calc(50% - 45px);
  181. left: calc(50% - 30px);
  182. .right-image {
  183. width: 35px;
  184. height: 34px;
  185. margin-left: calc(50% - 17.5px);
  186. }
  187. .right-title {
  188. font-weight: 700;
  189. font-size: 24px;
  190. padding-top: 15px;
  191. text-align: center;
  192. }
  193. }
  194. }
  195. //线条
  196. .right-complete-two::after {
  197. content: "";
  198. position: absolute;
  199. top: 15px;
  200. margin: 26px auto;
  201. height: 70%;
  202. border-left: 1px dashed #595959;
  203. }
  204. .wrapper-tourist {
  205. margin-top: 40px;
  206. display: flex;
  207. position: relative;
  208. // margin-top: 600px;
  209. // margin: 30px auto;
  210. width: 700px;
  211. // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
  212. // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
  213. filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
  214. .card-box-star {
  215. position: absolute;
  216. width: auto;
  217. height: 44.3px;
  218. position: absolute;
  219. left: 183px;
  220. top: 28px;
  221. font-size: 20px;
  222. color: @whiteColor;
  223. .card-star-image {
  224. padding-left: 6px;
  225. width: 21px;
  226. height: 21px;
  227. }
  228. .card-star-text {
  229. padding-left: 10px;
  230. font-size: 20px;
  231. color: #333;
  232. font-weight: 700;
  233. }
  234. }
  235. .left-complete-one {
  236. padding-top: 35px;
  237. padding-bottom: 43px;
  238. position: relative;
  239. display: flex;
  240. background: @whiteColor;
  241. background: radial-gradient(
  242. circle at top right,
  243. transparent 15px,
  244. @whiteColor 0
  245. )
  246. top right,
  247. radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
  248. bottom right;
  249. background-size: 100% 60%;
  250. background-repeat: no-repeat;
  251. width: 573px;
  252. border-radius: 15px 0px 0px 15px;
  253. // border-radius: 12px;
  254. align-items: center;
  255. .left-image-1 {
  256. width: 145px;
  257. height: 44px;
  258. position: absolute;
  259. top: 22px;
  260. }
  261. .left-viewText {
  262. // background-image: url(@Image-ProCard_hot);
  263. // width: 287px;
  264. width: auto;
  265. height: 44.3px;
  266. position: absolute;
  267. left: 1px;
  268. top: 28px;
  269. font-size: 20px;
  270. color: @whiteColor;
  271. }
  272. //图片
  273. .title-image {
  274. // width: 145px;
  275. // margin-left: 20px;
  276. // overflow: hidden;
  277. // position: relative;
  278. height: 144px;
  279. margin-left: 20px;
  280. border-radius: 24px;
  281. overflow: hidden;
  282. position: relative;
  283. .image-1 {
  284. // width: 100%;
  285. // height: 145px;
  286. // border-radius: 10px;
  287. width: 144px;
  288. height: 144px;
  289. margin: 0;
  290. }
  291. .image-2 {
  292. width: 89px;
  293. height: 34px;
  294. position: absolute;
  295. left: 0;
  296. top: 0;
  297. }
  298. }
  299. // 商品标题
  300. .title-content {
  301. // padding: 84px 0 56px 20px;
  302. padding-left: 18px;
  303. .Pro-title {
  304. .title-text {
  305. width: 375px;
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. // display: -webkit-box; //必须要
  309. -webkit-line-clamp: 1;
  310. -webkit-box-orient: vertical;
  311. // word-break: break-all; /* 多出文本省略号代替 */
  312. text-align: left;
  313. font-size: 24px;
  314. // padding-bottom: 10px;
  315. }
  316. }
  317. .title-money {
  318. // padding-top: 34px;
  319. font-size: 24px;
  320. // color: red;
  321. font-weight: 800;
  322. }
  323. .title-money-2 {
  324. font-size: 18px;
  325. color: rgba(102, 102, 102, 0.8);
  326. padding-left: 10px;
  327. text-decoration: line-through;
  328. }
  329. .title-time {
  330. font-size: 24px;
  331. // padding-top: 20px;
  332. color: #c0c8d3;
  333. }
  334. .title-position-on {
  335. display: flex;
  336. font-size: 20px;
  337. .title-position {
  338. width: 18px;
  339. height: 24px;
  340. padding-right: 10px;
  341. padding-top: 5px;
  342. }
  343. .title-position-image {
  344. align-items: center;
  345. font-size: 20px;
  346. color: #333;
  347. }
  348. .title-on {
  349. // margin-bottom: 10px;
  350. padding-top: 5px;
  351. padding-left: 40px;
  352. width: 21px;
  353. height: 21px;
  354. padding-right: 10px;
  355. }
  356. }
  357. .title-on-text {
  358. align-items: center;
  359. font-size: 20px;
  360. color: #333;
  361. }
  362. }
  363. }
  364. // .left-complete-one:nth-child(2) {
  365. // background: rgb(182, 0, 0);
  366. // padding-top: 10px;
  367. // }
  368. }