index.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @body-bg:#03C762;
  2. @title-top:#03C762;
  3. @title-bg: #cdf5df;
  4. .body {
  5. // 行头
  6. .row-style {
  7. margin-top: 20px;
  8. @media screen and (max-width:768px) {
  9. & {
  10. margin-top: 0px;
  11. border-radius: 10px;
  12. overflow: hidden;
  13. }
  14. }
  15. // 轮播图片
  16. .carousel-img-style {
  17. width: 100%;
  18. border-radius: 10px;
  19. }
  20. }
  21. // 消息通用样式模板
  22. .hotspot {
  23. padding: 0 20px 20px;
  24. h4 {
  25. margin-top: 0px;
  26. font-weight: normal;
  27. padding-bottom: 7px;
  28. border-bottom: 1px solid #eee;
  29. font-size: 16px;
  30. a {
  31. width: 100%;
  32. text-decoration: none;
  33. color: black;
  34. display: flex;justify-content: space-between;align-items: flex-end;
  35. .icon-fire-style {
  36. margin-right: 10px;
  37. color: #a94442;
  38. }
  39. span{
  40. padding: 5px 0;
  41. }
  42. &>span:last-child{
  43. font-size: 14px;
  44. margin-bottom: 3px;
  45. }
  46. // 卡片底边颜色
  47. .b {
  48. border-bottom: 3px solid #a94442;
  49. }
  50. .a {
  51. border-bottom: 3px solid @body-bg;
  52. }
  53. }
  54. }
  55. ul {
  56. padding-left: 20px;
  57. li {
  58. list-style-type: square;
  59. color: #777;
  60. list-style-position: inherit;
  61. line-height: 36px;
  62. a {
  63. display: block;
  64. width: 100%;
  65. text-decoration: none;
  66. color: #777;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. white-space: nowrap;
  70. border-bottom: 1px solid #f5f5f5;
  71. }
  72. }
  73. }
  74. }
  75. // 标题模板
  76. .title-style {
  77. width: 100%;
  78. margin-top: 20px;
  79. padding: 0 15px;
  80. // vertical-align: middle;
  81. .h4 {
  82. padding: 15px;
  83. vertical-align: middle;
  84. border-bottom: 2px solid @title-top;
  85. background-color: @title-bg;
  86. font-size: 20px;
  87. display: flex;
  88. i{
  89. margin-right: 10px;
  90. }
  91. }
  92. }
  93. // 横向滚动
  94. .scroll-style {
  95. ul {
  96. padding: 0;
  97. width: 100%;
  98. display: flex;
  99. justify-content: space-between;
  100. flex-wrap: nowrap;
  101. align-items: center;
  102. overflow-x: auto;
  103. &::-webkit-scrollbar {
  104. // 滚动条整体
  105. background: none;
  106. }
  107. .scroll-li-style {
  108. // flex: 1;
  109. width: 19%;
  110. min-width: 160px;
  111. list-style-type: none;
  112. display: block;
  113. text-align: center;
  114. margin: 10px;
  115. a {
  116. color: #777;
  117. text-decoration: none;
  118. width: 100%;
  119. img {
  120. width: 100%;
  121. }
  122. h5 {
  123. overflow: hidden;
  124. text-overflow: ellipsis;
  125. white-space: nowrap;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }