main.wxss 2.2 KB

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