home.wxss 1.8 KB

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