index.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. i{
  81. margin-right: 10px;
  82. }
  83. .h4 {
  84. padding: 15px;
  85. border-bottom: 2px solid @title-top;
  86. background-color: @title-bg;
  87. vertical-align: middle;
  88. }
  89. }
  90. // 横向滚动
  91. .scroll-style {
  92. ul {
  93. padding: 0;
  94. width: 100%;
  95. display: flex;
  96. justify-content: space-between;
  97. flex-wrap: nowrap;
  98. align-items: center;
  99. overflow-x: auto;
  100. &::-webkit-scrollbar {
  101. // 滚动条整体
  102. background: none;
  103. }
  104. .scroll-li-style {
  105. // flex: 1;
  106. width: 19%;
  107. min-width: 160px;
  108. list-style-type: none;
  109. display: block;
  110. text-align: center;
  111. margin: 10px;
  112. a {
  113. color: #777;
  114. text-decoration: none;
  115. width: 100%;
  116. img {
  117. width: 100%;
  118. }
  119. h5 {
  120. overflow: hidden;
  121. text-overflow: ellipsis;
  122. white-space: nowrap;
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }