myMattress.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* subpages/myMattress/myMattress.wxss */
  2. page {
  3. background-color: #F8F9FA;
  4. }
  5. .mattress-list {
  6. display: flex;
  7. width: 100vw;
  8. flex-direction: column;
  9. padding-bottom: 180rpx;
  10. align-items: center;
  11. }
  12. .mattress-item {
  13. display: flex;
  14. flex-direction: row;
  15. margin-top: 30rpx;
  16. align-items: center;
  17. width: 670rpx;
  18. height: 236rpx;
  19. background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
  20. box-shadow: 20rpx 8rpx 20rpx 0rpx rgba(219, 225, 231, 0.2);
  21. border-radius: 28rpx;
  22. position: relative;
  23. }
  24. .item-cover {
  25. width: 176rpx;
  26. height: 176rpx;
  27. margin-left: 30rpx;
  28. display: block;
  29. }
  30. .right-content {
  31. flex: 1;
  32. margin-right: 30rpx;
  33. margin-left: 30rpx;
  34. display: flex;
  35. height: 176rpx;
  36. justify-content: space-between;
  37. flex-direction: column;
  38. }
  39. .item-title {
  40. font-size: 32rpx;
  41. color: #333333;
  42. }
  43. .item-sn {
  44. font-size: 24rpx;
  45. color: #666666;
  46. }
  47. .item-user {
  48. font-size: 24rpx;
  49. color: #666666;
  50. }
  51. .item-online {
  52. display: block;
  53. width: fit-content;
  54. padding: 2rpx 10rpx;
  55. border-radius: 40rpx;
  56. font-size: 20rpx;
  57. color: #0BC3AA;
  58. background: linear-gradient(90deg, #E7FAF4 11%, rgba(237, 255, 249, 0.78) 100%);
  59. box-sizing: border-box;
  60. }
  61. .item-offline {
  62. display: block;
  63. width: fit-content;
  64. padding: 2rpx 10rpx;
  65. border-radius: 40rpx;
  66. font-size: 20rpx;
  67. color: #FF424F;
  68. background: #FFF3F3;
  69. box-sizing: border-box;
  70. }
  71. .menu-btn {
  72. position: absolute;
  73. right: 0;
  74. bottom: 0;
  75. height: 70rpx;
  76. width: 90rpx;
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. justify-content: center;
  81. }
  82. .bottom-view {
  83. position: fixed;
  84. bottom: 0;
  85. left: 0;
  86. right: 0;
  87. width: 100%;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. }
  92. .bottom-btn {
  93. display: flex;
  94. flex-direction: row;
  95. align-items: center;
  96. justify-content: center;
  97. margin-bottom: 80rpx;
  98. margin-top: 16rpx;
  99. color: #FFFFFF;
  100. height: 84rpx;
  101. font-size: 32rpx;
  102. width: 630rpx;
  103. border-radius: 40rpx;
  104. background: linear-gradient(315deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
  105. }