vant.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // 覆盖Van的部分样式
  2. .van-image {
  3. img.van-image__img {
  4. width: inherit;
  5. height: inherit;
  6. border-radius: inherit;
  7. max-width: inherit;
  8. min-width: inherit;
  9. }
  10. .van-image__loading,
  11. .van-image__error {
  12. border-radius: inherit;
  13. }
  14. }
  15. .van-swipe .van-swipe-item img.van-image__img {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. // 修改导航相关样式
  20. .van-nav-bar {
  21. background-color: #7cc8ff;
  22. .van-nav-bar__left {
  23. .van-icon {
  24. color: #fff;
  25. }
  26. }
  27. .van-nav-bar__title {
  28. // font-weight: bolder;
  29. color: #fff;
  30. }
  31. }
  32. // 修改button按钮样式
  33. .van-button {
  34. border-radius: 0.2rem;
  35. }
  36. // 修改van-tab的一级导航栏的背景色
  37. .van-tabs__wrap--scrollable .van-tabs__nav {
  38. background-color: #f4f7ff;
  39. .van-tab--active {
  40. color: #0088e9;
  41. }
  42. .van-tabs__line {
  43. background-color: #0088e9;
  44. width: 40% !important;
  45. }
  46. }
  47. .van-tabs--line .van-tabs__wrap {
  48. height: 1.5rem;
  49. overflow-x: auto;
  50. }
  51. .van-tabs__content .van-tabs__nav {
  52. .van-tab {
  53. .van-tab__text {
  54. font-size: 0.55rem;
  55. display: block;
  56. padding: 0.05rem 0.15rem;
  57. flex-wrap: nowrap;
  58. white-space: nowrap;
  59. }
  60. }
  61. .van-tab--active {
  62. .van-tab__text {
  63. color: #fff;
  64. background-color: #0088e9;
  65. flex-wrap: nowrap;
  66. white-space: nowrap;
  67. }
  68. }
  69. .van-tabs__line {
  70. background-color: #0088e9;
  71. width: 35% !important;
  72. }
  73. }