index.less 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @import '../style/var';
  2. .van-nav-bar {
  3. position: relative;
  4. user-select: none;
  5. text-align: center;
  6. height: @nav-bar-height;
  7. line-height: @nav-bar-height;
  8. background-color: @nav-bar-background-color;
  9. .van-icon {
  10. color: @nav-bar-icon-color;
  11. vertical-align: middle;
  12. }
  13. &__arrow {
  14. min-width: 1em;
  15. font-size: @nav-bar-arrow-size;
  16. + .van-nav-bar__text {
  17. margin-left: -20px;
  18. padding-left: 25px;
  19. }
  20. }
  21. &--fixed {
  22. top: 0;
  23. left: 0;
  24. width: 100%;
  25. position: fixed;
  26. }
  27. &__title {
  28. margin: 0 auto;
  29. max-width: 60%;
  30. color: @nav-bar-title-text-color;
  31. font-size: @nav-bar-title-font-size;
  32. font-weight: 500;
  33. }
  34. &__left,
  35. &__right {
  36. bottom: 0;
  37. font-size: 14px;
  38. position: absolute;
  39. }
  40. &__left {
  41. left: 15px;
  42. }
  43. &__right {
  44. right: 15px;
  45. }
  46. &__text {
  47. color: @nav-bar-text-color;
  48. margin: 0 -15px;
  49. padding: 0 15px;
  50. display: inline-block;
  51. vertical-align: middle;
  52. &:active {
  53. background-color: @active-color;
  54. }
  55. }
  56. }