啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@import '../style/var';
 
.van-number-keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: @number-keyboard-z-index;
  width: 100%;
  padding-bottom: 22px;
  background-color: @number-keyboard-background-color;
  user-select: none;
 
  &--with-title {
    border-radius: 20px 20px 0 0;
  }
 
  &__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    height: @number-keyboard-title-height;
    padding-top: 6px;
    color: @number-keyboard-title-color;
    font-size: @number-keyboard-title-font-size;
  }
 
  &__title {
    display: inline-block;
    font-weight: normal;
 
    &-left {
      position: absolute;
      left: 0;
    }
  }
 
  &__body {
    display: flex;
    padding: 6px 0 0 6px;
  }
 
  &__keys {
    display: flex;
    flex: 3;
    flex-wrap: wrap;
  }
 
  &__close {
    position: absolute;
    right: 0;
    height: 100%;
    padding: @number-keyboard-close-padding;
    color: @number-keyboard-close-color;
    font-size: @number-keyboard-close-font-size;
    background-color: transparent;
    border: none;
    cursor: pointer;
 
    &:active {
      opacity: @active-opacity;
    }
  }
 
  &__sidebar {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
 
  &--unfit {
    padding-bottom: 0;
  }
}
 
.van-key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: @number-keyboard-key-height;
  font-size: @number-keyboard-key-font-size;
  line-height: 1.5;
  background-color: @white;
  border-radius: @border-radius-lg;
  cursor: pointer;
 
  &--large {
    // height: 100% can't fill flex parent on legacy safari
    // see: https://stackoverflow.com/questions/33636796
    position: absolute;
    top: 0;
    right: 6px;
    bottom: 6px;
    left: 0;
    height: auto;
  }
 
  &--blue,
  &--delete {
    font-size: @number-keyboard-delete-font-size;
  }
 
  &--active {
    background-color: @number-keyboard-key-active-color;
  }
 
  &--blue {
    color: @number-keyboard-button-text-color;
    background-color: @number-keyboard-button-background-color;
 
    &.van-key--active {
      background-color: darken(@number-keyboard-button-background-color, 10%);
    }
  }
 
  &__wrapper {
    position: relative;
    flex: 1;
    flex-basis: 33%;
    box-sizing: border-box;
    padding: 0 6px 6px 0;
 
    &--wider {
      flex-basis: 66%;
    }
  }
 
  &__delete-icon {
    width: 32px;
    height: 22px;
  }
 
  &__collapse-icon {
    width: 30px;
    height: 24px;
  }
 
  &__loading-icon {
    color: @number-keyboard-button-text-color;
  }
}