@nutui/nutui-react 1.2.3-beta.2 → 1.3.0-beta.5
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.
- package/dist/esm/Avatar.js +7 -5
- package/dist/esm/CalendarItem.js +19 -15
- package/dist/esm/CheckboxGroup.js +0 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Icon/style/index.js +1 -0
- package/dist/esm/Icon.js +2 -2
- package/dist/esm/Infiniteloading.js +6 -5
- package/dist/esm/Input.js +8 -2
- package/dist/esm/InputNumber.js +11 -11
- package/dist/esm/NoticeBar.js +67 -28
- package/dist/esm/Notify.js +17 -3
- package/dist/esm/Picker.js +9 -4
- package/dist/esm/Popover.js +56 -72
- package/dist/esm/Price.js +14 -3
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/Range.js +9 -3
- package/dist/esm/ShortPassword.js +22 -17
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +3 -0
- package/dist/esm/Toast.js +22 -12
- package/dist/esm/Uploader.js +16 -6
- package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +240 -173
- package/dist/nutui.react.umd.js +16771 -28
- package/dist/packages/col/col.scss +2 -2
- package/dist/packages/collapseitem/collapseitem.scss +1 -2
- package/dist/packages/icon/icon.scss +104 -12
- package/dist/packages/noticebar/noticebar.scss +31 -15
- package/dist/packages/notify/notify.scss +9 -0
- package/dist/packages/popover/popover.scss +205 -83
- package/dist/packages/rate/rate.scss +14 -13
- package/dist/packages/toast/toast.scss +16 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/animation/icon.scss +245 -0
- package/dist/styles/animation/index.scss +1 -0
- package/dist/styles/font/config.json +169 -0
- package/dist/styles/font/demo_index.html +210 -3
- package/dist/styles/font/iconfont.css +39 -3
- package/dist/styles/font/iconfont.js +32 -32
- package/dist/styles/font/iconfont.json +63 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/variables.scss +23 -8
- package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
- package/dist/types/actionsheet/index.taro.d.ts +2 -0
- package/dist/types/address/address.taro.d.ts +34 -0
- package/dist/types/address/index.taro.d.ts +2 -0
- package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
- package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
- package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
- package/dist/types/avatar/avatar.taro.d.ts +17 -0
- package/dist/types/avatar/index.taro.d.ts +2 -0
- package/dist/types/avatargroup/index.taro.d.ts +2 -0
- package/dist/types/backtop/backtop.taro.d.ts +15 -0
- package/dist/types/backtop/index.taro.d.ts +2 -0
- package/dist/types/badge/badge.taro.d.ts +14 -0
- package/dist/types/badge/index.taro.d.ts +2 -0
- package/dist/types/barrage/barrage.taro.d.ts +12 -0
- package/dist/types/barrage/index.taro.d.ts +2 -0
- package/dist/types/button/button.taro.d.ts +20 -0
- package/dist/types/button/index.taro.d.ts +2 -0
- package/dist/types/calendar/calendar.taro.d.ts +14 -0
- package/dist/types/calendar/index.taro.d.ts +2 -0
- package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
- package/dist/types/calendaritem/index.taro.d.ts +2 -0
- package/dist/types/card/card.taro.d.ts +17 -0
- package/dist/types/card/index.taro.d.ts +2 -0
- package/dist/types/cell/cell.taro.d.ts +20 -0
- package/dist/types/cell/index.taro.d.ts +2 -0
- package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
- package/dist/types/cellgroup/index.taro.d.ts +2 -0
- package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
- package/dist/types/checkbox/index.taro.d.ts +2 -0
- package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
- package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
- package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
- package/dist/types/circleprogress/index.taro.d.ts +2 -0
- package/dist/types/col/col.taro.d.ts +10 -0
- package/dist/types/col/index.taro.d.ts +2 -0
- package/dist/types/collapse/collapse.taro.d.ts +12 -0
- package/dist/types/collapse/index.taro.d.ts +2 -0
- package/dist/types/collapseitem/index.taro.d.ts +2 -0
- package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
- package/dist/types/configprovider/index.taro.d.ts +2 -0
- package/dist/types/countdown/countdown.taro.d.ts +15 -0
- package/dist/types/countdown/index.taro.d.ts +2 -0
- package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
- package/dist/types/datepicker/index.taro.d.ts +2 -0
- package/dist/types/dialog/dialog.taro.d.ts +2 -0
- package/dist/types/dialog/index.taro.d.ts +2 -0
- package/dist/types/divider/divider.taro.d.ts +12 -0
- package/dist/types/divider/index.taro.d.ts +2 -0
- package/dist/types/drag/drag.taro.d.ts +14 -0
- package/dist/types/drag/index.taro.d.ts +2 -0
- package/dist/types/elevator/elevator.taro.d.ts +22 -0
- package/dist/types/elevator/index.taro.d.ts +2 -0
- package/dist/types/empty/empty.taro.d.ts +8 -0
- package/dist/types/empty/index.taro.d.ts +2 -0
- package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
- package/dist/types/fixednav/index.taro.d.ts +2 -0
- package/dist/types/icon/icon.d.ts +9 -3
- package/dist/types/icon/icon.taro.d.ts +19 -0
- package/dist/types/icon/index.taro.d.ts +2 -0
- package/dist/types/indicator/index.taro.d.ts +2 -0
- package/dist/types/indicator/indicator.taro.d.ts +10 -0
- package/dist/types/infiniteloading/index.taro.d.ts +2 -0
- package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
- package/dist/types/input/index.taro.d.ts +2 -0
- package/dist/types/input/input.taro.d.ts +57 -0
- package/dist/types/inputnumber/index.taro.d.ts +2 -0
- package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
- package/dist/types/layout/index.taro.d.ts +2 -0
- package/dist/types/layout/layout.taro.d.ts +4 -0
- package/dist/types/navbar/index.taro.d.ts +2 -0
- package/dist/types/navbar/navbar.taro.d.ts +21 -0
- package/dist/types/noticebar/demo.d.ts +1 -0
- package/dist/types/noticebar/index.taro.d.ts +2 -0
- package/dist/types/noticebar/noticebar.d.ts +1 -1
- package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
- package/dist/types/notify/Notification.d.ts +8 -7
- package/dist/types/notify/index.taro.d.ts +2 -0
- package/dist/types/notify/notify.taro.d.ts +10 -0
- package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
- package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
- package/dist/types/overlay/index.taro.d.ts +2 -0
- package/dist/types/overlay/overlay.taro.d.ts +12 -0
- package/dist/types/pagination/index.taro.d.ts +2 -0
- package/dist/types/pagination/pagination.taro.d.ts +19 -0
- package/dist/types/picker/index.taro.d.ts +2 -0
- package/dist/types/picker/picker.d.ts +1 -0
- package/dist/types/picker/picker.taro.d.ts +24 -0
- package/dist/types/picker/pickerSlot.d.ts +1 -0
- package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
- package/dist/types/popover/index.taro.d.ts +2 -0
- package/dist/types/popover/popover.d.ts +14 -7
- package/dist/types/popover/popover.taro.d.ts +21 -0
- package/dist/types/popup/index.taro.d.ts +2 -0
- package/dist/types/popup/popup.taro.d.ts +25 -0
- package/dist/types/price/index.taro.d.ts +2 -0
- package/dist/types/price/price.taro.d.ts +11 -0
- package/dist/types/progress/index.taro.d.ts +2 -0
- package/dist/types/progress/progress.taro.d.ts +26 -0
- package/dist/types/radio/index.taro.d.ts +2 -0
- package/dist/types/radio/radio.taro.d.ts +21 -0
- package/dist/types/radiogroup/index.taro.d.ts +2 -0
- package/dist/types/range/index.taro.d.ts +2 -0
- package/dist/types/range/range.taro.d.ts +25 -0
- package/dist/types/rate/index.taro.d.ts +2 -0
- package/dist/types/rate/rate.taro.d.ts +17 -0
- package/dist/types/row/index.taro.d.ts +2 -0
- package/dist/types/row/row.taro.d.ts +12 -0
- package/dist/types/searchbar/index.taro.d.ts +2 -0
- package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
- package/dist/types/shortpassword/_test_/index.spec.d.ts +1 -0
- package/dist/types/shortpassword/index.taro.d.ts +2 -0
- package/dist/types/shortpassword/shortpassword.d.ts +3 -3
- package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
- package/dist/types/sidenavbar/index.taro.d.ts +2 -0
- package/dist/types/sidenavbar/sidenavbar.taro.d.ts +3 -0
- package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
- package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -0
- package/dist/types/signature/index.taro.d.ts +2 -0
- package/dist/types/signature/signature.taro.d.ts +11 -0
- package/dist/types/skeleton/index.taro.d.ts +2 -0
- package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
- package/dist/types/step/index.taro.d.ts +2 -0
- package/dist/types/steps/index.taro.d.ts +2 -0
- package/dist/types/steps/steps.taro.d.ts +10 -0
- package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
- package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +3 -0
- package/dist/types/swiper/index.taro.d.ts +2 -0
- package/dist/types/swiper/swiper.taro.d.ts +27 -0
- package/dist/types/swiperitem/index.taro.d.ts +2 -0
- package/dist/types/switch/index.taro.d.ts +2 -0
- package/dist/types/switch/switch.taro.d.ts +14 -0
- package/dist/types/tabbar/index.taro.d.ts +2 -0
- package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
- package/dist/types/tabbaritem/index.taro.d.ts +2 -0
- package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
- package/dist/types/table/index.taro.d.ts +2 -0
- package/dist/types/table/table.taro.d.ts +3 -0
- package/dist/types/tabpane/index.taro.d.ts +2 -0
- package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
- package/dist/types/tabs/index.taro.d.ts +2 -0
- package/dist/types/tabs/tabs.taro.d.ts +30 -0
- package/dist/types/tag/index.taro.d.ts +2 -0
- package/dist/types/tag/tag.taro.d.ts +16 -0
- package/dist/types/textarea/index.taro.d.ts +2 -0
- package/dist/types/textarea/textarea.taro.d.ts +18 -0
- package/dist/types/timedetail/index.taro.d.ts +2 -0
- package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
- package/dist/types/timepannel/index.taro.d.ts +2 -0
- package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
- package/dist/types/timeselect/index.taro.d.ts +2 -0
- package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
- package/dist/types/toast/Notification.d.ts +6 -4
- package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
- package/dist/types/toast/index.taro.d.ts +2 -0
- package/dist/types/toast/toast.taro.d.ts +11 -0
- package/dist/types/uploader/index.taro.d.ts +2 -0
- package/dist/types/uploader/uploader.d.ts +2 -2
- package/dist/types/uploader/uploader.taro.d.ts +68 -0
- package/dist/types/video/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/virtuallist.taro.d.ts +3 -0
- package/package.json +22 -4
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
@for $i from 1 through 24 {
|
|
17
17
|
.nut-col-offset-#{$i} {
|
|
18
|
-
margin-left: calc(100 / 24) * $i * 1
|
|
18
|
+
margin-left: calc((100 / 24) * #{$i} * 1%);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.nut-col-#{$i} {
|
|
22
|
-
width: calc(100 / 24) * $i * 1
|
|
22
|
+
width: calc((100 / 24) * #{$i} * 1%);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.nut-collapse-item {
|
|
5
5
|
&__header {
|
|
6
6
|
position: relative;
|
|
7
|
-
display:
|
|
7
|
+
display: flex;
|
|
8
8
|
width: 100%;
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
padding: 13px 0px 13px 26px;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
line-height: 24px;
|
|
14
14
|
background-color: #fff;
|
|
15
15
|
box-sizing: border-box;
|
|
16
|
-
display: flex;
|
|
17
16
|
&::after {
|
|
18
17
|
position: absolute;
|
|
19
18
|
box-sizing: border-box;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import '../../styles/font/iconfont.css';
|
|
2
|
+
@import '../../styles/animation/icon.scss';
|
|
3
|
+
|
|
2
4
|
.nut-icon {
|
|
3
5
|
display: inline-block;
|
|
4
6
|
position: relative;
|
|
@@ -19,22 +21,112 @@
|
|
|
19
21
|
height: $icon-height;
|
|
20
22
|
object-fit: contain;
|
|
21
23
|
}
|
|
22
|
-
&-loading
|
|
24
|
+
&-loading,
|
|
25
|
+
&-loading1 {
|
|
23
26
|
display: inline-block;
|
|
24
|
-
animation:
|
|
27
|
+
animation: rotation 1s infinite linear;
|
|
25
28
|
}
|
|
26
|
-
}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
--animate-duration: 1s;
|
|
31
|
+
--animate-delay: 0s;
|
|
32
|
+
|
|
33
|
+
&-am-infinite {
|
|
34
|
+
-webkit-animation-iteration-count: infinite;
|
|
35
|
+
-webkit-animation-direction: alternate;
|
|
36
|
+
animation-iteration-count: infinite;
|
|
37
|
+
animation-direction: alternate;
|
|
32
38
|
}
|
|
33
|
-
|
|
39
|
+
&-am-jump {
|
|
40
|
+
-webkit-animation-name: nutJumpOne;
|
|
41
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
42
|
+
-webkit-animation-timing-function: ease;
|
|
43
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
44
|
+
|
|
45
|
+
animation-name: nutJumpOne;
|
|
46
|
+
animation-duration: var(--animate-duration);
|
|
47
|
+
animation-timing-function: ease;
|
|
48
|
+
animation-delay: var(--animate-delay);
|
|
49
|
+
|
|
50
|
+
&.nut-icon-am-infinite {
|
|
51
|
+
-webkit-animation-name: nutJump;
|
|
52
|
+
animation-name: nutJump;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-am-rotate {
|
|
57
|
+
-webkit-animation-name: rotation;
|
|
58
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
59
|
+
-webkit-animation-timing-function: linear;
|
|
60
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
61
|
+
|
|
62
|
+
animation-name: rotation;
|
|
63
|
+
animation-duration: var(--animate-duration);
|
|
64
|
+
animation-timing-function: linear;
|
|
65
|
+
animation-delay: var(--animate-delay);
|
|
66
|
+
|
|
67
|
+
&.nut-icon-am-infinite {
|
|
68
|
+
-webkit-animation-direction: normal;
|
|
69
|
+
animation-direction: normal;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&-am-blink {
|
|
73
|
+
-webkit-animation-name: nutBlink;
|
|
74
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
75
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
76
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
77
|
+
|
|
78
|
+
animation-name: nutBlink;
|
|
79
|
+
animation-duration: var(--animate-duration);
|
|
80
|
+
animation-timing-function: linear;
|
|
81
|
+
animation-delay: var(--animate-delay);
|
|
82
|
+
}
|
|
83
|
+
&-am-breathe {
|
|
84
|
+
-webkit-animation-name: nutBreathe;
|
|
85
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
86
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
87
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
88
|
+
|
|
89
|
+
animation-name: nutBreathe;
|
|
90
|
+
animation-duration: var(--animate-duration);
|
|
91
|
+
animation-timing-function: ease-in-out;
|
|
92
|
+
animation-delay: var(--animate-delay);
|
|
93
|
+
}
|
|
94
|
+
&-am-flash {
|
|
95
|
+
-webkit-animation-name: nutFlash;
|
|
96
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
97
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
98
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
99
|
+
|
|
100
|
+
animation-name: nutFlash;
|
|
101
|
+
animation-duration: var(--animate-duration);
|
|
102
|
+
animation-timing-function: ease-in-out;
|
|
103
|
+
animation-delay: var(--animate-delay);
|
|
104
|
+
}
|
|
105
|
+
&-am-bounce {
|
|
106
|
+
-webkit-animation-name: nutBounce;
|
|
107
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
108
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
109
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
110
|
+
animation-name: nutBounce;
|
|
111
|
+
animation-duration: var(--animate-duration);
|
|
112
|
+
animation-timing-function: ease-in-out;
|
|
113
|
+
animation-delay: var(--animate-delay);
|
|
114
|
+
|
|
115
|
+
&.nut-icon-am-infinite {
|
|
116
|
+
-webkit-animation-direction: normal;
|
|
117
|
+
animation-direction: normal;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-am-shake {
|
|
122
|
+
-webkit-animation-name: nutShake;
|
|
123
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
124
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
125
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
34
126
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
127
|
+
animation-name: nutShake;
|
|
128
|
+
animation-duration: var(--animate-duration);
|
|
129
|
+
animation-timing-function: ease-in-out;
|
|
130
|
+
animation-delay: var(--animate-delay);
|
|
39
131
|
}
|
|
40
132
|
}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
+
.nut-theme-dark {
|
|
2
|
+
.nut-noticebar-page {
|
|
3
|
+
background: $dark-background2;
|
|
4
|
+
color: $dark-color;
|
|
5
|
+
}
|
|
1
6
|
|
|
7
|
+
.nut-noticebar-vertical {
|
|
8
|
+
.horseLamp_list_item {
|
|
9
|
+
color: $dark-color;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
2
13
|
.nut-noticebar {
|
|
3
14
|
.nut-noticebar-page {
|
|
4
|
-
width: 100%;
|
|
5
15
|
display: flex;
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
padding: $noticebar-box-padding;
|
|
17
|
+
height: $noticebar-height;
|
|
18
|
+
font-size: $noticebar-font-size;
|
|
8
19
|
position: relative;
|
|
9
20
|
align-items: center;
|
|
21
|
+
background: $noticebar-background;
|
|
22
|
+
color: $noticebar-color;
|
|
10
23
|
&.wrapable {
|
|
11
24
|
height: auto;
|
|
12
|
-
padding:
|
|
25
|
+
padding: $noticebar-wrapable-padding;
|
|
13
26
|
.wrap {
|
|
14
27
|
height: auto;
|
|
15
28
|
.content {
|
|
@@ -25,22 +38,23 @@
|
|
|
25
38
|
padding-right: 40px;
|
|
26
39
|
}
|
|
27
40
|
.left-icon {
|
|
28
|
-
height: $
|
|
29
|
-
min-width: $
|
|
30
|
-
margin:
|
|
41
|
+
height: $noticebar-left-icon-width;
|
|
42
|
+
min-width: $noticebar-left-icon-width;
|
|
43
|
+
margin: $noticebar-lefticon-margin;
|
|
31
44
|
background-size: 100% 100%;
|
|
32
45
|
}
|
|
33
46
|
.right-icon {
|
|
34
47
|
display: flex;
|
|
35
48
|
align-items: center;
|
|
36
49
|
justify-content: center;
|
|
37
|
-
width: $
|
|
38
|
-
margin:
|
|
50
|
+
width: $noticebar-right-icon-width;
|
|
51
|
+
margin: $noticebar-righticon-margin;
|
|
39
52
|
}
|
|
40
53
|
.wrap {
|
|
54
|
+
display: flex;
|
|
41
55
|
flex: 1;
|
|
42
|
-
height: $
|
|
43
|
-
line-height: $
|
|
56
|
+
height: $noticebar-line-height;
|
|
57
|
+
line-height: $noticebar-line-height;
|
|
44
58
|
overflow: hidden;
|
|
45
59
|
position: relative;
|
|
46
60
|
}
|
|
@@ -80,7 +94,7 @@
|
|
|
80
94
|
// 垂直方向的滚动
|
|
81
95
|
@keyframes nut-notice-bar-play-vertical {
|
|
82
96
|
to {
|
|
83
|
-
transform: translateY($
|
|
97
|
+
transform: translateY($noticebar-height);
|
|
84
98
|
}
|
|
85
99
|
}
|
|
86
100
|
|
|
@@ -89,9 +103,10 @@
|
|
|
89
103
|
position: relative;
|
|
90
104
|
display: flex;
|
|
91
105
|
justify-content: space-between;
|
|
92
|
-
height: $
|
|
93
|
-
font-size: $
|
|
106
|
+
height: $noticebar-height;
|
|
107
|
+
font-size: $noticebar-font-size;
|
|
94
108
|
overflow: hidden;
|
|
109
|
+
padding: $noticebar-box-padding;
|
|
95
110
|
|
|
96
111
|
.horseLamp_list {
|
|
97
112
|
margin: 0;
|
|
@@ -101,12 +116,13 @@
|
|
|
101
116
|
.horseLamp_list_item {
|
|
102
117
|
display: flex;
|
|
103
118
|
align-items: center;
|
|
104
|
-
height: $
|
|
119
|
+
height: $noticebar-height;
|
|
105
120
|
}
|
|
106
121
|
}
|
|
107
122
|
|
|
108
123
|
.go {
|
|
109
124
|
align-self: center;
|
|
125
|
+
display: flex;
|
|
110
126
|
}
|
|
111
127
|
}
|
|
112
128
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
// background: skyblue;
|
|
3
|
-
// // background: #fff;
|
|
4
|
-
// padding: 20px;
|
|
5
|
-
.titBox {
|
|
6
|
-
// margin-bottom: 20px;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.nut-popover--dark,
|
|
1
|
+
|
|
10
2
|
.nut-popover {
|
|
11
|
-
position: relative;
|
|
12
3
|
display: inline-block;
|
|
13
|
-
|
|
4
|
+
|
|
5
|
+
> div {
|
|
6
|
+
position: relative;
|
|
7
|
+
// z-index: 9999;
|
|
8
|
+
}
|
|
9
|
+
|
|
14
10
|
.more-background {
|
|
15
11
|
background: $popover-white-background-color;
|
|
16
12
|
opacity: 0;
|
|
@@ -20,10 +16,163 @@
|
|
|
20
16
|
z-index: 10;
|
|
21
17
|
left: 0;
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
.
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
|
|
20
|
+
.popover-arrow {
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 0;
|
|
23
|
+
height: 0;
|
|
24
|
+
border: 8px solid transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// top
|
|
28
|
+
|
|
29
|
+
.popover-arrow-top {
|
|
30
|
+
bottom: 0;
|
|
31
|
+
border-top-color: $popover-white-background-color;
|
|
32
|
+
border-bottom-width: 0;
|
|
33
|
+
margin-bottom: -8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.popover-content--top {
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
|
|
40
|
+
.popover-arrow--top {
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.popover-content--top-end {
|
|
47
|
+
.popover-arrow--top-end {
|
|
48
|
+
right: 16px;
|
|
49
|
+
transform: translateX(0%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
right: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.popover-content--top-start {
|
|
56
|
+
left: 0;
|
|
57
|
+
|
|
58
|
+
.popover-arrow--top-start {
|
|
59
|
+
left: 16px;
|
|
60
|
+
transform: translateX(0%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// bottom
|
|
65
|
+
.popover-content--bottom {
|
|
66
|
+
left: 50%;
|
|
67
|
+
transform: translateX(-50%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.popover-content--bottom-end {
|
|
71
|
+
right: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.popover-content--bottom-start {
|
|
75
|
+
left: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// left
|
|
79
|
+
.popover-content--left {
|
|
80
|
+
top: 50%;
|
|
81
|
+
transform: translateY(-50%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.popover-content--left-end {
|
|
85
|
+
bottom: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.popover-content--left-start {
|
|
89
|
+
top: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// right
|
|
93
|
+
.popover-content--right {
|
|
94
|
+
top: 50%;
|
|
95
|
+
transform: translateY(-50%);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.popover-content--right-end {
|
|
99
|
+
bottom: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.popover-content--right-start {
|
|
103
|
+
top: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// arrow bottom
|
|
107
|
+
.popover-arrow-bottom {
|
|
108
|
+
top: 0px;
|
|
109
|
+
border-bottom-color: $popover-white-background-color;
|
|
110
|
+
border-top-width: 0;
|
|
111
|
+
margin-top: -8px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.popover-arrow--bottom {
|
|
115
|
+
left: 50%;
|
|
116
|
+
transform: translateX(-50%);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.popover-arrow--bottom-start {
|
|
120
|
+
left: 16px;
|
|
121
|
+
transform: translateX(0%);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.popover-arrow--bottom-end {
|
|
125
|
+
right: 16px;
|
|
126
|
+
transform: translateX(0%);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// arrow left
|
|
130
|
+
.popover-arrow-left {
|
|
131
|
+
right: 0px;
|
|
132
|
+
border-left-color: $popover-white-background-color;
|
|
133
|
+
border-right-width: 0;
|
|
134
|
+
margin-right: -8px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.popover-arrow--left {
|
|
138
|
+
top: 50%;
|
|
139
|
+
transform: translateY(-50%);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.popover-arrow--left-start {
|
|
143
|
+
top: 16px;
|
|
144
|
+
transform: translateY(0%);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.popover-arrow--left-end {
|
|
148
|
+
bottom: 16px;
|
|
149
|
+
transform: translateY(0%);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// arrow right
|
|
153
|
+
.popover-arrow-right {
|
|
154
|
+
left: 0px;
|
|
155
|
+
border-right-color: $popover-white-background-color;
|
|
156
|
+
border-left-width: 0;
|
|
157
|
+
margin-left: -8px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.popover-arrow--right {
|
|
161
|
+
top: 50%;
|
|
162
|
+
transform: translateY(-50%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.popover-arrow--right-start {
|
|
166
|
+
top: 16px;
|
|
167
|
+
transform: translateY(0%);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.popover-arrow--right-end {
|
|
171
|
+
bottom: 16px;
|
|
172
|
+
transform: translateY(0%);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.popover-content {
|
|
27
176
|
z-index: 12;
|
|
28
177
|
background: $popover-white-background-color;
|
|
29
178
|
border-radius: 5px;
|
|
@@ -33,63 +182,37 @@
|
|
|
33
182
|
font-weight: normal;
|
|
34
183
|
color: $popover-primary-text-color;
|
|
35
184
|
position: absolute;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
border-top: 10px solid transparent;
|
|
43
|
-
border-bottom: 10px solid $popover-white-background-color;
|
|
185
|
+
box-shadow: 0 2px 12px #3232331f;
|
|
186
|
+
opacity: 0;
|
|
187
|
+
transition: opacity 0.1s;
|
|
188
|
+
|
|
189
|
+
&.popover-content-show {
|
|
190
|
+
opacity: 1;
|
|
44
191
|
}
|
|
45
|
-
|
|
192
|
+
|
|
193
|
+
.popover-menu-item {
|
|
46
194
|
display: flex;
|
|
47
195
|
align-items: center;
|
|
48
196
|
padding-bottom: 8px;
|
|
49
197
|
margin: 8px;
|
|
50
198
|
border-bottom: 1px solid $popover-border-bottom-color;
|
|
199
|
+
|
|
51
200
|
&:first-child {
|
|
52
201
|
margin-top: 15px;
|
|
53
202
|
}
|
|
203
|
+
|
|
54
204
|
&:last-child {
|
|
55
205
|
margin-bottom: 2px;
|
|
56
206
|
border-bottom: none;
|
|
57
207
|
}
|
|
58
|
-
|
|
208
|
+
|
|
209
|
+
.popover-menu-item-name {
|
|
59
210
|
margin-right: 12px;
|
|
60
211
|
margin-left: 8px;
|
|
61
212
|
width: 100%;
|
|
62
213
|
}
|
|
63
214
|
}
|
|
64
215
|
}
|
|
65
|
-
.popoverContent--top {
|
|
66
|
-
.popoverArrow--top {
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: auto;
|
|
69
|
-
border-left: 8px solid transparent;
|
|
70
|
-
border-right: 8px solid transparent;
|
|
71
|
-
border-top: 10px solid $popover-white-background-color;
|
|
72
|
-
border-bottom: 10px solid transparent;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.popoverContent--left {
|
|
76
|
-
.popoverArrow--left {
|
|
77
|
-
position: absolute;
|
|
78
|
-
border-left: 10px solid $popover-white-background-color;
|
|
79
|
-
border-right: 10px solid transparent;
|
|
80
|
-
border-top: 8px solid transparent;
|
|
81
|
-
border-bottom: 8px solid transparent;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
.popoverContent--right {
|
|
85
|
-
.popoverArrow--right {
|
|
86
|
-
position: absolute;
|
|
87
|
-
border-left: 10px solid transparent;
|
|
88
|
-
border-right: 10px solid $popover-white-background-color;
|
|
89
|
-
border-top: 8px solid transparent;
|
|
90
|
-
border-bottom: 8px solid transparent;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
216
|
|
|
94
217
|
.disabled {
|
|
95
218
|
color: $popover-disable-color;
|
|
@@ -100,42 +223,41 @@
|
|
|
100
223
|
.nut-popover--dark {
|
|
101
224
|
background: $popover-dark-background-color;
|
|
102
225
|
color: $popover-white-background-color;
|
|
103
|
-
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
226
|
+
|
|
227
|
+
.popover-content {
|
|
228
|
+
background: $popover-dark-background-color !important;
|
|
229
|
+
color: $popover-white-background-color !important;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.popover-content--bottom,
|
|
233
|
+
.popover-content--bottom-start,
|
|
234
|
+
.popover-content--bottom-end {
|
|
235
|
+
.popover-arrow {
|
|
236
|
+
border-bottom-color: $popover-dark-background-color;
|
|
111
237
|
}
|
|
112
238
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
border-
|
|
119
|
-
border-top: 10px solid $popover-dark-background-color;
|
|
120
|
-
border-bottom: 10px solid transparent;
|
|
239
|
+
|
|
240
|
+
.popover-content--top,
|
|
241
|
+
.popover-content--top-start,
|
|
242
|
+
.popover-content--top-end {
|
|
243
|
+
.popover-arrow {
|
|
244
|
+
border-top-color: $popover-dark-background-color;
|
|
121
245
|
}
|
|
122
246
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
border-
|
|
129
|
-
border-bottom: 8px solid transparent;
|
|
247
|
+
|
|
248
|
+
.popover-content--left,
|
|
249
|
+
.popover-content--left-start,
|
|
250
|
+
.popover-content--left-end {
|
|
251
|
+
.popover-arrow {
|
|
252
|
+
border-left-color: $popover-dark-background-color;
|
|
130
253
|
}
|
|
131
254
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
border-
|
|
138
|
-
border-bottom: 8px solid transparent;
|
|
255
|
+
|
|
256
|
+
.popover-content--right,
|
|
257
|
+
.popover-content--right-start,
|
|
258
|
+
.popover-content--right-end {
|
|
259
|
+
.popover-arrow {
|
|
260
|
+
border-right-color: $popover-dark-background-color;
|
|
139
261
|
}
|
|
140
262
|
}
|
|
141
263
|
}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
.nut-rate {
|
|
3
3
|
display: flex;
|
|
4
4
|
&-item {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
position: relative;
|
|
8
|
-
&:last-child {
|
|
9
|
-
margin-right: 0;
|
|
10
|
-
}
|
|
11
8
|
|
|
12
9
|
&__icon {
|
|
13
10
|
color: $rate-icon-color;
|
|
14
11
|
cursor: pointer;
|
|
15
|
-
|
|
16
|
-
&::before {
|
|
17
|
-
position: relative;
|
|
18
|
-
top: auto;
|
|
19
|
-
left: auto;
|
|
20
|
-
transform: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
&--disabled {
|
|
24
13
|
color: $rate-icon-void-color;
|
|
25
14
|
}
|
|
26
|
-
|
|
15
|
+
|
|
16
|
+
&.nut-rate-item__icon.nut-rate-item__icon--half {
|
|
27
17
|
position: absolute;
|
|
28
18
|
width: 50% !important;
|
|
29
19
|
left: 0;
|
|
30
20
|
top: 0;
|
|
31
21
|
overflow: hidden;
|
|
32
22
|
}
|
|
23
|
+
|
|
24
|
+
&.nut-rate-item__icon::before {
|
|
25
|
+
position: relative;
|
|
26
|
+
top: auto;
|
|
27
|
+
left: auto;
|
|
28
|
+
transform: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:last-child {
|
|
33
|
+
margin-right: 0;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|