news.wxss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /**index.wxss**/
  2. .news-list {
  3. display: flex;
  4. flex-direction: column;
  5. }
  6. .news-item {
  7. height: 100rpx;
  8. /*width属性解决标题文字太短而导航缩略偏移*/
  9. width: 100%;
  10. }
  11. .news-box {
  12. background-color: transparent;
  13. height: 100rpx;
  14. display: flex;
  15. flex-direction: row;
  16. box-sizing: border-box;
  17. border-bottom: 1px solid #f2f2f2;
  18. margin-left: 40rpx;
  19. margin-right: 40rpx;
  20. align-items: flex-start;
  21. }
  22. .news-text {
  23. background-color: transparent;
  24. height: 96rpx;
  25. width: 100%;
  26. display: flex;
  27. flex-direction: column;
  28. padding-left: 20rpx;
  29. overflow: hidden;
  30. align-items: flex-start;
  31. }
  32. .news-stamp {
  33. height: 60rpx;
  34. font-size: 20rpx;
  35. color: darkgrey;
  36. text-overflow: ellipsis;
  37. overflow: hidden;
  38. }
  39. .news-title {
  40. height: 36rpx;
  41. color: gray;
  42. font-size: 26rpx;
  43. text-overflow: ellipsis;
  44. overflow: hidden;
  45. white-space: nowrap;
  46. }
  47. .container {
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. }
  52. .list-image {
  53. width: 90rpx;
  54. height: 90rpx;
  55. margin-left: 10rpx;
  56. margin-top: 6rpx;
  57. }
  58. .top-image {
  59. width: 100%;
  60. background-color: #f2f2f2;
  61. text-align: center;
  62. }
  63. .swiper-image {
  64. width: 100%;
  65. }
  66. .icon-image {
  67. width: 60rpx;
  68. height: 60rpx;
  69. }
  70. .imagetext {
  71. display: flex;
  72. flex-direction: row;
  73. justify-content: space-around;
  74. background-color: #f2f2f2;
  75. height: 80rpx;
  76. align-items: center;
  77. }
  78. .newsNormal {
  79. height: 40rpx;
  80. display: flex;
  81. align-items: flex-end;
  82. border-bottom: 2px transparent solid;
  83. color: black;
  84. }
  85. .newsSelected {
  86. border-bottom: 2px orchid solid;
  87. height: 40rpx;
  88. display: flex;
  89. align-items: flex-end;
  90. color: #21ac00;
  91. }
  92. .tabText {
  93. text-align: center;
  94. font-size: 30rpx;
  95. }