index.less 2.4 KB

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