search.wxss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. ========
  3. 搜索部分css
  4. ========
  5. */
  6. .search{
  7. width: 90%;
  8. height: auto;
  9. display: flex;
  10. align-items: center;
  11. margin: 0rpx auto;
  12. }
  13. .search-left{
  14. flex: 4;
  15. background-color: rgb(240, 240, 240);
  16. display: flex;
  17. justify-content: flex-start;
  18. align-items: center;
  19. padding: 10rpx 20rpx;
  20. border-radius: 15rpx;
  21. }
  22. .search input{
  23. width: 90%;
  24. height: 100%;
  25. font-size: 29rpx;
  26. margin-left: 20rpx;
  27. }
  28. .search-right{
  29. flex: 0.5;
  30. font-size:30rpx;
  31. color: #aaa;
  32. text-align: center;
  33. margin-left: 30rpx;
  34. }
  35. /*
  36. ========
  37. 搜索历史和热门搜索部分css
  38. ========
  39. */
  40. .history{
  41. width: 90%;
  42. height: auto;
  43. margin: 0rpx auto;
  44. margin-top: 80rpx;
  45. }
  46. .history-content{
  47. width: 100%;
  48. height: auto;
  49. margin-top: 30rpx;
  50. display: flex;
  51. justify-content: space-between;
  52. flex-wrap: wrap;
  53. align-items: center;
  54. }
  55. .content-item{
  56. width: 150rpx;
  57. font-size: 33rpx;
  58. text-align: center;
  59. padding: 10rpx 20rpx;
  60. margin-bottom: 20rpx;
  61. border-radius: 25rpx;
  62. color: #333;
  63. background-color: rgb(240, 240, 240);
  64. }
  65. .hot{
  66. width: 90%;
  67. height: auto;
  68. margin: 0rpx auto;
  69. margin-top: 80rpx;
  70. }
  71. .hot-content{
  72. width: 100%;
  73. height: auto;
  74. margin-top: 30rpx;
  75. }
  76. .hot-items{
  77. width: 100%;
  78. height: 50rpx;
  79. display: flex;
  80. justify-content: space-between;
  81. align-items: center;
  82. margin-bottom: 20rpx;
  83. }
  84. .item-left{
  85. display: flex;
  86. justify-content: flex-start;
  87. font-size: 32rpx;
  88. }
  89. .itemTitle{
  90. margin-left: 40rpx;
  91. }