main.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* pages/main/main.wxss */
  2. /* 轮播图区域 */
  3. .noBanners{
  4. display: flex;
  5. font-size: 40rpx;
  6. color: gray;
  7. justify-content: center;
  8. line-height: 400rpx;
  9. }
  10. .banners {
  11. width: 100%;
  12. height: 400rpx;
  13. padding: 2rpx 0;
  14. }
  15. .banners image {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. /* 公告区 */
  20. .notice {
  21. display: flex;
  22. height: 60rpx;
  23. background-color: rgb(171, 188, 236);
  24. align-items: center;
  25. margin-top: 20rpx;
  26. }
  27. /* 公告详情、公告标题 */
  28. .noticeTitle,
  29. .noticeDetail {
  30. font-size: 36rpx;
  31. height: 60rpx;
  32. line-height: 60rpx;
  33. }
  34. .noticeTitle{
  35. margin-left: 20rpx;
  36. }
  37. /* 公告图标 */
  38. .noticeIcon {
  39. width: 40rpx;
  40. }
  41. /* 公告内容 */
  42. .noticeContent {
  43. height: 60rpx;
  44. width: 52%;
  45. margin-left: 20rpx;
  46. overflow: hidden;
  47. flex-wrap: nowrap;
  48. }
  49. /* 公告文字 */
  50. .noticeDetail {
  51. white-space: nowrap;
  52. animation: loop 10s 0.5s linear infinite normal;
  53. display: inline-block;
  54. vertical-align: top;
  55. font-size: 32rpx;
  56. color: #fff;
  57. }
  58. /* 公告文字滚动 */
  59. @keyframes loop {
  60. 0% {
  61. transform: translateX(400rpx);
  62. -webkit-transform: translateX(400rpx);
  63. }
  64. 100% {
  65. transform: translateX(-100%);
  66. -webkit-transform: translateX(-100%);
  67. }
  68. }
  69. @-webkit-keyframes loop {
  70. 0% {
  71. transform: translateX(600rpx);
  72. -webkit-transform: translateX(600rpx);
  73. }
  74. 100% {
  75. transform: translateX(-100%);
  76. -webkit-transform: translateX(-100%);
  77. }
  78. }
  79. /* 查看详情 */
  80. .toNoticeDetail {
  81. /* background-color: #fff; */
  82. /* border-radius: 40rpx; */
  83. padding: 16rpx;
  84. /* margin-right: 20rpx; */
  85. }
  86. /* 轮播图下方导航模块 */
  87. .navList {
  88. display: flex;
  89. position: relative;
  90. flex-wrap: wrap;
  91. padding: 20rpx;
  92. justify-content: space-around;
  93. text-align: center;
  94. }
  95. .title {
  96. font-size: 40rpx;
  97. color: #fff;
  98. line-height: 200rpx;
  99. }
  100. /* 导航模块公共样式 */
  101. .mainIntro,
  102. .secondIntro,
  103. .scenicList,
  104. .recommendCate {
  105. width: 45%;
  106. height: 200rpx;
  107. margin-top: 40rpx;
  108. border-radius: 20rpx;
  109. }
  110. /* 单独设置导航模块的背景色 */
  111. .mainIntro {
  112. background-color: #48D881;
  113. }
  114. .secondIntro {
  115. background-color: #F9AC42;
  116. }
  117. .scenicList {
  118. background-color: #f76c71;
  119. }
  120. .recommendCate {
  121. background-color: #3FA6F5;
  122. }
  123. /* 反馈建议 */
  124. .suggest{
  125. margin-top: 100rpx;
  126. }