cart.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. @charset "utf-8";
  2. body{background: #f5f5f5;}
  3. /*cart1购物车1页面*/
  4. /*购物车1、2整体*/
  5. .cart1,
  6. .cart2
  7. {
  8. width: 100%;
  9. /*height: 44.48rem;*/
  10. height: 39.468rem;
  11. /*background-color: rgba(255,0,0,.1);*/
  12. }
  13. /*购物车1、2顶部*/
  14. /*.cart1 .cart1-top,
  15. .cart2 .cart2-top{
  16. width: 100%;
  17. height: 5.012rem;
  18. background-color: rgba(0,0,255,.5);
  19. }*/
  20. /*购物车1、2中部*/
  21. .cart1-middle,
  22. .cart2-middle
  23. {
  24. width: 100%;
  25. height: 33.7914rem;
  26. position: relative;
  27. }
  28. .cart1-middle .cart1-middle-icon{
  29. width: 6.9444rem;
  30. height: 6.9444rem;
  31. border-radius:50%;
  32. /*background: url(../images/cart01.png) no-repeat center center;
  33. background-size:60%;*/
  34. background-color: #E1E5E4;
  35. position: absolute;
  36. top: 7.0048rem;
  37. left: 50%;
  38. margin-left: -3.5024rem;
  39. position: relative;
  40. }
  41. .cart1-middle-icon em{
  42. display: inline-block;
  43. width: 3.172rem;
  44. height: 3.172rem;
  45. /*border-radius:50%;*/
  46. position: absolute;
  47. top: 50%;
  48. left: 48%;
  49. margin-top: -1.586rem;
  50. margin-left: -1.586rem;
  51. background-color: green;
  52. background: url(../images/cart01.png) no-repeat;
  53. background-size:contain;
  54. }
  55. .cart1-middle .cart1-middle-tips{
  56. width: 19.3237rem;
  57. height: 2.4154rem;
  58. /*background-color: rgba(0,255,255,.2);*/
  59. position: absolute;
  60. top: 15.4589rem;
  61. left: 50%;
  62. margin-left: -9.6618rem;
  63. line-height: 2.4155rem;
  64. text-align: center;
  65. font-size:1.0870rem;
  66. letter-spacing: 0.1208rem;
  67. color:#5F5F5F;
  68. }
  69. .cart1-middle .cart1-middle-btn{
  70. /*width: 8.9372rem;
  71. height: 2.1739rem;*/
  72. /*background-color: rgba(0,0,255,.2);*/
  73. position: absolute;
  74. top: 19.0821rem;
  75. left: 50%;
  76. margin-left: -4.4686rem;
  77. }
  78. .cart1-middle .cart1-middle-btn a{
  79. display: block;
  80. width: 8.9372rem;
  81. height: 2.1739rem;
  82. color:#BF3E29;
  83. line-height: 2.0531rem;
  84. text-align: center;
  85. font-size:1.0870rem;
  86. letter-spacing: 2px;
  87. border:1px solid #BF3E29;
  88. border-radius:0.1208rem;
  89. color:#BF3E29;
  90. }
  91. /*购物车1、2底部*/
  92. .cart1 .cart1-bottom,
  93. .cart2 .cart2-bottom
  94. {
  95. width: 100%;
  96. position: fixed;
  97. bottom: 0;
  98. background-color: #FFFFFF;
  99. }
  100. .cart1-bottom .cart1-bottom-total,
  101. .cart2-bottom .cart2-bottom-total
  102. {
  103. width: 100%;
  104. height: 3.0193rem;
  105. border-bottom: 1px solid #eee;
  106. }
  107. .cart1-bottom .cart1-bottom-total span,
  108. .cart2-bottom .cart2-bottom-total span
  109. {
  110. display: inline-block;
  111. height: 3.0193rem;
  112. text-align: center;
  113. line-height: 3.0193rem;
  114. }
  115. .cart1-bottom .cart1-bottom-total span:nth-child(1),
  116. .cart2-bottom .cart2-bottom-total span:nth-child(1)
  117. {
  118. width: 7.2464rem;
  119. /*background-color: rgba(0,255,255,.2);*/
  120. float: left;
  121. color:#6B6B6B;
  122. position: relative;
  123. line-height: 3.2005rem;
  124. padding-left: 0.7850rem;
  125. }
  126. .cart1-bottom .cart1-bottom-total span:nth-child(1) em,
  127. .cart2-bottom .cart2-bottom-total span:nth-child(1) em
  128. {
  129. display: inline-block;
  130. width: 1.45rem;
  131. height:1.45rem;
  132. border:0.10rem solid #B1B1B1;/*此border为按钮圆圈*/
  133. border-radius:50%;
  134. /*background-color: rgba(255,255,255,0);*/
  135. position: absolute;
  136. top: 0.7850rem;
  137. left: 0.6643rem;
  138. }
  139. .cart1-bottom .cart1-bottom-total span.selected em,
  140. .cart2-bottom .cart2-bottom-total span.selected em{
  141. display: inline-block;
  142. width: 1.45rem;
  143. height:1.45rem;
  144. border-radius:50%;
  145. background: url(../images/selected.png) no-repeat;
  146. background-size:contain;
  147. border:none;
  148. position: absolute;
  149. top: 0.7850rem;
  150. left: 0.6643rem;
  151. }
  152. .cart1-bottom .cart1-bottom-total span:nth-child(2){
  153. width: 10.8092rem;
  154. /*background-color: rgba(0,0,255,.2);*/
  155. float: left;
  156. color:#6B6B6B;
  157. font-family:"simsun",sans-serif;
  158. line-height: 3.2005rem;
  159. padding-left: 0.6039rem;
  160. }
  161. .cart1-bottom .cart1-bottom-total span:nth-child(2) em{
  162. color:#FE2A36;
  163. }
  164. .cart1-bottom .cart1-bottom-total span:nth-child(3),
  165. .cart2-bottom .cart2-bottom-total span:nth-child(3)
  166. {
  167. width: 6.9444rem;
  168. background-color: #C1C5C8;
  169. float: right;
  170. color:#fff;
  171. }
  172. .cart2-bottom .cart2-bottom-total span:nth-child(3){
  173. background-color: #EB3E2D;
  174. }
  175. .cart1-bottom .cart1-bottom-nav,
  176. .cart2-bottom .cart2-bottom-nav
  177. {
  178. width: 100%;
  179. height: 3.6232rem;
  180. /*background-color: rgba(0,255,0,.3);*/
  181. }
  182. .cart1-bottom .cart1-bottom-nav ul li,
  183. .cart2-bottom .cart2-bottom-nav ul li
  184. {
  185. /*width: 103px;*/
  186. width:25%;
  187. height: 3.6232rem;
  188. /*background-color: rgba(255,255,0,.3);*/
  189. float: left;
  190. }
  191. .cart1-bottom .cart1-bottom-nav ul li span,
  192. .cart2-bottom .cart2-bottom-nav ul li span
  193. {
  194. display: inline-block;
  195. width: 100%;
  196. height: 3.6232rem;
  197. font-size:0.7246rem;
  198. line-height: 5.4348rem;
  199. text-align: center;
  200. color:#595959;
  201. position: relative;
  202. }
  203. .cart1-bottom-nav ul li span em,
  204. .cart2-bottom-nav ul li span em
  205. {
  206. display: inline-block;
  207. width: 1.4493rem;
  208. height: 1.4493rem;
  209. /*background-color: rgba(0,0,255,.2);*/
  210. position: absolute;
  211. top: 0.6039rem;
  212. left: 2.3551rem;
  213. }
  214. .cart1-bottom-nav ul li span em img,
  215. .cart2-bottom-nav ul li span em img
  216. {
  217. width: 100%;
  218. height: 100%;
  219. position: absolute;
  220. top: 0;
  221. left: 0;
  222. }
  223. /*cart2购物车2页面,主要样式与购物车1重合,以下为区别部分*/
  224. /*购物车2整体*/
  225. .cart2{
  226. position: absolute;
  227. top: 0;
  228. left: 0;
  229. }
  230. /*购物车2中部*/
  231. .cart2 .cart2-middle{
  232. padding-top: 0.700rem;
  233. position: static;
  234. }
  235. .cart2-middle .cart2-middle-goods{
  236. width: 100%;
  237. height: 9.60rem;
  238. background-color: #fff;
  239. margin-bottom: 0.750rem;
  240. border-top:0.05rem solid #E2E2E2;
  241. border-bottom:0.05rem solid #E2E2E2;
  242. }
  243. .cart2-middle .cart2-middle-goods .goods-left{
  244. width: 7.55rem;
  245. height: 9.60rem;
  246. /*background-color: rgba(255,0,255,.1);*/
  247. float: left;
  248. position: relative;
  249. }
  250. .cart2-middle-goods .goods-left em.selected{
  251. width: 1.45rem;
  252. height:1.45rem;
  253. border:none;
  254. background:url(../images/selected.png) no-repeat;
  255. background-size:contain;
  256. background-color: rgba(0,255,0,.1);
  257. position: absolute;
  258. top: 2.53rem;
  259. left: 0.65rem;
  260. }
  261. .cart2-middle-goods .goods-left em{
  262. width: 1.45rem;
  263. height:1.45rem;
  264. border:0.10rem solid #B1B1B1;
  265. border-radius:50%;
  266. position: absolute;
  267. top: 2.53rem;
  268. left: 0.65rem;
  269. }
  270. .cart2-middle-goods .goods-left img{
  271. display: inline-block;
  272. width: 4.85rem;
  273. height: 4.85rem;
  274. border-radius:0.25rem;
  275. /*background-color: rgba(255,0,0,0.2);*/
  276. position: absolute;
  277. top: 0.90rem;
  278. right:0;
  279. }
  280. .cart2-middle .cart2-middle-goods .goods-right{
  281. width: 17.45rem;
  282. height: 9.60rem;
  283. /*background-color: rgba(255,255,0,.1);*/
  284. float: left;
  285. padding-left: 0.58rem;
  286. padding-right: 0.58rem;
  287. }
  288. .cart2-middle-goods .goods-right>span:nth-child(1){
  289. display: inline-block;
  290. width: 13.45rem;
  291. height: 6.30rem;
  292. /*background-color: rgba(0,255,0,.1);*/
  293. padding-top: 0.90rem;
  294. font-size:0.86rem;
  295. font-weight:400;
  296. color:#303030;
  297. position: relative;
  298. }
  299. .quantity em{
  300. display: flex;
  301. justify-content: center;
  302. align-items: center;
  303. }
  304. .cart2-middle-goods .goods-right>span:nth-child(1) em{
  305. display: inline-block;
  306. width: 1.35rem;
  307. height: 1.35rem;
  308. background:url(../images/delete.png) no-repeat;
  309. background-size:contain;
  310. /*background-color: rgba(255,255,0,0);*/
  311. position: absolute;
  312. top:0.65rem;
  313. left:14.58rem;
  314. cursor: pointer;
  315. }
  316. .cart2-middle-goods .goods-right>span:nth-child(2){
  317. display: inline-block;
  318. width: 16.15rem;
  319. height: 3.30rem;
  320. /*background-color: rgba(0,0,255,0);*/
  321. border-top: 1px solid #eee;
  322. line-height: 3.18rem;
  323. }
  324. .goods-right>span:nth-child(2) em,.goods-right>span:nth-child(2)>i{
  325. font-size: 1.09rem;
  326. letter-spacing: -0.06rem;
  327. float: left;
  328. color:#ff0000;
  329. }
  330. .goods-right>span:nth-child(2) span{
  331. display: inline-block;
  332. width: 6.86rem;
  333. height:2.24rem;
  334. background-color: #F5F5F5;
  335. float: right;
  336. margin-top: 0.50rem;
  337. border:0.05rem solid #aaa;
  338. text-align: center;
  339. line-height: 2.24rem;
  340. font-size:1.09rem;
  341. border-radius:0.08rem;
  342. }
  343. .goods-right>span:nth-child(2) span em{
  344. display: inline-block;
  345. width:2.18rem;
  346. height:100% /*2.13rem*/;
  347. }
  348. .goods-right>span:nth-child(2) span em:first-child{
  349. border-right: 0.01rem solid #aaa;
  350. background:url(../images/minus1.svg) no-repeat center center;
  351. background-size:1.2rem 1.2rem;
  352. background-color: #fff;
  353. /*background-size:contain;*/
  354. float: left;
  355. cursor:pointer;
  356. }
  357. .goods-right>span:nth-child(2) span em:last-child{
  358. border-left: 0.01rem solid #aaa;
  359. background:url(../images/plus1.svg) no-repeat center center;
  360. background-size:1.2rem 1.2rem;
  361. background-color: #fff;
  362. /*background-size:contain;*/
  363. /*background-color: rgba(250,250,0,0.1);*/
  364. float: right;
  365. cursor:pointer;
  366. }
  367. /*购物车2底部*/
  368. .cart2-bottom .cart2-bottom-total span:nth-child(2){
  369. width: 10.8092rem;
  370. /*background-color: rgba(0,0,255,.1);*/
  371. float: left;
  372. color:#6B6B6B;
  373. font-family:"simsun",sans-serif;
  374. line-height: 2.99rem;
  375. padding-left: 0.6039rem;
  376. letter-spacing: 0.08rem;
  377. text-align: left;
  378. font-size:0.91rem;
  379. position: relative;
  380. }
  381. .cart2-bottom .cart2-bottom-total span:nth-child(2) em{
  382. font-size:1.22rem;
  383. letter-spacing: -0.02rem;
  384. color:#FE2A36;
  385. position: absolute;
  386. top: 0.05rem;
  387. left: 5.30rem;
  388. }