beerList.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* pages/beerList/beerList.wxss */
  2. page{
  3. background: #F7F7F7;
  4. display: flex;
  5. flex-flow: row wrap;
  6. padding-bottom: 240rpx;
  7. }
  8. .beer-item{
  9. width: 346rpx;
  10. height: 526rpx;
  11. background: #FFFFFF;
  12. border-radius: 8rpx;
  13. display: flex;
  14. flex-direction: column;
  15. text-align: left;
  16. margin: 20rpx 0 0 20rpx;
  17. }
  18. .beer-item>image:nth-child(1){
  19. width: 346rpx;
  20. height: 346rpx;
  21. border-radius: 4px 4px 0px 0px;
  22. }
  23. .beer-item>text:nth-child(2){
  24. margin: 16rpx;
  25. width: 312rpx;
  26. height: 88rpx;
  27. font-size: 30rpx;
  28. font-weight: 400;
  29. color: rgba(0, 0, 0, 0.87);
  30. line-height: 44rpx;
  31. display: -webkit-box;
  32. -webkit-box-orient: vertical;
  33. -webkit-line-clamp: 2;
  34. overflow: hidden;
  35. }
  36. .beer-origin{
  37. height: 44rpx;
  38. display: flex;
  39. flex-direction: row;
  40. margin: 0 16rpx 16rpx;
  41. }
  42. .beer-origin>image:nth-child(1){
  43. width: 44rpx;
  44. height: 44rpx;
  45. border-radius: 50%;
  46. margin-right: 12rpx;
  47. }
  48. .beer-origin>text:nth-child(2){
  49. width: auto;
  50. max-width: 200rpx;
  51. height: 44rpx;
  52. font-size: 24rpx;
  53. font-family: PingFangSC-Regular, PingFang SC;
  54. font-weight: 400;
  55. color: rgba(0,0,0,0.87);
  56. line-height: 44rpx;
  57. overflow: hidden;
  58. text-overflow:ellipsis;
  59. white-space: nowrap;
  60. }
  61. .beer-origin>text:nth-child(3){
  62. width: auto;
  63. height: 44rpx;
  64. font-size: 24rpx;
  65. font-family: PingFangSC-Regular, PingFang SC;
  66. font-weight: 400;
  67. color: rgba(0,0,0,0.87);
  68. line-height: 44rpx;
  69. margin-left: auto;
  70. margin-right: 0;
  71. }
  72. .nonedata-style{
  73. width: 750rpx;
  74. height: 100vh;
  75. display: flex;
  76. flex-direction: column;
  77. justify-content: center;
  78. align-items: center;
  79. }
  80. .nonedata-style>image:nth-child(1){
  81. width: 332rpx;
  82. height: 264rpx;
  83. }
  84. .nonedata-style>text:nth-child(2){
  85. width: auto;
  86. height: 48rpx;
  87. font-size: 30rpx;
  88. font-family: PingFangSC-Regular, PingFang SC;
  89. font-weight: 400;
  90. color: rgba(0,0,0,0.4);
  91. line-height: 48rpx;
  92. margin-top: 32rpx;
  93. }