detail.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * 基础
  3. */
  4. .base-container {
  5. height: 280rpx;
  6. background-size: cover;
  7. }
  8. .base-container .text {
  9. top: 0;
  10. left: 0;
  11. background: rgb(0 0 0 / 35%);
  12. padding: 100rpx 20rpx 20rpx 20rpx;
  13. }
  14. /**
  15. * 商品列表
  16. */
  17. .data-list .item .goods-img {
  18. width:170rpx;
  19. height: 170rpx !important;
  20. }
  21. .data-list .item .right-base {
  22. width: calc(100% - 190rpx);
  23. }
  24. .data-list .item .spec-choice {
  25. max-width: calc(100% - 220rpx);
  26. }
  27. .data-list .item .cart-badge-icon {
  28. top: -16rpx;
  29. right: 0;
  30. }
  31. /**
  32. * 导航
  33. */
  34. .nav-button {
  35. background: #eee;
  36. box-shadow: 0 -2px 3px #e2e2e2;
  37. }
  38. .nav-button .left-price {
  39. width: calc(100% - 270rpx);
  40. }
  41. .nav-button .right-button {
  42. width: 250rpx;
  43. }
  44. .nav-button .left-price .estimate-discount-price {
  45. top: 6rpx;
  46. left: 20rpx;
  47. width: calc(100% - 270rpx);
  48. }
  49. .nav-button .left-price .discount-icon {
  50. border-top-right-radius: 30rpx;
  51. border-bottom-left-radius: 30rpx;
  52. background-image: linear-gradient(45deg,#a3f9a3,#248828,#8bc34a,#d2374c,#9c27b0);
  53. background-size: 400%;
  54. animation: gradient 5s ease infinite;
  55. padding: 0 16rpx;
  56. }
  57. @keyframes gradient {
  58. 0% {
  59. background-position: 0% 50%;
  60. }
  61. 50% {
  62. background-position: 100% 50%;
  63. }
  64. 100% {
  65. background-position: 0% 50%;
  66. }
  67. }