index.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @import '@mobile/assets/themes/base/mixin.less';
  2. .home-main {
  3. &__header {
  4. background: linear-gradient(var(--navbar-background), var(--navbar-background) 60%, transparent 60%);
  5. padding: .2rem;
  6. }
  7. &__iconbar {
  8. ul {
  9. display: flex;
  10. flex-wrap: wrap;
  11. padding-top: .24rem;
  12. &:last-child {
  13. padding-bottom: .24rem;
  14. }
  15. li {
  16. display: flex;
  17. flex-direction: column;
  18. align-items: center;
  19. width: calc(~'100% / 4');
  20. text-align: center;
  21. .app-iconfont {
  22. &__icon {
  23. font-size: .8rem;
  24. }
  25. &__label {
  26. font-size: .24rem;
  27. margin-top: .1rem;
  28. }
  29. }
  30. }
  31. }
  32. }
  33. &__titlebar {
  34. .van-cell__title {
  35. font-size: .32rem;
  36. font-weight: bold;
  37. }
  38. .van-cell__value {
  39. flex: none;
  40. color: #666;
  41. }
  42. }
  43. &__market {
  44. .scrollbar {
  45. width: 100%;
  46. padding: .2rem;
  47. }
  48. .van-swipe {
  49. height: 32px;
  50. background-color: #f6f6f6;
  51. ul {
  52. display: flex;
  53. justify-content: space-around;
  54. align-items: center;
  55. height: inherit;
  56. font-size: .26rem;
  57. }
  58. }
  59. }
  60. &__news {
  61. .article {
  62. &-item {
  63. .van-cell__title {
  64. span {
  65. .mixin-text-overflow()
  66. }
  67. }
  68. .van-cell__value {
  69. flex: initial;
  70. font-size: .24rem;
  71. margin-left: .48rem;
  72. }
  73. }
  74. }
  75. }
  76. &__chart {
  77. ul {
  78. display: flex;
  79. text-align: center;
  80. color: #777;
  81. line-height: .44rem;
  82. li {
  83. flex: 1;
  84. padding: .12rem 0;
  85. &.is-active {
  86. &::before {
  87. background-color: transparent
  88. }
  89. &.g-price-up {
  90. background-color: #fff3f3;
  91. }
  92. &.g-price-down {
  93. background-color: #eefff2;
  94. }
  95. }
  96. span {
  97. font-size: .24rem;
  98. +span {
  99. margin-left: .1rem;
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }