newList.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /* pages/news/newList.wxss */
  2. .news_nav {
  3. height: 88rpx;
  4. display: flex;
  5. position: relative;
  6. border-bottom: 1px solid #f8f8f8;
  7. z-index: 1;
  8. background-color: #ffffff;
  9. justify-content: space-between;
  10. }
  11. .news_nav_item {
  12. width: 50%;
  13. flex: auto;
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. }
  18. .news_nav_item view {
  19. display: inline-block;
  20. flex: none;
  21. position: relative;
  22. font-size: 30rpx;
  23. color: #999999;
  24. line-height: 88rpx;
  25. }
  26. .news_nav_item text {
  27. display: inline-block;
  28. font-size: 18rpx;
  29. color: #ffffff;
  30. background-color: #D0021B;
  31. border-radius: 100rpx;
  32. min-width: 24rpx;
  33. line-height: 24rpx;
  34. text-align: center;
  35. margin-left: 10rpx;
  36. }
  37. .news_nav_item.sec view {
  38. color: var(--color);
  39. }
  40. .news_nav_item.sec view::before {
  41. content: "";
  42. position: absolute;
  43. bottom: 0;
  44. left: 50%;
  45. width: 100rpx;
  46. display: block;
  47. height: 4rpx;
  48. margin: 0 -50rpx;
  49. background-color: var(--color);
  50. border-radius: 4rpx;
  51. }
  52. .news_list {
  53. padding: 30rpx;
  54. }
  55. .news_item {
  56. background-color: #ffffff;
  57. border-radius: 12rpx;
  58. margin-bottom: 30rpx;
  59. padding: 20rpx;
  60. }
  61. .news_item_tit {
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. }
  66. .news_item_icon {
  67. flex: none;
  68. width: 12rpx;
  69. height: 12rpx;
  70. border-radius: 100rpx;
  71. display: block;
  72. background-color: #D0021B;
  73. margin-right: 14rpx;
  74. }
  75. .news_item_name {
  76. flex: auto;
  77. width: 100%;
  78. font-size: 28rpx;
  79. color: #333333;
  80. }
  81. .news_item_time {
  82. flex: none;
  83. width: auto;
  84. font-size: 24rpx;
  85. color: #999999;
  86. }
  87. .news_item_txt {
  88. font-size: 28rpx;
  89. color: #666666;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. white-space: nowrap;
  93. padding-top: 20rpx;
  94. }
  95. .news_item_open .news_item_txt {
  96. white-space: normal;
  97. }
  98. .news_empty {
  99. position: fixed;
  100. top: 0;
  101. left: 0;
  102. right: 0;
  103. bottom: 0;
  104. z-index: 0;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. background-color: #ffffff;
  109. }
  110. .news_empty_mid {
  111. text-align: center;
  112. width: 442rpx;
  113. }
  114. .news_empty_mid image {
  115. width: 442rpx;
  116. height: 194rpx;
  117. }
  118. .news_empty_mid view {
  119. font-size: 26rpx;
  120. color: #999999;
  121. }