cart.css 8.6 KB

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