index.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // out: ../css/
  2. @import url(./base.less);
  3. @import url(./normalize.less);
  4. @rootFontSize: 37.5 * 1rem;
  5. body {
  6. background-color: #F0F0F0;
  7. }
  8. // 主体内容
  9. .main {
  10. margin-bottom: (49 / @rootFontSize);
  11. // banner
  12. .banner {
  13. height: (160 / @rootFontSize);
  14. }
  15. // 活动标题
  16. .title {
  17. height: (40 / @rootFontSize);
  18. line-height: (40 / @rootFontSize);
  19. padding-left: (15 / @rootFontSize);
  20. h4 {
  21. font-size: (14 / @rootFontSize);
  22. color: #3C3C3C;
  23. }
  24. }
  25. // 活动
  26. .item {
  27. padding-bottom: (10 / @rootFontSize);
  28. margin-bottom: (10 / @rootFontSize);
  29. background-color: #fff;
  30. // 活动图
  31. .pic {
  32. position: relative;
  33. height: (160 / @rootFontSize);
  34. // 活动状态
  35. .status {
  36. position: absolute;
  37. left: (15 / @rootFontSize);
  38. top: (-4 /@rootFontSize);
  39. width: (68 / @rootFontSize);
  40. height: (29 / @rootFontSize);
  41. background-image: url(./../images/status_active.png);
  42. background-size: contain;
  43. font-size: (12 / @rootFontSize);
  44. color: #fff;
  45. text-align: center;
  46. line-height: (25 / @rootFontSize);
  47. &.off {
  48. background-image: url(./../images/status_default.png);
  49. }
  50. }
  51. // 收藏
  52. .collect {
  53. position: absolute;
  54. right: (18 / @rootFontSize);
  55. top: (15 / @rootFontSize);
  56. color: #FECA49;
  57. i {
  58. font-size: (24 / @rootFontSize);
  59. }
  60. }
  61. }
  62. // 活动介绍
  63. .info {
  64. position: relative;
  65. padding: (8 / @rootFontSize) (15 / @rootFontSize) 0;
  66. h5 {
  67. width: (290 / @rootFontSize);
  68. line-height: (22 / @rootFontSize);
  69. font-size: (15 / @rootFontSize);
  70. color: #3C3C3C;
  71. font-weight: 400;
  72. }
  73. .rest{
  74. display: flex;
  75. margin-top: (15 / @rootFontSize);
  76. color: #B4B4B4;
  77. font-size: (11 / @rootFontSize);
  78. p {
  79. margin-right: (15 / @rootFontSize);
  80. i {
  81. font-size: (8 / @rootFontSize);
  82. margin-right: (3/@rootFontSize);
  83. }
  84. }
  85. }
  86. .type {
  87. position: absolute;
  88. top: (10 / @rootFontSize);
  89. right: (15 / @rootFontSize);
  90. font-size: (15 / @rootFontSize);
  91. color: #FE6249;
  92. }
  93. }
  94. }
  95. }
  96. // 底部工具条
  97. .toolbar {
  98. position: fixed;
  99. left: 0;
  100. bottom: 0;
  101. display: flex;
  102. justify-content: space-around;
  103. width: 100%;
  104. height: (49 / @rootFontSize);
  105. background-color: #FECA49;
  106. text-align: center;
  107. a {
  108. color: #D78B09;
  109. i {
  110. font-size: (20 / @rootFontSize);
  111. }
  112. span {
  113. display: block;
  114. margin-top: (5 / @rootFontSize);
  115. font-size: (11 / @rootFontSize);
  116. }
  117. &.current {
  118. color: #fff;
  119. }
  120. }
  121. }