details.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @import '../../common/common.wxss';
  2. .goods-box{
  3. position: relative;
  4. padding: 40rpx 45rpx;
  5. text-align: center;
  6. color: #454552;
  7. border-bottom: 30rpx solid #ededed;
  8. }
  9. .goods-box .goods-thumb{
  10. width: 300rpx;
  11. height: 300rpx;
  12. margin: 35rpx 0 125rpx;
  13. }
  14. .to-carts-icon{
  15. position: absolute;
  16. right: 70rpx;
  17. top: 70rpx;
  18. width: 10rpx;
  19. height: 10rpx;
  20. border-radius: 50%;
  21. opacity: .6;
  22. -webkit-animation: to_cart .3s ease-out;
  23. animation: to_cart .3s ease-out;
  24. }
  25. @-webkit-keyframes to_cart {
  26. 0%{
  27. right:100rpx;
  28. top:530rpx;
  29. -webkit-transform: scale(4);
  30. }
  31. /*60%{
  32. top: 20rpx;
  33. }*/
  34. }
  35. @keyframes to_cart {
  36. 0%{
  37. right:100rpx;
  38. top:530rpx;
  39. transform: scale(4);
  40. }
  41. /*60%{
  42. top: 20rpx;
  43. }*/
  44. }
  45. .carts-icon{
  46. position: absolute;
  47. right: 40rpx;
  48. top: 40rpx;
  49. width: 75rpx;
  50. height: 75rpx;
  51. }
  52. .carts-icon image{
  53. width: 100%;
  54. height: 100%;
  55. }
  56. .carts-icon.on{
  57. -webkit-animation: to_cart_scale .3s ease;
  58. animation: to_cart_scale .3s ease;
  59. }
  60. @-webkit-keyframes to_cart_scale {
  61. 50%{
  62. -webkit-transform: scale(1.2);
  63. }
  64. }
  65. @keyframes to_cart_scale {
  66. 50%{
  67. transform: scale(1.2);
  68. }
  69. }
  70. .carts-icon-num{
  71. position: absolute;
  72. left: -15rpx;
  73. width: 40rpx;
  74. height: 40rpx;
  75. line-height: 40rpx;
  76. border-radius: 50%;
  77. background: #AB956D;
  78. color: #fff;
  79. font-size: 24rpx;
  80. }
  81. .goods-box .goods-operation{
  82. position: relative;
  83. width: 100%;
  84. height: 100rpx;
  85. line-height: 100rpx;
  86. padding: 0 50rpx;
  87. margin-bottom: 60rpx;
  88. box-sizing: border-box;
  89. border-radius: 50rpx;
  90. background: #AB956D;
  91. color: #fff;
  92. font-size: 28rpx;
  93. }
  94. .goods-operation text{
  95. display: inline-block;
  96. height: 100rpx;
  97. }
  98. .goods-operation-num{
  99. width: 160rpx;
  100. }
  101. .goods-operation-add{
  102. width: 80rpx;
  103. margin-right: 30rpx;
  104. }
  105. .goods-to-cart{
  106. width: 210rpx;
  107. padding-right: 75rpx;
  108. }
  109. .goods-cart-img{
  110. position: absolute;
  111. right: 50rpx;
  112. top: 28rpx;
  113. width: 45rpx;
  114. height: 45rpx;
  115. }
  116. .goods-stock{
  117. font-size: 28rpx;
  118. margin-bottom: 20rpx;
  119. }
  120. .goods-title{
  121. font-size: 40rpx;
  122. margin-bottom: 30rpx;
  123. }
  124. .goods-price{
  125. font-size: 40rpx;
  126. }
  127. .goods-tab-nav{
  128. display: inline-block;
  129. width: 33.33%;
  130. height: 90rpx;
  131. line-height: 90rpx;
  132. border-bottom: 1rpx solid #ededed;
  133. box-sizing: border-box;
  134. text-align: center;
  135. color: #c7c7cb;
  136. }
  137. .goods-tab-nav.on{
  138. color: #bcaa8a;
  139. border-bottom: 5rpx solid #bcaa8a;
  140. }
  141. .goods-content{
  142. padding: 40rpx;
  143. }