cnf
2025-05-10 386fa0eca75ddc88165f9b73038f2a2239e1072e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@import '../style/var';
 
.van-nav-bar {
  position: relative;
  z-index: @nav-bar-z-index;
  line-height: @line-height-lg;
  text-align: center;
  background-color: @nav-bar-background-color;
  user-select: none;
 
  &--fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
 
  &--safe-area-inset-top {
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
  }
 
  .van-icon {
    color: @nav-bar-icon-color;
  }
 
  &__content {
    position: relative;
    display: flex;
    align-items: center;
    height: @nav-bar-height;
  }
 
  &__arrow {
    margin-right: @padding-base;
    font-size: @nav-bar-arrow-size;
  }
 
  &__title {
    max-width: 60%;
    margin: 0 auto;
    color: @nav-bar-title-text-color;
    font-weight: @font-weight-bold;
    font-size: @nav-bar-title-font-size;
  }
 
  &__left,
  &__right {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 @padding-md;
    font-size: @font-size-md;
    cursor: pointer;
 
    &:active {
      opacity: @active-opacity;
    }
  }
 
  &__left {
    left: 0;
  }
 
  &__right {
    right: 0;
  }
 
  &__text {
    color: @nav-bar-text-color;
  }
}