index.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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% / 4');
  20. text-align: center;
  21. .g-icon {
  22. width: .72rem;
  23. height: .72rem;
  24. font-size: .44rem;
  25. color: #fff;
  26. border-radius: 50%;
  27. margin-bottom: .08rem;
  28. &-listing--line {
  29. &.m50101 {
  30. background-color: #96b7d1;
  31. }
  32. &.m50102 {
  33. background-color: #2b455b;
  34. }
  35. &.m50103 {
  36. background-color: #72a2c9;
  37. }
  38. &.m50104 {
  39. background-color: #42739b;
  40. }
  41. }
  42. &-auction--line {
  43. background-color: #72c990;
  44. }
  45. &-spot--line {
  46. background-color: #9d6969;
  47. }
  48. &-pricing--line {
  49. background-color: #8272c9;
  50. }
  51. &-swap--line {
  52. background-color: #ebc413;
  53. }
  54. &-quote--line {
  55. background-color: #df4343;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. &__titlebar {
  62. .van-cell__title {
  63. font-size: .32rem;
  64. font-weight: bold;
  65. }
  66. .van-cell__value {
  67. flex: none;
  68. color: #666;
  69. }
  70. }
  71. &__market {
  72. .scrollbar {
  73. width: 100%;
  74. padding: .2rem;
  75. }
  76. .van-swipe {
  77. height: 32px;
  78. background-color: #f6f6f6;
  79. ul {
  80. display: flex;
  81. justify-content: space-around;
  82. align-items: center;
  83. height: inherit;
  84. font-size: .26rem;
  85. }
  86. }
  87. }
  88. &__news {
  89. .article {
  90. &-item {
  91. .van-cell__title {
  92. span {
  93. .mixin-text-overflow()
  94. }
  95. }
  96. .van-cell__value {
  97. flex: initial;
  98. font-size: .24rem;
  99. margin-left: .48rem;
  100. }
  101. }
  102. }
  103. }
  104. }