index.less 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @import '@mobile/assets/themes/base/mixin.less';
  2. .home-main {
  3. --van-search-padding: 0 10px 10px 10px;
  4. &__banner {
  5. position: relative;
  6. overflow: hidden;
  7. padding: 0 10px;
  8. &::before {
  9. content: '';
  10. width: 140%;
  11. height: 120px;
  12. position: absolute;
  13. left: -20%;
  14. top: 0;
  15. border-radius: 0 0 50% 50%;
  16. background-color: var(--navbar-background);
  17. }
  18. .app-banner {
  19. position: relative;
  20. z-index: 1;
  21. border-radius: 10px;
  22. overflow: hidden;
  23. }
  24. }
  25. &__titlebar {
  26. .van-cell__title {
  27. display: flex;
  28. align-items: center;
  29. line-height: 1;
  30. font-size: 16px;
  31. font-weight: bold;
  32. img {
  33. width: 16px;
  34. height: 16px;
  35. margin-right: 5px;
  36. }
  37. span {
  38. +span {
  39. color: #999;
  40. font-size: 13px;
  41. font-weight: normal;
  42. margin-left: 5px;
  43. }
  44. }
  45. }
  46. .van-cell__value {
  47. flex: none;
  48. color: #666;
  49. }
  50. }
  51. &__news {
  52. .article {
  53. &-item {
  54. .van-cell__title {
  55. span {
  56. .mixin-text-overflow()
  57. }
  58. }
  59. .van-cell__value {
  60. flex: initial;
  61. font-size: 12px;
  62. margin-left: 24px;
  63. }
  64. }
  65. }
  66. }
  67. }