index.less 2.8 KB

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