home.wxss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* pages/home/home.wxss */
  2. .bigBox {
  3. position: relative;
  4. height: 210rpx;
  5. z-index: 100;
  6. }
  7. /* 头部区域 */
  8. .head {
  9. height: 130rpx;
  10. background-color: #f5f5f5;
  11. /* margin-top: -20rpx; */
  12. /*怎么办啊啊啊*/
  13. }
  14. .head-portrait-bg {
  15. float: left;
  16. width: 104rpx;
  17. height: 104rpx;
  18. background-color: #DDDEDF;
  19. border-radius: 20rpx;
  20. }
  21. .head-portrait-img {
  22. width: 100rpx;
  23. height: 100rpx;
  24. border-radius: 20rpx;
  25. }
  26. .username {
  27. float: left;
  28. /* width: 100rpx; */
  29. width: fit-content;
  30. margin-top: 30rpx;
  31. margin-left: 20rpx;
  32. font-size: 18px;
  33. }
  34. .head_bell {
  35. float: left;
  36. margin-top: -75rpx;
  37. margin-left: 650rpx;
  38. }
  39. /* ------------------------------ */
  40. /* 搜索栏 */
  41. .search_box {
  42. width: 720rpx;
  43. height: 80rpx;
  44. background-color: #E8E7E7;
  45. border-radius: 20rpx;
  46. }
  47. .addClass {
  48. position: fixed;
  49. top: 0rpx;
  50. z-index: 100;
  51. margin-right: 20rpx;
  52. margin-top: 130rpx;
  53. }
  54. .search_text {
  55. float: left;
  56. padding-left: 15rpx;
  57. padding-top: 15rpx;
  58. }
  59. .search_icon {
  60. margin-bottom: 1rpx;
  61. }
  62. .search_button {
  63. float: right;
  64. width: 80rpx;
  65. height: 80rpx;
  66. margin-right: 10rpx;
  67. }
  68. /* 去除button边框 */
  69. button[plain]{ border:0 }
  70. /* ------------------------------ */
  71. /* 分类栏 */
  72. .categories {
  73. margin-top: 18rpx;
  74. }
  75. .categories view:nth-child(1) {
  76. float: left;
  77. margin-right: 75rpx;
  78. }
  79. .categories view:nth-child(2) {
  80. float: right;
  81. margin-top: 12rpx;
  82. }
  83. .categories_block {
  84. position: absolute;
  85. top: 18rpx;
  86. }
  87. /* 分类卡片展示 */
  88. .categories_card {
  89. display: inline-block;
  90. margin-right: 10rpx;
  91. }
  92. .name_show {
  93. position: absolute;
  94. top: 93rpx;
  95. width: 150rpx;
  96. height: 60rpx;
  97. background-color: #eeeeee;
  98. opacity: 0.7;
  99. text-align: center;
  100. line-height: 60rpx;
  101. }
  102. /* ------------------------------ */
  103. /* 商品 */
  104. .recommend_block {
  105. position: absolute;
  106. width: 170rpx;
  107. top: 32rpx
  108. }
  109. /* ------------------------------ */