@nutui/nutui 3.1.17-beta.0 → 3.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -1
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2335 -1280
  6. package/dist/nutui.umd.js +2350 -1293
  7. package/dist/packages/_es/ActionSheet.js +8 -3
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/BackTop.js +7 -4
  12. package/dist/packages/_es/Badge.js +2 -2
  13. package/dist/packages/_es/Barrage.js +2 -2
  14. package/dist/packages/_es/Button.js +2 -2
  15. package/dist/packages/_es/Calendar.js +15 -16
  16. package/dist/packages/_es/Card.js +2 -2
  17. package/dist/packages/_es/Cascader.js +2 -2
  18. package/dist/packages/_es/Cell.js +25 -18
  19. package/dist/packages/_es/CellGroup.js +2 -2
  20. package/dist/packages/_es/Checkbox.js +4 -4
  21. package/dist/packages/_es/CheckboxGroup.js +4 -4
  22. package/dist/packages/_es/CircleProgress.js +2 -2
  23. package/dist/packages/_es/Col.js +2 -2
  24. package/dist/packages/_es/Collapse.js +2 -2
  25. package/dist/packages/_es/CollapseItem.js +31 -19
  26. package/dist/packages/_es/CountDown.js +4 -2
  27. package/dist/packages/_es/CountUp.js +25 -16
  28. package/dist/packages/_es/DatePicker.js +83 -47
  29. package/dist/packages/_es/Dialog.js +5 -3
  30. package/dist/packages/_es/Divider.js +2 -2
  31. package/dist/packages/_es/Drag.js +4 -4
  32. package/dist/packages/_es/Elevator.js +3 -3
  33. package/dist/packages/_es/Empty.js +2 -2
  34. package/dist/packages/_es/FixedNav.js +2 -2
  35. package/dist/packages/_es/Form.js +8 -6
  36. package/dist/packages/_es/FormItem.js +9 -6
  37. package/dist/packages/_es/Grid.js +2 -2
  38. package/dist/packages/_es/GridItem.js +3 -3
  39. package/dist/packages/_es/Icon.js +2 -2
  40. package/dist/packages/_es/ImagePreview.js +9 -4
  41. package/dist/packages/_es/Indicator.js +2 -2
  42. package/dist/packages/_es/InfiniteLoading.js +2 -2
  43. package/dist/packages/_es/Input.js +290 -66
  44. package/dist/packages/_es/InputNumber.js +2 -2
  45. package/dist/packages/_es/Layout.js +2 -2
  46. package/dist/packages/_es/List.js +124 -0
  47. package/dist/packages/_es/Menu.js +3 -3
  48. package/dist/packages/_es/MenuItem.js +2 -2
  49. package/dist/packages/_es/Navbar.js +31 -66
  50. package/dist/packages/_es/NoticeBar.js +41 -22
  51. package/dist/packages/_es/Notify.js +7 -3
  52. package/dist/packages/_es/NumberKeyboard.js +9 -4
  53. package/dist/packages/_es/OverLay.js +2 -2
  54. package/dist/packages/_es/Pagination.js +2 -2
  55. package/dist/packages/_es/Picker.js +163 -156
  56. package/dist/packages/_es/Popover.js +5 -2
  57. package/dist/packages/_es/Popup.js +2 -2
  58. package/dist/packages/_es/Price.js +2 -2
  59. package/dist/packages/_es/Progress.js +14 -22
  60. package/dist/packages/_es/Radio.js +3 -3
  61. package/dist/packages/_es/RadioGroup.js +2 -2
  62. package/dist/packages/_es/Range.js +131 -21
  63. package/dist/packages/_es/Rate.js +2 -2
  64. package/dist/packages/_es/Row.js +2 -2
  65. package/dist/packages/_es/SearchBar.js +2 -2
  66. package/dist/packages/_es/ShortPassword.js +9 -4
  67. package/dist/packages/_es/SideNavBar.js +2 -2
  68. package/dist/packages/_es/SideNavBarItem.js +2 -2
  69. package/dist/packages/_es/Signature.js +25 -6
  70. package/dist/packages/_es/Skeleton.js +2 -2
  71. package/dist/packages/_es/Sku.js +31 -13
  72. package/dist/packages/_es/Step.js +28 -12
  73. package/dist/packages/_es/Steps.js +8 -3
  74. package/dist/packages/_es/Sticky.js +3 -3
  75. package/dist/packages/_es/SubSideNavBar.js +2 -2
  76. package/dist/packages/_es/Swipe.js +3 -3
  77. package/dist/packages/_es/Swiper.js +3 -3
  78. package/dist/packages/_es/SwiperItem.js +3 -3
  79. package/dist/packages/_es/Switch.js +2 -2
  80. package/dist/packages/_es/TabPane.js +2 -2
  81. package/dist/packages/_es/Tabbar.js +2 -2
  82. package/dist/packages/_es/TabbarItem.js +23 -8
  83. package/dist/packages/_es/Table.js +2 -2
  84. package/dist/packages/_es/Tabs.js +8 -5
  85. package/dist/packages/_es/Tag.js +11 -5
  86. package/dist/packages/_es/TextArea.js +38 -6
  87. package/dist/packages/_es/TimeDetail.js +2 -2
  88. package/dist/packages/_es/TimePannel.js +2 -2
  89. package/dist/packages/_es/TimeSelect.js +8 -3
  90. package/dist/packages/_es/Toast.js +16 -9
  91. package/dist/packages/_es/Uploader.js +2 -4
  92. package/dist/packages/_es/Video.js +12 -8
  93. package/dist/packages/_es/common.js +2 -2
  94. package/dist/packages/_es/component.js +2 -2
  95. package/dist/packages/_es/index.js +6 -8
  96. package/dist/packages/_es/index2.js +9 -32
  97. package/dist/packages/_es/index3.js +29 -57
  98. package/dist/packages/_es/index4.js +64 -0
  99. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  100. package/dist/packages/_es/pxCheck.js +2 -2
  101. package/dist/packages/_es/raf.js +2 -2
  102. package/dist/packages/_es/util.js +2 -2
  103. package/dist/packages/actionsheet/index.scss +7 -6
  104. package/dist/packages/badge/index.scss +11 -13
  105. package/dist/packages/button/index.scss +6 -5
  106. package/dist/packages/calendar/index.scss +9 -4
  107. package/dist/packages/calendaritem/index.scss +0 -207
  108. package/dist/packages/cell/index.scss +9 -9
  109. package/dist/packages/cellgroup/index.scss +1 -1
  110. package/dist/packages/checkbox/index.scss +4 -3
  111. package/dist/packages/collapseitem/index.scss +21 -11
  112. package/dist/packages/countdown/index.scss +3 -1
  113. package/dist/packages/divider/index.scss +8 -8
  114. package/dist/packages/elevator/index.scss +36 -36
  115. package/dist/packages/formitem/index.scss +15 -8
  116. package/dist/packages/indicator/index.scss +1 -1
  117. package/dist/packages/input/index.scss +70 -24
  118. package/dist/packages/inputnumber/index.scss +4 -2
  119. package/dist/packages/list/index.scss +24 -0
  120. package/dist/packages/menu/index.scss +3 -3
  121. package/dist/packages/navbar/index.scss +30 -8
  122. package/dist/packages/noticebar/index.scss +10 -5
  123. package/dist/packages/notify/index.scss +10 -0
  124. package/dist/packages/numberkeyboard/index.scss +22 -21
  125. package/dist/packages/oldpicker/index.scss +131 -0
  126. package/dist/packages/picker/index.scss +38 -32
  127. package/dist/packages/progress/index.scss +24 -19
  128. package/dist/packages/radio/index.scss +7 -6
  129. package/dist/packages/range/index.scss +113 -6
  130. package/dist/packages/searchbar/index.scss +7 -7
  131. package/dist/packages/sidenavbaritem/index.scss +5 -5
  132. package/dist/packages/step/index.scss +29 -29
  133. package/dist/packages/subsidenavbar/index.scss +10 -8
  134. package/dist/packages/swiper/index.scss +4 -4
  135. package/dist/packages/switch/index.scss +8 -8
  136. package/dist/packages/tabbar/index.scss +3 -2
  137. package/dist/packages/tabbaritem/index.scss +19 -3
  138. package/dist/packages/tabs/index.scss +1 -0
  139. package/dist/packages/timedetail/index.scss +13 -13
  140. package/dist/packages/timepannel/index.scss +7 -7
  141. package/dist/packages/timeselect/index.scss +3 -3
  142. package/dist/packages/toast/index.scss +8 -7
  143. package/dist/packages/uploader/index.scss +4 -4
  144. package/dist/style.css +1 -1
  145. package/dist/styles/themes/default.scss +43 -41
  146. package/dist/styles/themes/jdt.scss +91 -0
  147. package/dist/styles/variables-jdt.scss +727 -0
  148. package/dist/styles/variables.scss +322 -38
  149. package/package.json +3 -2
  150. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,7 +1,7 @@
1
1
  .nut-numberkeyboard {
2
- width: 100%;
3
- padding-bottom: 22px;
4
- background-color: #f2f3f5;
2
+ width: $numberkeyboard-width;
3
+ padding: $numberkeyboard-padding;
4
+ background-color: $numberkeyboard-background-color;
5
5
  user-select: none;
6
6
 
7
7
  .number-board-header {
@@ -10,10 +10,10 @@
10
10
  align-items: center;
11
11
  justify-content: center;
12
12
  box-sizing: content-box;
13
- height: 34px;
14
- padding-top: 6px;
15
- color: #646566;
16
- font-size: 16px;
13
+ height: $numberkeyboard-header-height;
14
+ padding: $numberkeyboard-header-padding;
15
+ color: $numberkeyboard-header-color;
16
+ font-size: $numberkeyboard-header-font-size;
17
17
 
18
18
  .tit {
19
19
  display: inline-block;
@@ -23,10 +23,10 @@
23
23
  position: absolute;
24
24
  display: block;
25
25
  right: 0;
26
- padding: 0 16px;
27
- color: #576b95;
28
- font-size: 14px;
29
- background-color: transparent;
26
+ padding: $numberkeyboard-header-close-padding;
27
+ color: $numberkeyboard-header-close-color;
28
+ font-size: $numberkeyboard-header-close-font-size;
29
+ background-color: $numberkeyboard-header-close-background-color;
30
30
  border: none;
31
31
  cursor: pointer;
32
32
  }
@@ -53,16 +53,17 @@
53
53
  display: flex;
54
54
  align-items: center;
55
55
  justify-content: center;
56
- height: 48px;
57
- font-size: 28px;
58
- line-height: 1.5;
59
- background-color: #fff;
60
- border-radius: 8px;
56
+ height: $numberkeyboard-key-height;
57
+ font-size: $numberkeyboard-key-font-size;
58
+ line-height: $numberkeyboard-key-line-height;
59
+ background-color: $numberkeyboard-key-background-color;
60
+ color: $numberkeyboard-key-font-size-color;
61
+ border-radius: $numberkeyboard-key-border-radius;
61
62
  cursor: pointer;
62
63
  }
63
64
 
64
65
  .active {
65
- background-color: #ebedf0;
66
+ background-color: $numberkeyboard-key-active-background-color;
66
67
  }
67
68
 
68
69
  img {
@@ -91,13 +92,13 @@
91
92
  }
92
93
 
93
94
  .finish {
94
- font-size: 16px;
95
- color: #fff;
96
- background-color: #1989fa;
95
+ font-size: $numberkeyboard-key-finish-font-size;
96
+ color: $numberkeyboard-key-finish-font-size-color;
97
+ background-color: $numberkeyboard-key-finish-background-color;
97
98
  }
98
99
 
99
100
  .activeFinsh {
100
- background-color: #0570db;
101
+ background-color: $numberkeyboard-key-activeFinsh-background-color;
101
102
  }
102
103
  }
103
104
  }
@@ -0,0 +1,131 @@
1
+ .nut-oldpicker {
2
+ &__content {
3
+ display: block;
4
+ position: relative;
5
+ text-align: center;
6
+ overflow-y: hidden;
7
+ &:hover {
8
+ cursor: grab;
9
+ }
10
+ }
11
+
12
+ &__bar {
13
+ display: flex;
14
+ height: 56px;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ }
18
+ &__column {
19
+ display: flex;
20
+ position: relative;
21
+ height: 252px;
22
+ }
23
+ &__columnitem {
24
+ width: 0;
25
+ flex-grow: 1;
26
+ height: 100%;
27
+ }
28
+ &__left {
29
+ color: $picker-cancel-color;
30
+ font-size: $picker-bar-cancel-font-size;
31
+ }
32
+ &__right {
33
+ color: $picker-ok-color;
34
+ font-size: $picker-bar-ok-font-size;
35
+ }
36
+
37
+ &__title {
38
+ color: $picker-bar-title-color;
39
+ font-size: $picker-bar-title-font-size;
40
+ font-weight: $picker-bar-title-font-weight;
41
+ }
42
+
43
+ &__button {
44
+ cursor: pointer;
45
+ padding: $picker-bar-button-padding;
46
+ display: flex;
47
+ align-items: center;
48
+ height: 100%;
49
+ }
50
+ &__wrapper {
51
+ display: block;
52
+ }
53
+ &__item {
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ height: 35px;
58
+ }
59
+ &__hairline {
60
+ position: absolute;
61
+ top: 108px;
62
+ height: 34px;
63
+ width: 100%;
64
+ border: $picker-item-active-line-border;
65
+ border-left: 0;
66
+ border-right: 0;
67
+ }
68
+
69
+ &__list {
70
+ position: relative;
71
+ display: block;
72
+ width: 100%;
73
+ height: 252px;
74
+ overflow: hidden;
75
+ text-align: center;
76
+ }
77
+
78
+ &-roller {
79
+ display: block;
80
+ position: absolute;
81
+ top: 108px;
82
+ width: 100%;
83
+ height: $picker-item-height;
84
+ z-index: 1;
85
+ transform-style: preserve-3d;
86
+
87
+ &-item {
88
+ display: block;
89
+ backface-visibility: hidden;
90
+ position: absolute;
91
+ top: 0;
92
+ width: 100%;
93
+ height: $picker-item-height;
94
+ line-height: $picker-item-height;
95
+ color: $picker-item-text-color;
96
+ font-size: $picker-item-text-font-size;
97
+
98
+ &-hidden {
99
+ visibility: hidden;
100
+ opacity: 0;
101
+ }
102
+ }
103
+ }
104
+
105
+ &-content {
106
+ display: block;
107
+ position: absolute;
108
+ top: 108px;
109
+ width: 100%;
110
+ height: $picker-item-height;
111
+ color: $picker-item-active-text-color;
112
+ z-index: 2;
113
+ overflow: hidden;
114
+ border-left: 0;
115
+ border-right: 0;
116
+ }
117
+ &-list-panel {
118
+ display: block;
119
+ transform-style: preserve-3d;
120
+ }
121
+ &-item {
122
+ display: block;
123
+ white-space: nowrap;
124
+ overflow: hidden;
125
+ text-overflow: ellipsis;
126
+ height: $picker-item-height;
127
+ line-height: $picker-item-height;
128
+ text-align: center;
129
+ font-size: 16px;
130
+ }
131
+ }
@@ -1,27 +1,28 @@
1
1
  .nut-picker {
2
- color: #f00;
3
-
4
- view {
5
- display: block;
6
- }
7
- &__content {
8
- display: block;
9
- position: relative;
10
- text-align: center;
11
- overflow-y: hidden;
12
- &:hover {
13
- cursor: grab;
14
- }
15
- }
16
-
2
+ // 标题
17
3
  &__bar {
18
4
  display: flex;
19
5
  height: 56px;
20
6
  align-items: center;
21
7
  justify-content: space-between;
22
- padding: 0 15px;
23
- font-size: 16px;
24
8
  }
9
+ &__button {
10
+ cursor: pointer;
11
+ padding: $picker-bar-button-padding;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-width: 50px;
16
+ }
17
+ &__left {
18
+ color: $picker-cancel-color;
19
+ font-size: $picker-bar-cancel-font-size;
20
+ }
21
+ &__right {
22
+ color: $picker-ok-color;
23
+ font-size: $picker-bar-ok-font-size;
24
+ }
25
+
25
26
  &__column {
26
27
  display: flex;
27
28
  position: relative;
@@ -32,13 +33,16 @@
32
33
  flex-grow: 1;
33
34
  height: 100%;
34
35
  }
35
- &__left {
36
- color: $picker-cancel-color;
37
- font-size: 16px;
38
- }
39
- &__button {
40
- cursor: pointer;
36
+
37
+ &__title {
38
+ flex: 1;
39
+ @include oneline-ellipsis();
40
+ text-align: center;
41
+ color: $picker-bar-title-color;
42
+ font-size: $picker-bar-title-font-size;
43
+ font-weight: $picker-bar-title-font-weight;
41
44
  }
45
+
42
46
  &__wrapper {
43
47
  display: block;
44
48
  }
@@ -53,7 +57,7 @@
53
57
  top: 108px;
54
58
  height: 34px;
55
59
  width: 100%;
56
- border: 1px solid #d8d8d8;
60
+ border: $picker-item-active-line-border;
57
61
  border-left: 0;
58
62
  border-right: 0;
59
63
  }
@@ -72,7 +76,7 @@
72
76
  position: absolute;
73
77
  top: 108px;
74
78
  width: 100%;
75
- height: 36px;
79
+ height: $picker-item-height;
76
80
  z-index: 1;
77
81
  transform-style: preserve-3d;
78
82
 
@@ -82,10 +86,10 @@
82
86
  position: absolute;
83
87
  top: 0;
84
88
  width: 100%;
85
- height: 36px;
86
- line-height: 36px;
87
- color: #808080;
88
- font-size: 16px;
89
+ height: $picker-item-height;
90
+ line-height: $picker-item-height;
91
+ color: $picker-item-text-color;
92
+ font-size: $picker-item-text-font-size;
89
93
 
90
94
  &-hidden {
91
95
  visibility: hidden;
@@ -99,7 +103,8 @@
99
103
  position: absolute;
100
104
  top: 108px;
101
105
  width: 100%;
102
- height: 36px;
106
+ height: $picker-item-height;
107
+ color: $picker-item-active-text-color;
103
108
  z-index: 2;
104
109
  overflow: hidden;
105
110
  border-left: 0;
@@ -114,9 +119,10 @@
114
119
  white-space: nowrap;
115
120
  overflow: hidden;
116
121
  text-overflow: ellipsis;
117
- height: 36px;
118
- line-height: 36px;
122
+ height: $picker-item-height;
123
+ line-height: $picker-item-height;
119
124
  text-align: center;
120
125
  font-size: 16px;
126
+ color: $picker-columns-item-color;
121
127
  }
122
128
  }
@@ -4,17 +4,17 @@
4
4
  display: flex;
5
5
  .nut-progress-outer {
6
6
  flex: 1;
7
- background-color: #f3f3f3;
8
- border-radius: 12px;
7
+ background-color: $progress-outer-background-color;
8
+ border-radius: $progress-outer-border-radius;
9
9
  height: 10px;
10
10
  .nut-progress-inner {
11
11
  width: 30%;
12
12
  height: 100%;
13
- border-radius: 12px;
13
+ border-radius: $progress-outer-border-radius;
14
14
  background: $progress-inner-background-color;
15
15
  -webkit-transition: all 0.4s;
16
16
  transition: all 0.4s;
17
- position: relative;
17
+ // position: relative;
18
18
  .nut-progress-text {
19
19
  display: flex;
20
20
  flex-direction: column;
@@ -30,7 +30,7 @@
30
30
  left: 0;
31
31
  right: 0;
32
32
  bottom: 0;
33
- border-radius: 10px;
33
+ border-radius: $progress-outer-border-radius;
34
34
  animation: progressActive 2s ease-in-out infinite;
35
35
  }
36
36
  }
@@ -49,26 +49,31 @@
49
49
  }
50
50
  }
51
51
  &.nut-progress-small {
52
- height: 5px;
52
+ height: $progress-small-height;
53
53
  .nut-progress-text {
54
- font-size: 7px;
55
- line-height: 10px;
56
- padding: 2px 4px;
57
- top: -100%;
54
+ font-size: $progress-small-text-font-size;
55
+ line-height: $progress-small-text-line-height;
56
+ padding: $progress-small-text-padding;
57
+ // top: $progress-small-text-top;
58
+ top: 50%;
58
59
  }
59
60
  }
60
61
  &.nut-progress-base {
61
- height: 10px;
62
+ height: $progress-base-height;
62
63
  .nut-progress-text {
63
- font-size: 9px;
64
- line-height: 13px;
64
+ font-size: $progress-base-text-font-size;
65
+ line-height: $progress-base-text-line-height;
66
+ padding: $progress-base-text-padding;
67
+ top: 50%;
65
68
  }
66
69
  }
67
70
  &.nut-progress-large {
68
- height: 15px;
71
+ height: $progress-large-height;
69
72
  .nut-progress-text {
70
- font-size: 13px;
71
- line-height: 18px;
73
+ font-size: $progress-large-text-font-size;
74
+ line-height: $progress-large-text-line-height;
75
+ padding: $progress-large-text-padding;
76
+ top: 50%;
72
77
  }
73
78
  }
74
79
  }
@@ -82,12 +87,12 @@
82
87
  min-width: 35px;
83
88
  }
84
89
  .nut-progress-insidetext {
85
- padding: 3px 5px 3px 6px;
90
+ padding: $progress-insidetext-padding;
86
91
  background: $progress-insidetext-background;
87
- border-radius: 5px;
92
+ border-radius: $progress-insidetext-border-radius;
88
93
  position: absolute;
89
94
  transition: all 0.4s;
90
- top: -42%;
95
+ top: 50%;
91
96
  min-width: 0px;
92
97
  }
93
98
  .nut-icon-success,
@@ -10,7 +10,7 @@
10
10
 
11
11
  &--reverse {
12
12
  .nut-radio__label {
13
- margin-right: 15px;
13
+ margin-right: $radio-label-margin-left;
14
14
  margin-left: 0;
15
15
  }
16
16
  }
@@ -18,10 +18,10 @@
18
18
  &__button {
19
19
  display: inline-flex;
20
20
  align-items: center;
21
- padding: 5px 18px;
22
- font-size: 12px;
21
+ padding: $radio-button-padding;
22
+ font-size: $radio-button-font-size;
23
23
  background: #f6f7f9;
24
- border-radius: 15px;
24
+ border-radius: $radio-button-border-radius;
25
25
  color: $radio-label-font-color;
26
26
  box-sizing: border-box;
27
27
  &--active {
@@ -36,8 +36,8 @@
36
36
  }
37
37
 
38
38
  &__label {
39
- margin-left: 15px;
40
- font-size: 14px;
39
+ margin-left: $radio-label-margin-left;
40
+ font-size: $radio-label-font-size;
41
41
  color: $radio-label-font-color;
42
42
  &--disabled {
43
43
  color: $radio-label-disable-color;
@@ -48,6 +48,7 @@
48
48
  color: $radio-label-font-active-color;
49
49
  transition-duration: 0.3s;
50
50
  transition-property: color, border-color, background-color;
51
+ font-size: $radio-icon-font-size;
51
52
  }
52
53
  &__icon--unchecked {
53
54
  color: $radio-icon-disable-color;
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  position: relative;
4
4
  width: 100%;
5
- height: 3px;
5
+ height: 4px;
6
6
  align-items: center;
7
7
  .min,
8
8
  .max {
@@ -10,12 +10,83 @@
10
10
  color: $range-tip-font-color;
11
11
  user-select: none;
12
12
  }
13
+ &-vertical {
14
+ height: 100%;
15
+ flex-direction: column;
16
+ padding: 0px 15px;
17
+ .nut-range {
18
+ width: 4px;
19
+ height: 100%;
20
+ &-button {
21
+ &-wrapper,
22
+ &-wrapper-right {
23
+ position: absolute;
24
+ top: initial;
25
+ bottom: 0px;
26
+ left: 50%;
27
+ right: initial;
28
+ transform: translate3d(-50%, 50%, 0);
29
+ }
30
+
31
+ &-wrapper-left {
32
+ top: 0px;
33
+ left: 50%;
34
+ right: initial;
35
+ transform: translate3d(-50%, -50%, 0);
36
+ }
37
+ }
38
+ .number {
39
+ transform: translate3d(100%, 0, 0);
40
+ }
41
+ &-vertical {
42
+ margin: 10px 0px;
43
+ }
44
+ &-mark {
45
+ position: absolute;
46
+ width: 100%;
47
+ right: 50%;
48
+ overflow: visible;
49
+ font-size: 12px;
50
+ height: 100%;
51
+ top: initial;
52
+ width: 36px;
53
+ padding: 0px;
54
+ }
55
+
56
+ &-mark-text {
57
+ width: 20px;
58
+ position: absolute;
59
+ display: inline-block;
60
+ line-height: 16px;
61
+ color: #999;
62
+ text-align: center;
63
+ word-break: keep-all;
64
+ user-select: none;
65
+ transform: translateY(-50%);
66
+ &-active {
67
+ .nut-range-tick {
68
+ background: $range-bar-bg-color;
69
+ }
70
+ }
71
+ }
72
+ &-tick {
73
+ position: absolute;
74
+ top: 0px;
75
+ left: 30px;
76
+ width: 11px;
77
+ height: 11px;
78
+ margin-left: -0px;
79
+ border-radius: 50%;
80
+ background-color: $range-bg-color-tick;
81
+ }
82
+ }
83
+ }
13
84
  }
14
85
  .nut-range {
15
86
  display: block;
16
87
  position: relative;
17
88
  width: 100%;
18
- height: 3px;
89
+ height: 4px;
19
90
  background-color: $range-bg-color;
20
91
  border-radius: 2px;
21
92
  cursor: pointer;
@@ -40,12 +111,12 @@
40
111
 
41
112
  &-button {
42
113
  display: block;
43
- width: 24px;
44
- height: 24px;
45
- background-color: $white;
114
+ width: $range-bar-btn-width;
115
+ height: $range-bar-btn-height;
116
+ background-color: $range-bar-btn-bg-color;
46
117
  border-radius: 50%;
47
118
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
48
- border: 1px solid $primary-color;
119
+ border: $range-bar-btn-border;
49
120
  outline: none;
50
121
 
51
122
  &-wrapper,
@@ -89,7 +160,43 @@
89
160
  cursor: not-allowed;
90
161
  }
91
162
  }
163
+
92
164
  &-show-number {
93
165
  margin: 0 15px;
94
166
  }
167
+
168
+ &-mark {
169
+ position: absolute;
170
+ width: 100%;
171
+ overflow: visible;
172
+ top: 50%;
173
+ font-size: 12px;
174
+ padding-top: 14px;
175
+ }
176
+
177
+ &-mark-text {
178
+ position: absolute;
179
+ display: inline-block;
180
+ line-height: 16px;
181
+ color: #999;
182
+ text-align: center;
183
+ word-break: keep-all;
184
+ user-select: none;
185
+ transform: translateX(-50%);
186
+ &-active {
187
+ .nut-range-tick {
188
+ background: $range-bar-bg-color;
189
+ }
190
+ }
191
+ }
192
+ &-tick {
193
+ position: absolute;
194
+ top: -20px;
195
+ width: 11px;
196
+ height: 11px;
197
+ // margin-left: -11px;
198
+ left: 0px;
199
+ border-radius: 50%;
200
+ background-color: $range-bg-color-tick;
201
+ }
95
202
  }
@@ -1,19 +1,19 @@
1
1
  .nut-searchbar {
2
2
  display: flex;
3
3
  align-items: center;
4
- width: 100%;
5
- padding: 9px 16px;
4
+ width: $searchbar-width;
5
+ padding: $searchbar-padding;
6
6
  background: $searchbar-background;
7
7
  box-sizing: border-box;
8
8
  &__search-input {
9
9
  display: flex;
10
10
  align-items: center;
11
- width: 100%;
12
- height: 32px;
11
+ width: $searchbar-input-width;
12
+ height: $searchbar-input-height;
13
13
  flex: 1;
14
- padding: 0 0 0 13px;
15
- border-radius: 16px;
16
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.04);
14
+ padding: $searchbar-input-padding;
15
+ border-radius: $searchbar-input-border-radius;
16
+ box-shadow: $searchbar-input-box-shadow;
17
17
  background: $searchbar-input-background;
18
18
 
19
19
  .nut-searchbar__input-inner {
@@ -1,10 +1,10 @@
1
1
  .nut-sidenavbaritem {
2
- height: 40px;
3
- line-height: 40px;
2
+ height: $sidenavbar-item-height;
3
+ line-height: $sidenavbar-item-line-height;
4
4
  display: block;
5
- font-size: 16px;
5
+ font-size: $sidenavbar-item-font-size;
6
6
  &__title {
7
- color: $title-color;
8
- background-color: $sidenavbaritem-title-color;
7
+ color: $sidenavbar-item-title-color;
8
+ background-color: $sidenavbar-item-title-bg-color;
9
9
  }
10
10
  }