@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
@@ -25,10 +25,10 @@
25
25
  display: block;
26
26
  width: 100%;
27
27
  overflow: hidden;
28
- padding: 13px 26px;
29
- color: #666666;
30
- font-size: 14px;
31
- line-height: 24px;
28
+ padding: $collapse-item-padding;
29
+ color: $collapse-item-color;
30
+ font-size: $collapse-item-font-size;
31
+ line-height: $collapse-item-line-height;
32
32
  background-color: #fff;
33
33
  box-sizing: border-box;
34
34
  .collapse-icon {
@@ -37,6 +37,7 @@
37
37
  top: 50%;
38
38
  // margin-top: -6px;
39
39
  right: 16px;
40
+ color: $collapse-item-icon-color;
40
41
  // width: 24px;
41
42
  // height: 12px;
42
43
  // line-height: 24px;
@@ -53,7 +54,7 @@
53
54
  top: 50%;
54
55
  right: 60px;
55
56
  margin-top: -12px;
56
- color: #999999;
57
+ color: $collapse-item-sub-title-color;
57
58
  }
58
59
  .titleIconRight {
59
60
  vertical-align: middle;
@@ -64,6 +65,9 @@
64
65
  margin: 0px 10px 0 0;
65
66
  }
66
67
  }
68
+ // .extraRender {
69
+ // display: block;
70
+ // }
67
71
  .collapse-wrapper {
68
72
  display: block;
69
73
  position: relative;
@@ -72,11 +76,14 @@
72
76
  transition: height 0.3s ease-in-out;
73
77
  .collapse-content {
74
78
  display: block;
75
- padding: 12px 26px;
76
- color: #666666;
77
- font-size: 14px;
78
- line-height: 1.5;
79
- background-color: #fff;
79
+ padding: $collapse-wrapper-content-padding;
80
+ color: $collapse-wrapper-content-color;
81
+ font-size: $collapse-wrapper-content-font-size;
82
+ line-height: $collapse-wrapper-content-line-height;
83
+ background-color: $collapse-wrapper-content-background-color;
84
+ }
85
+ .empty {
86
+ padding: $collapse-wrapper-empty-content-padding;
80
87
  }
81
88
  }
82
89
  .open-style {
@@ -88,7 +95,7 @@
88
95
  // height: 0;
89
96
  }
90
97
  .nut-collapse-item-disabled {
91
- color: #c8c9cc;
98
+ color: $collapse-item-disabled-color;
92
99
  cursor: not-allowed;
93
100
  pointer-events: none;
94
101
  // .collapse-icon-disabled {
@@ -96,6 +103,9 @@
96
103
  // background-repeat: no-repeat;
97
104
  // background-size: 100% 100%;
98
105
  // }
106
+ .collapse-icon {
107
+ color: $collapse-item-disabled-color;
108
+ }
99
109
  }
100
110
  .titleIconLeft {
101
111
  float: left;
@@ -1,3 +1,5 @@
1
1
  .nut-countdown {
2
- display: flex;
2
+ display: $countdown-display;
3
+ color: $countdown-color;
4
+ font-size: $countdown-font-size;
3
5
  }
@@ -1,16 +1,16 @@
1
1
  .nut-divider {
2
2
  display: flex;
3
3
  align-items: center;
4
- font-size: 14px;
5
- color: #909ca4;
6
- margin: 8px 0;
7
- width: 100%;
4
+ font-size: $divider-text-font-size;
5
+ color: $divider-text-color;
6
+ margin: $divider-margin;
8
7
 
9
8
  &::before,
10
9
  &::after {
11
10
  content: '';
12
- border: 1px solid currentColor;
13
- border-width: 1px 0 0;
11
+ border: $divider-line-height solid currentColor;
12
+ border-width: $divider-line-height 0 0;
13
+ height: $divider-line-height;
14
14
  flex: 1;
15
15
  }
16
16
 
@@ -18,11 +18,11 @@
18
18
  &.nut-divider-left,
19
19
  &.nut-divider-right {
20
20
  &::before {
21
- margin-right: 8px;
21
+ margin-right: $divider-before-margin-right;
22
22
  }
23
23
 
24
24
  &::after {
25
- margin-left: 8px;
25
+ margin-left: $divider-after-margin-left;
26
26
  }
27
27
  }
28
28
 
@@ -7,32 +7,32 @@
7
7
  overflow: auto;
8
8
  &__item {
9
9
  display: block;
10
- font-size: 12px;
11
- color: #333;
10
+ font-size: $elevator-list-item-font-size;
11
+ color: $elevator-list-item-font-color;
12
12
  &__code {
13
13
  position: relative;
14
- height: 35px;
15
- line-height: 35px;
16
- font-size: 14px;
17
- color: #1a1a1a;
18
- padding: 0 20px;
19
- font-weight: 500;
14
+ height: $elevator-list-item-code-height;
15
+ line-height: $elevator-list-item-code-line-height;
16
+ font-size: $elevator-list-item-code-font-size;
17
+ color: $elevator-list-item-code-font-color;
18
+ padding: $elevator-list-item-code-padding;
19
+ font-weight: $elevator-list-item-code-font-weight;
20
20
  &::after {
21
21
  content: ' ';
22
- width: 100%;
23
- height: 1px;
22
+ width: $elevator-list-item-code-after-width;
23
+ height: $elevator-list-item-code-after-height;
24
24
  position: absolute;
25
25
  left: 0;
26
26
  bottom: 0;
27
- background-color: #f5f5f5;
27
+ background-color: $elevator-list-item-code-after-bg-color;
28
28
  }
29
29
  }
30
30
  &__name {
31
31
  display: flex;
32
32
  align-items: center;
33
- padding: 0 20px;
34
- height: 30px;
35
- line-height: 30px;
33
+ padding: $elevator-list-item-name-padding;
34
+ height: $elevator-list-item-name-height;
35
+ line-height: $elevator-list-item-name-line-height;
36
36
  &--highcolor {
37
37
  color: $elevator-list-item-highcolor;
38
38
  }
@@ -40,33 +40,33 @@
40
40
  }
41
41
  }
42
42
  &__code--current {
43
- position: absolute;
44
- right: 60px;
45
- top: 50%;
46
- transform: translateY(-50%);
47
- width: 45px;
48
- height: 45px;
49
- line-height: 45px;
50
- border-radius: 50%;
51
- background: $white;
52
- box-shadow: 0 3px 3px 1px rgba(240, 240, 240, 1);
53
- text-align: center;
43
+ position: $elevator-list-item-code-current-position;
44
+ right: $elevator-list-item-code-current-right;
45
+ top: $elevator-list-item-code-current-top;
46
+ transform: $elevator-list-item-code-current-transform;
47
+ width: $elevator-list-item-code-current-width;
48
+ height: $elevator-list-item-code-current-height;
49
+ line-height: $elevator-list-item-code-current-line-height;
50
+ border-radius: $elevator-list-item-code-current-border-radius;
51
+ background: $elevator-list-item-code-current-bg-color;
52
+ box-shadow: $elevator-list-item-code-current-box-shadow;
53
+ text-align: $elevator-list-item-code-current-text-align;
54
54
  }
55
55
  &__bars {
56
- position: absolute;
57
- right: 8px;
58
- top: 50%;
59
- transform: translateY(-50%);
60
- padding: 15px 0;
61
- background-color: #eeeff2;
62
- border-radius: 6px;
63
- text-align: center;
64
- z-index: 10;
56
+ position: $elevator-list-item-bars-position;
57
+ right: $elevator-list-item-bars-right;
58
+ top: $elevator-list-item-bars-top;
59
+ transform: $elevator-list-item-bars-transform;
60
+ padding: $elevator-list-item-bars-padding;
61
+ background-color: $elevator-list-item-bars-background-color;
62
+ border-radius: $elevator-list-item-bars-border-radius;
63
+ text-align: $elevator-list-item-bars-text-align;
64
+ z-index: $elevator-list-item-bars-z-index;
65
65
  &__inner {
66
66
  &__item {
67
67
  display: block;
68
- padding: 3px;
69
- font-size: 10px;
68
+ padding: $elevator-list-item-bars-inner-item-padding;
69
+ font-size: $elevator-list-item-bars-inner-item-font-size;
70
70
  }
71
71
  }
72
72
  }
@@ -21,28 +21,31 @@
21
21
  }
22
22
 
23
23
  &__label {
24
- font-size: 14px;
24
+ font-size: $form-item-label-font-size;
25
25
  font-weight: normal;
26
- width: 90px;
27
- margin-right: 10px;
26
+ width: $form-item-label-width;
27
+ margin-right: $form-item-label-margin-right;
28
28
  flex: none !important;
29
- display: inline-block;
29
+ display: inline-block !important;
30
30
  word-wrap: break-word;
31
+ text-align: $form-item-label-text-align;
31
32
  &.required {
32
33
  &::before {
33
34
  content: '*';
34
35
  color: $form-item-required-color;
35
- margin-right: 4px;
36
+ margin-right: $form-item-required-margin-right;
36
37
  }
37
38
  }
38
39
  }
39
40
  &__body {
40
41
  flex: 1;
41
- display: flex;
42
+ display: flex !important;
42
43
  flex-direction: column;
43
44
  &__slots {
45
+ text-align: $form-item-body-slots-text-align;
44
46
  .nut-input-text {
45
- font-size: 14px;
47
+ font-size: $form-item-body-font-size;
48
+ text-align: $form-item-body-input-text-align;
46
49
  width: 100%;
47
50
  outline: 0 none;
48
51
  border: 0;
@@ -53,10 +56,14 @@
53
56
  }
54
57
  .nut-textarea {
55
58
  padding: 0 !important;
59
+ .nut-textarea__textarea {
60
+ text-align: $form-item-body-input-text-align;
61
+ }
56
62
  }
57
63
  }
58
64
  &__tips {
59
- font-size: 10px;
65
+ text-align: $form-item-tip-text-align;
66
+ font-size: $form-item-tip-font-size;
60
67
  color: $form-item-error-message-color;
61
68
  }
62
69
  }
@@ -36,7 +36,7 @@
36
36
  width: $indicator-size;
37
37
  height: $indicator-size;
38
38
  text-align: center;
39
- font-size: 10px;
39
+ font-size: $indicator-number-font-size;
40
40
  line-height: $indicator-size;
41
41
  color: $indicator-white;
42
42
  vertical-align: middle;
@@ -1,55 +1,96 @@
1
+ input,
2
+ textarea {
3
+ font: inherit;
4
+ }
1
5
  .nut-input {
2
6
  position: relative;
3
7
  width: 100%;
4
- padding: 10px 0px 10px 25px;
8
+ padding: 10px 25px;
5
9
  display: flex;
10
+ line-height: 24px;
6
11
  background: $white;
7
12
  font-size: $input-font-size;
8
13
  box-sizing: border-box;
9
-
14
+ &.center {
15
+ align-items: center;
16
+ }
10
17
  &.nut-input-border {
11
18
  border-bottom: 1px solid $input-border-bottom;
12
19
  }
13
20
 
14
- &.nut-input-require {
15
- &::before {
16
- position: absolute;
17
- left: 14px;
18
- color: $input-require-color;
19
- content: '*';
20
- }
21
- }
22
-
23
21
  .input-text,
24
22
  &__text--readonly {
25
- width: 90%;
26
- flex: 1;
27
- padding: 0 10px;
28
- padding-right: 35px;
23
+ width: 100%;
24
+ padding: 0;
25
+ // padding-right: 35px;
26
+ line-height: inherit;
29
27
  text-align: left;
30
28
  outline: 0 none;
31
29
  border: 0;
32
30
  text-decoration: none;
31
+ resize: none;
33
32
  }
34
33
 
35
34
  &-label {
36
35
  width: 80px;
37
36
  overflow: hidden;
38
- display: inline-block;
37
+ margin-right: 6px;
39
38
  text-align: left;
40
- display: flex;
41
-
42
39
  .label-string {
43
- overflow: hidden;
44
- white-space: nowrap;
45
- text-overflow: ellipsis;
40
+ // overflow: hidden;
41
+ // white-space: nowrap;
42
+ // text-overflow: ellipsis;
46
43
  }
47
44
  }
48
- .nut-textinput-clear {
45
+ &-value {
46
+ flex: 1;
47
+ vertical-align: middle;
48
+ }
49
+ &-inner {
50
+ display: flex;
51
+ align-items: center;
52
+ }
53
+ &-error-message {
54
+ color: $input-required-color;
55
+ font-size: 12px;
56
+ }
57
+ &-word-limit {
58
+ display: block;
59
+ margin-top: 4px;
60
+ color: #808080;
61
+ font-size: 12px;
62
+ // line-height: var(--van-field-word-limit-line-height);
63
+ text-align: right;
64
+ }
65
+ &-left-icon,
66
+ &-right-icon {
67
+ display: flex;
68
+ align-items: center;
69
+ font-size: 0;
70
+ }
71
+ &-clear,
72
+ &-right-icon {
73
+ margin-left: 4px;
74
+ }
75
+ &-left-icon {
76
+ margin-right: 4px;
77
+ }
78
+ &-clear {
49
79
  width: 16px;
50
80
  height: 16px;
51
- position: absolute;
52
- right: 15px;
81
+ color: #c8c9cc;
82
+ cursor: pointer;
83
+ }
84
+ .nut-button {
85
+ margin-left: 10px;
86
+ }
87
+ &.nut-input-required {
88
+ &::before {
89
+ position: absolute;
90
+ left: 14px;
91
+ color: $input-required-color;
92
+ content: '*';
93
+ }
53
94
  }
54
95
  &-disabled {
55
96
  color: $input-disabled-color !important;
@@ -61,4 +102,9 @@
61
102
  -webkit-text-fill-color: $input-disabled-color;
62
103
  }
63
104
  }
105
+ &-error,
106
+ &-error::placeholder {
107
+ color: $input-required-color;
108
+ -webkit-text-fill-color: $input-required-color;
109
+ }
64
110
  }
@@ -24,8 +24,10 @@
24
24
  height: 100%;
25
25
  text-align: center;
26
26
  outline: none;
27
- border: 0;
28
- margin: 0 6px;
27
+ border: $inputnumber-input-border;
28
+ font-size: $inputnumber-input-font-size;
29
+ color: $inputnumber-input-font-color;
30
+ margin: $inputnumber-input-margin;
29
31
  background-color: $inputnumber-input-background-color;
30
32
  border-radius: $inputnumber-input-border-radius;
31
33
  }
@@ -0,0 +1,24 @@
1
+ .nut-list {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow: scroll;
5
+ position: relative;
6
+ -webkit-overflow-scrolling: touch;
7
+ &-phantom {
8
+ position: absolute;
9
+ left: 0;
10
+ top: 0;
11
+ right: 0;
12
+ z-index: -1;
13
+ }
14
+ &-container {
15
+ left: 0;
16
+ right: 0;
17
+ top: 0;
18
+ position: absolute;
19
+ }
20
+ &-item {
21
+ overflow: hidden;
22
+ margin: $list-item-margin;
23
+ }
24
+ }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  line-height: $menu-bar-line-height;
5
5
  background-color: $white;
6
- border-bottom: 1px solid $menu-bar-border-bottom-color;
6
+ box-shadow: $menu-bar-box-shadow;
7
7
 
8
8
  &.opened {
9
9
  z-index: $menu-bar-opened-z-index;
@@ -12,8 +12,8 @@
12
12
  .nut-menu__item {
13
13
  flex: 1;
14
14
  text-align: center;
15
- font-size: $font-size-2;
16
- color: $title-color;
15
+ font-size: $menu-item-font-size;
16
+ color: $menu-item-text-color;
17
17
  min-width: 0;
18
18
 
19
19
  &.active {
@@ -2,18 +2,28 @@
2
2
  position: relative;
3
3
  display: flex;
4
4
  align-items: center;
5
- height: 44px;
5
+ height: $navbar-height;
6
6
  box-sizing: border-box;
7
- padding: 13px 16px;
8
- background: $white;
9
- box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
10
- font-size: $cell-title-font;
11
- color: $cell-color;
12
- margin-bottom: 20px;
7
+ padding: $navbar-padding;
8
+ background: $navbar-background;
9
+ box-shadow: $navbar-box-shadow;
10
+ font-size: $navbar-title-base-font;
11
+ color: $navbar-color;
12
+ margin-bottom: $navbar-margin-bottom;
13
13
  overflow: hidden;
14
14
  &:active::before {
15
15
  opacity: 0.1;
16
16
  }
17
+ &--fixed {
18
+ position: fixed;
19
+ top: 0;
20
+ left: 0;
21
+ width: 100%;
22
+ }
23
+ &--safe-area-inset-top {
24
+ padding-top: constant(safe-area-inset-top);
25
+ padding-top: env(safe-area-inset-top);
26
+ }
17
27
  &--clickable {
18
28
  &::before {
19
29
  position: absolute;
@@ -41,9 +51,21 @@
41
51
  min-width: 53%;
42
52
  margin: 0 auto;
43
53
  text-align: center;
54
+ display: flex;
55
+ justify-content: center;
56
+ .title {
57
+ width: $navbar-title-width;
58
+ font-size: $navbar-title-font;
59
+ font-weight: $navbar-title-font-weight;
60
+ color: $navbar-title-font-color;
61
+ display: -webkit-box;
62
+ -webkit-box-orient: vertical;
63
+ -webkit-line-clamp: 1;
64
+ overflow: hidden;
65
+ }
44
66
  &.icon {
45
67
  .icon {
46
- margin-left: 13px;
68
+ margin: $navbar-title-icon-margin;
47
69
  }
48
70
  }
49
71
  .nut-icon {
@@ -1,13 +1,16 @@
1
1
  .nut-noticebar-page {
2
- width: 100%;
2
+ // width: 100%;
3
3
  display: flex;
4
+ padding: $noticebar-box-padding;
4
5
  height: $noticebar-height;
5
6
  font-size: $noticebar-font-size;
6
7
  position: relative;
7
8
  align-items: center;
9
+ background: $noticebar-background;
10
+ color: $noticebar-color;
8
11
  &.wrapable {
9
12
  height: auto;
10
- padding: 8px 16px;
13
+ padding: $noticebar-wrapable-padding;
11
14
  .wrap {
12
15
  height: auto;
13
16
  .content {
@@ -25,7 +28,7 @@
25
28
  .left-icon {
26
29
  height: $noticebar-left-icon-width;
27
30
  min-width: $noticebar-left-icon-width;
28
- margin: 0 5px 0 10px;
31
+ margin: $noticebar-lefticon-margin;
29
32
  background-size: 100% 100%;
30
33
  }
31
34
  .right-icon {
@@ -33,9 +36,10 @@
33
36
  align-items: center;
34
37
  justify-content: center;
35
38
  width: $noticebar-right-icon-width;
36
- margin: 0 10px 0 5px;
39
+ margin: $noticebar-righticon-margin;
37
40
  }
38
41
  .wrap {
42
+ display: flex;
39
43
  flex: 1;
40
44
  height: $noticebar-line-height;
41
45
  line-height: $noticebar-line-height;
@@ -72,7 +76,7 @@
72
76
 
73
77
  @keyframes nut-notice-bar-play-infinite {
74
78
  to {
75
- transform: translate3d(-100%, 0, 0);
79
+ transform: translateX(-100%);
76
80
  }
77
81
  }
78
82
  // 垂直方向的滚动
@@ -90,6 +94,7 @@
90
94
  height: $noticebar-height;
91
95
  font-size: $noticebar-font-size;
92
96
  overflow: hidden;
97
+ padding: $noticebar-box-padding;
93
98
 
94
99
  .horseLamp_list {
95
100
  margin: 0;
@@ -7,6 +7,15 @@
7
7
  transition: transform 0.3s;
8
8
  z-index: 9999;
9
9
  }
10
+ .popup-bottom {
11
+ position: fixed;
12
+ bottom: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ overflow-y: auto;
16
+ transition: transform 0.3s;
17
+ z-index: 9999;
18
+ }
10
19
 
11
20
  .nut-fade-enter-active {
12
21
  transition: opacity 1s;
@@ -29,6 +38,7 @@
29
38
  text-align: center;
30
39
  word-wrap: break-word;
31
40
  height: $notify-height;
41
+ line-height: $notify-line-height;
32
42
  &--base {
33
43
  background: $notify-base-background-color;
34
44
  }