index.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @import '../../../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% / 3');
  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. display: flex;
  36. align-items: center;
  37. line-height: 1;
  38. font-size: .32rem;
  39. font-weight: bold;
  40. img {
  41. width: .32rem;
  42. height: .32rem;
  43. margin-right: .1rem;
  44. }
  45. span {
  46. +span {
  47. color: #999;
  48. font-size: .26rem;
  49. font-weight: normal;
  50. margin-left: .1rem;
  51. }
  52. }
  53. }
  54. .van-cell__value {
  55. flex: none;
  56. color: #666;
  57. }
  58. }
  59. &__market {
  60. .scrollbar {
  61. width: 100%;
  62. padding: .2rem;
  63. }
  64. .van-swipe {
  65. height: 32px;
  66. background-color: #f6f6f6;
  67. ul {
  68. display: flex;
  69. justify-content: space-around;
  70. align-items: center;
  71. height: inherit;
  72. font-size: .26rem;
  73. }
  74. }
  75. }
  76. &__news {
  77. .article {
  78. &-item {
  79. .van-cell__title {
  80. span {
  81. .mixin-text-overflow()
  82. }
  83. }
  84. .van-cell__value {
  85. flex: initial;
  86. font-size: .24rem;
  87. margin-left: .48rem;
  88. }
  89. }
  90. }
  91. }
  92. }