@bifrostui/react 1.1.1 → 1.1.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/ActionSheet/ActionSheet.less +31 -0
- package/dist/ActionSheet/ActionSheetItem.less +62 -0
- package/dist/Alert/index.less +112 -0
- package/dist/Avatar/Avatar.less +52 -0
- package/dist/Avatar/AvatarGroup.less +39 -0
- package/dist/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
- package/dist/Badge/Badge.less +118 -0
- package/dist/Button/Button.less +244 -0
- package/dist/Calendar/Calendar.less +126 -0
- package/{es/Card/Card.css → dist/Card/Card.less} +1 -0
- package/dist/Card/CardHeader.less +53 -0
- package/dist/Checkbox/Checkbox.less +55 -0
- package/dist/CitySelector/CitySelector.less +122 -0
- package/dist/CitySelector/CitySelectorCore.js +1 -2
- package/{es/CitySelector/Selector/index.css → dist/CitySelector/Selector/index.less} +2 -0
- package/dist/Countdown/Countdown.less +39 -0
- package/dist/Divider/Divider.less +50 -0
- package/dist/Drawer/Drawer.less +40 -0
- package/dist/IconButton/IconButton.less +167 -0
- package/dist/Image/index.less +40 -0
- package/dist/Input/Input.less +72 -0
- package/dist/List/{List.css → List.less} +1 -0
- package/dist/List/{ListItem.css → ListItem.less} +17 -6
- package/dist/List/{ListItemContent.css → ListItemContent.less} +7 -2
- package/dist/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
- package/dist/Loading/Loading.less +40 -0
- package/dist/Modal/{Modal.css → Modal.less} +8 -6
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/NavBar/NavBar.less +67 -0
- package/dist/Picker/Picker.less +62 -0
- package/dist/Picker/PickerPanel.less +67 -0
- package/dist/Picker/utils.d.ts +1 -1
- package/dist/Progress/Progress.less +24 -0
- package/dist/Radio/Radio.less +81 -0
- package/dist/Rating/Rating.less +64 -0
- package/dist/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
- package/dist/Select/Select.less +105 -0
- package/dist/Skeleton/Skeleton.less +72 -0
- package/dist/Slider/Slider.less +108 -0
- package/dist/Stack/demo/index.less +27 -0
- package/dist/Steps/Step.less +228 -0
- package/{es/Steps/Steps.css → dist/Steps/Steps.less} +5 -3
- package/dist/Swiper/Swiper.less +25 -0
- package/dist/Switch/Switch.less +177 -0
- package/dist/TabBar/TabBarItem.less +54 -0
- package/dist/Tabs/Tab.js +1 -1
- package/dist/Tabs/Tab.less +60 -0
- package/dist/Tabs/TabPanel.less +11 -0
- package/dist/Tabs/Tabs.less +77 -0
- package/dist/Tag/Tag.less +119 -0
- package/dist/Tag/TagGroup.less +52 -0
- package/dist/TextArea/{TextArea.css → TextArea.less} +27 -19
- package/es/ActionSheet/ActionSheet.less +31 -0
- package/es/ActionSheet/ActionSheetItem.less +62 -0
- package/es/Alert/index.less +112 -0
- package/es/Avatar/Avatar.less +52 -0
- package/es/Avatar/AvatarGroup.less +39 -0
- package/es/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
- package/es/Badge/Badge.less +118 -0
- package/es/Button/Button.less +244 -0
- package/es/Calendar/Calendar.less +126 -0
- package/{dist/Card/Card.css → es/Card/Card.less} +1 -0
- package/es/Card/CardHeader.less +53 -0
- package/es/Checkbox/Checkbox.less +55 -0
- package/es/CitySelector/CitySelector.less +122 -0
- package/es/CitySelector/CitySelectorCore.js +2 -3
- package/{dist/CitySelector/Selector/index.css → es/CitySelector/Selector/index.less} +2 -0
- package/es/Countdown/Countdown.less +39 -0
- package/es/Divider/Divider.less +50 -0
- package/es/Drawer/Drawer.less +40 -0
- package/es/IconButton/IconButton.less +167 -0
- package/es/Image/index.less +40 -0
- package/es/Input/Input.less +72 -0
- package/es/List/{List.css → List.less} +1 -0
- package/es/List/{ListItem.css → ListItem.less} +17 -6
- package/es/List/{ListItemContent.css → ListItemContent.less} +7 -2
- package/es/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
- package/es/Loading/Loading.less +40 -0
- package/es/Modal/{Modal.css → Modal.less} +8 -6
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/NavBar/NavBar.less +67 -0
- package/es/Picker/Picker.less +62 -0
- package/es/Picker/PickerPanel.less +67 -0
- package/es/Picker/utils.d.ts +1 -1
- package/es/Progress/Progress.less +24 -0
- package/es/Radio/Radio.less +81 -0
- package/es/Rating/Rating.less +64 -0
- package/es/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
- package/es/Select/Select.less +105 -0
- package/es/Skeleton/Skeleton.less +72 -0
- package/es/Slider/Slider.less +108 -0
- package/es/Stack/demo/index.less +27 -0
- package/es/Steps/Step.less +228 -0
- package/{dist/Steps/Steps.css → es/Steps/Steps.less} +5 -3
- package/es/Swiper/Swiper.less +25 -0
- package/es/Switch/Switch.less +177 -0
- package/es/TabBar/TabBarItem.less +54 -0
- package/es/Tabs/Tab.js +1 -1
- package/es/Tabs/Tab.less +60 -0
- package/es/Tabs/TabPanel.less +11 -0
- package/es/Tabs/Tabs.less +77 -0
- package/es/Tag/Tag.less +119 -0
- package/es/Tag/TagGroup.less +52 -0
- package/es/TextArea/{TextArea.css → TextArea.less} +27 -19
- package/package.json +6 -6
- package/dist/ActionSheet/ActionSheet.css +0 -27
- package/dist/ActionSheet/ActionSheetItem.css +0 -51
- package/dist/Alert/index.css +0 -89
- package/dist/Avatar/Avatar.css +0 -43
- package/dist/Avatar/AvatarGroup.css +0 -31
- package/dist/Badge/Badge.css +0 -95
- package/dist/Button/Button.css +0 -200
- package/dist/Calendar/Calendar.css +0 -105
- package/dist/Card/CardHeader.css +0 -45
- package/dist/Checkbox/Checkbox.css +0 -45
- package/dist/CitySelector/CitySelector.css +0 -102
- package/dist/Countdown/Countdown.css +0 -28
- package/dist/Divider/Divider.css +0 -41
- package/dist/Drawer/Drawer.css +0 -35
- package/dist/IconButton/IconButton.css +0 -130
- package/dist/Image/index.css +0 -35
- package/dist/Input/Input.css +0 -59
- package/dist/Loading/Loading.css +0 -31
- package/dist/NavBar/NavBar.css +0 -57
- package/dist/Picker/Picker.css +0 -53
- package/dist/Picker/PickerPanel.css +0 -54
- package/dist/Progress/Progress.css +0 -22
- package/dist/Radio/Radio.css +0 -65
- package/dist/Rating/Rating.css +0 -52
- package/dist/Select/Select.css +0 -89
- package/dist/Skeleton/Skeleton.css +0 -54
- package/dist/Slider/Slider.css +0 -95
- package/dist/Stack/demo/index.css +0 -23
- package/dist/Steps/Step.css +0 -174
- package/dist/Swiper/Swiper.css +0 -20
- package/dist/Switch/Switch.css +0 -127
- package/dist/TabBar/TabBarItem.css +0 -38
- package/dist/Tabs/Tab.css +0 -52
- package/dist/Tabs/TabPanel.css +0 -9
- package/dist/Tabs/Tabs.css +0 -56
- package/dist/Tag/Tag.css +0 -97
- package/dist/Tag/TagGroup.css +0 -43
- package/es/ActionSheet/ActionSheet.css +0 -27
- package/es/ActionSheet/ActionSheetItem.css +0 -51
- package/es/Alert/index.css +0 -89
- package/es/Avatar/Avatar.css +0 -43
- package/es/Avatar/AvatarGroup.css +0 -31
- package/es/Badge/Badge.css +0 -95
- package/es/Button/Button.css +0 -200
- package/es/Calendar/Calendar.css +0 -105
- package/es/Card/CardHeader.css +0 -45
- package/es/Checkbox/Checkbox.css +0 -45
- package/es/CitySelector/CitySelector.css +0 -102
- package/es/Countdown/Countdown.css +0 -28
- package/es/Divider/Divider.css +0 -41
- package/es/Drawer/Drawer.css +0 -35
- package/es/IconButton/IconButton.css +0 -130
- package/es/Image/index.css +0 -35
- package/es/Input/Input.css +0 -59
- package/es/Loading/Loading.css +0 -31
- package/es/NavBar/NavBar.css +0 -57
- package/es/Picker/Picker.css +0 -53
- package/es/Picker/PickerPanel.css +0 -54
- package/es/Progress/Progress.css +0 -22
- package/es/Radio/Radio.css +0 -65
- package/es/Rating/Rating.css +0 -52
- package/es/Select/Select.css +0 -89
- package/es/Skeleton/Skeleton.css +0 -54
- package/es/Slider/Slider.css +0 -95
- package/es/Stack/demo/index.css +0 -23
- package/es/Steps/Step.css +0 -174
- package/es/Swiper/Swiper.css +0 -20
- package/es/Switch/Switch.css +0 -127
- package/es/TabBar/TabBarItem.css +0 -38
- package/es/Tabs/Tab.css +0 -52
- package/es/Tabs/TabPanel.css +0 -9
- package/es/Tabs/Tabs.css +0 -56
- package/es/Tag/Tag.css +0 -97
- package/es/Tag/TagGroup.css +0 -43
- /package/dist/Card/{CardContent.css → CardContent.less} +0 -0
- /package/dist/Card/{CardFooter.css → CardFooter.less} +0 -0
- /package/dist/CitySelector/{miniapp.css → miniapp.less} +0 -0
- /package/dist/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
- /package/dist/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
- /package/dist/Stack/{Stack.css → Stack.less} +0 -0
- /package/dist/TabBar/{TabBar.css → TabBar.less} +0 -0
- /package/es/Card/{CardContent.css → CardContent.less} +0 -0
- /package/es/Card/{CardFooter.css → CardFooter.less} +0 -0
- /package/es/CitySelector/{miniapp.css → miniapp.less} +0 -0
- /package/es/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
- /package/es/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
- /package/es/Stack/{Stack.css → Stack.less} +0 -0
- /package/es/TabBar/{TabBar.css → TabBar.less} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.bui-action-sheet {
|
|
2
|
+
font-family: var(--bui-font-family);
|
|
3
|
+
|
|
4
|
+
&-content {
|
|
5
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
6
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
7
|
+
border-top-left-radius: var(--bui-shape-radius-drawer);
|
|
8
|
+
border-top-right-radius: var(--bui-shape-radius-drawer);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.bui-action-sheet-cancel {
|
|
13
|
+
border-top: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-gap {
|
|
17
|
+
height: var(--bui-spacing-md);
|
|
18
|
+
background-color: var(--bui-color-bg-default);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-extra {
|
|
22
|
+
font-size: var(--bui-text-size-1);
|
|
23
|
+
line-height: 23px;
|
|
24
|
+
padding: var(--bui-spacing-xl);
|
|
25
|
+
color: var(--bui-color-fg-muted);
|
|
26
|
+
background: var(--bui-color-bg-view);
|
|
27
|
+
text-align: center;
|
|
28
|
+
border-bottom: 1px solid var(--bui-color-border-default);
|
|
29
|
+
margin: 0 var(--bui-spacing-xl);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.bui-action-sheet-item {
|
|
2
|
+
--font-size: var(--bui-title-size-2);
|
|
3
|
+
--color: var(--bui-color-fg-default);
|
|
4
|
+
font-family: var(--bui-font-family);
|
|
5
|
+
position: relative;
|
|
6
|
+
padding: var(--bui-spacing-xl);
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
background: var(--bui-color-bg-view);
|
|
9
|
+
font-size: var(--font-size);
|
|
10
|
+
text-align: center;
|
|
11
|
+
line-height: 24px;
|
|
12
|
+
color: var(--color);
|
|
13
|
+
border-top: 1px solid var(--bui-color-border-default);
|
|
14
|
+
margin: 0 var(--bui-spacing-xl);
|
|
15
|
+
|
|
16
|
+
&:first-child {
|
|
17
|
+
border-top: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:active {
|
|
21
|
+
background-color: var(--bui-color-bg-default);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-primary {
|
|
25
|
+
--color: var(--bui-color-primary);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-info {
|
|
29
|
+
--color: var(--bui-color-info);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-success {
|
|
33
|
+
--color: var(--bui-color-success);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-warning {
|
|
37
|
+
--color: var(--bui-color-warning);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-danger {
|
|
41
|
+
--color: var(--bui-color-danger);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-disabled {
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
|
|
47
|
+
.bui-action-sheet-item-content,
|
|
48
|
+
.bui-action-sheet-item-description {
|
|
49
|
+
opacity: 0.5;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-bold {
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-description {
|
|
58
|
+
font-size: var(--bui-text-size-2);
|
|
59
|
+
line-height: 19px;
|
|
60
|
+
color: var(--bui-color-fg-subtle);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.bui-alert {
|
|
2
|
+
--bui-alert-marquee-speed: var(--bui-alert-marquee-seed, 10s);
|
|
3
|
+
display: flex;
|
|
4
|
+
padding: 8px;
|
|
5
|
+
border-radius: var(--bui-shape-radius-default);
|
|
6
|
+
align-items: center;
|
|
7
|
+
line-height: 16px;
|
|
8
|
+
font-size: var(--bui-text-size-3);
|
|
9
|
+
font-family: var(--bui-font-family);
|
|
10
|
+
|
|
11
|
+
&-standard {
|
|
12
|
+
&-primary {
|
|
13
|
+
background-color: var(--bui-color-primary-light);
|
|
14
|
+
color: var(--bui-color-primary);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-success {
|
|
18
|
+
background-color: var(--bui-color-success-light);
|
|
19
|
+
color: var(--bui-color-success);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-info {
|
|
23
|
+
background-color: var(--bui-color-info-light);
|
|
24
|
+
color: var(--bui-color-info);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-danger {
|
|
28
|
+
background-color: var(--bui-color-danger-light);
|
|
29
|
+
color: var(--bui-color-danger);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-warning {
|
|
33
|
+
color: var(--bui-color-warning);
|
|
34
|
+
background-color: var(--bui-color-warning-light);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-outlined {
|
|
39
|
+
&-primary {
|
|
40
|
+
border: 1px solid var(--bui-color-primary);
|
|
41
|
+
color: var(--bui-color-primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-success {
|
|
45
|
+
border: 1px solid var(--bui-color-success);
|
|
46
|
+
color: var(--bui-color-success);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-info {
|
|
50
|
+
border: 1px solid var(--bui-color-info);
|
|
51
|
+
color: var(--bui-color-info);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-danger {
|
|
55
|
+
border: 1px solid var(--bui-color-danger);
|
|
56
|
+
color: var(--bui-color-danger);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-warning {
|
|
60
|
+
border: 1px solid var(--bui-color-warning);
|
|
61
|
+
color: var(--bui-color-warning);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-default-icon {
|
|
66
|
+
font-size: 15px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-content {
|
|
70
|
+
flex-grow: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-action {
|
|
74
|
+
// fix 小程序上dom被压缩
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
margin-left: 16px;
|
|
77
|
+
word-wrap: keep-all;
|
|
78
|
+
font-size: var(--bui-text-size-3);
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-action.bui-icon-btn {
|
|
84
|
+
padding: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-icon {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
padding-right: 4px;
|
|
91
|
+
vertical-align: middle;
|
|
92
|
+
font-size: 15px;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&-marquee {
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
|
|
99
|
+
&-content {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
padding-left: 100%;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
animation: marquee var(--bui-alert-marquee-speed) linear infinite both;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes marquee {
|
|
108
|
+
100% {
|
|
109
|
+
transform: translateX(-100%);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.bui-avatar {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
background-color: var(--bui-color-bg-default);
|
|
7
|
+
font-family: var(--bui-font-family);
|
|
8
|
+
|
|
9
|
+
&-children {
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-large {
|
|
16
|
+
width: 60px;
|
|
17
|
+
height: 60px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-medium {
|
|
21
|
+
width: 42px;
|
|
22
|
+
height: 42px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-small {
|
|
26
|
+
width: 30px;
|
|
27
|
+
height: 30px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-xsmall {
|
|
31
|
+
width: 24px;
|
|
32
|
+
height: 24px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.bui-avatar-rounded {
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
|
|
39
|
+
.bui-avatar-img {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bui-avatar-square {
|
|
47
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
48
|
+
|
|
49
|
+
.bui-avatar-img {
|
|
50
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.bui-avatar-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
font-family: var(--bui-font-family);
|
|
5
|
+
|
|
6
|
+
&-avatar,
|
|
7
|
+
&-extra {
|
|
8
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
9
|
+
color: var(--bui-color-fg-default);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.bui-avatar-xsmall {
|
|
13
|
+
&:not(:first-child) {
|
|
14
|
+
margin-left: -5px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bui-avatar-small {
|
|
19
|
+
&:not(:first-child) {
|
|
20
|
+
margin-left: -9px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
box-shadow: 0 0 0 1px var(--bui-color-bg-view);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.bui-avatar-large {
|
|
27
|
+
&:not(:first-child) {
|
|
28
|
+
margin-left: -21px;
|
|
29
|
+
}
|
|
30
|
+
box-shadow: 0 0 0 3px var(--bui-color-bg-view);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.bui-avatar-medium {
|
|
34
|
+
&:not(:first-child) {
|
|
35
|
+
margin-left: -13px;
|
|
36
|
+
}
|
|
37
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.bui-badge-position(@offset) {
|
|
2
|
+
top: @offset;
|
|
3
|
+
right: @offset;
|
|
4
|
+
transform: scale(1) translate(50%, -50%);
|
|
5
|
+
}
|
|
6
|
+
.bui-badge-bubble-radius() {
|
|
7
|
+
border-radius: 6px 6px 6px 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.bui-badge {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
font-family: var(--bui-font-family);
|
|
13
|
+
|
|
14
|
+
&-position {
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
.bui-badge-contained,
|
|
18
|
+
.bui-badge-outlined {
|
|
19
|
+
position: absolute;
|
|
20
|
+
.bui-badge-position(14%);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.bui-badge-dot {
|
|
24
|
+
.bui-badge-position(14%);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.bui-badge-bubble {
|
|
28
|
+
.bui-badge-position(14%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-contained,
|
|
33
|
+
&-outlined {
|
|
34
|
+
display: flex;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
min-width: 15px;
|
|
39
|
+
height: 15px;
|
|
40
|
+
line-height: 15px;
|
|
41
|
+
padding: 0 3px;
|
|
42
|
+
font-size: var(--bui-text-size-4);
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
color: var(--bui-color-bg-view);
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-outlined {
|
|
50
|
+
padding: 0 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-primary {
|
|
54
|
+
background-color: var(--bui-color-primary);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-success {
|
|
58
|
+
background-color: var(--bui-color-success);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-info {
|
|
62
|
+
background-color: var(--bui-color-info);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-warning {
|
|
66
|
+
background-color: var(--bui-color-warning);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-danger {
|
|
70
|
+
background-color: var(--bui-color-danger);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-dot {
|
|
74
|
+
width: 9px;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
height: 9px;
|
|
77
|
+
padding: 0;
|
|
78
|
+
border-radius: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-bubble {
|
|
82
|
+
.bui-badge-bubble-radius();
|
|
83
|
+
padding: 0 5px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-outlined {
|
|
87
|
+
background: var(--bui-color-bg-view);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-outlined&-primary {
|
|
91
|
+
border: 1px solid var(--bui-color-primary);
|
|
92
|
+
color: var(--bui-color-primary);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-outlined&-success {
|
|
96
|
+
border: 1px solid var(--bui-color-success);
|
|
97
|
+
color: var(--bui-color-success);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-outlined&-info {
|
|
101
|
+
border: 1px solid var(--bui-color-info);
|
|
102
|
+
color: var(--bui-color-info);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-outlined&-warning {
|
|
106
|
+
border: 1px solid var(--bui-color-warning);
|
|
107
|
+
color: var(--bui-color-warning);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-outlined&-danger {
|
|
111
|
+
border: 1px solid var(--bui-color-danger);
|
|
112
|
+
color: var(--bui-color-danger);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-outlined&-bubble {
|
|
116
|
+
.bui-badge-bubble-radius();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
@import '~@bifrostui/styles/mixins/index.less';
|
|
2
|
+
|
|
3
|
+
.btn-icon() {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-self: center;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.btn-outline(@color) {
|
|
10
|
+
color: var(~'--bui-color-@{color}');
|
|
11
|
+
border-color: var(~'--bui-color-@{color}');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn-contained(@color) {
|
|
15
|
+
color: var(--bui-color-white);
|
|
16
|
+
.linear-gradient(var(~'--bui-color-@{color}-start'), var(~'--bui-color-@{color}-end'));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.btn-light(@color) {
|
|
20
|
+
background-image: none;
|
|
21
|
+
border: 1px solid transparent;
|
|
22
|
+
color: var(~'--bui-color-@{color}');
|
|
23
|
+
background-color: var(~'--bui-color-@{color}-light');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.btn-text(@color) {
|
|
27
|
+
color: var(~'--bui-color-@{color}');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bui-btn {
|
|
31
|
+
--bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
|
|
32
|
+
--text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
|
|
33
|
+
--border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
|
|
34
|
+
--border-radius: var(--bui-button-border-radius, 100px);
|
|
35
|
+
--font-weight: var(--bui-button-font-weight, var(--bui-font-weight-medium));
|
|
36
|
+
border: 1px solid transparent;
|
|
37
|
+
outline: 0;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
color: var(--text-color);
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
position: relative;
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
margin: 0;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
font-size: var(--bui-text-size-3);
|
|
49
|
+
font-weight: var(--font-weight);
|
|
50
|
+
border-radius: var(--border-radius);
|
|
51
|
+
height: 27px;
|
|
52
|
+
line-height: var(--bui-line-height);
|
|
53
|
+
font-family: var(--bui-font-family);
|
|
54
|
+
|
|
55
|
+
@keyframes spin {
|
|
56
|
+
from {
|
|
57
|
+
transform: rotate(0deg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
to {
|
|
61
|
+
transform: rotate(360deg);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
66
|
+
border: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&::before {
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 50%;
|
|
72
|
+
left: 50%;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
background-color: var(--bui-color-black);
|
|
76
|
+
border: inherit;
|
|
77
|
+
border-color: var(--bui-color-black);
|
|
78
|
+
border-radius: inherit;
|
|
79
|
+
transform: translate(-50%, -50%);
|
|
80
|
+
opacity: 0;
|
|
81
|
+
content: ' ';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:active::before {
|
|
85
|
+
opacity: 0.04;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-icon-start {
|
|
89
|
+
.btn-icon();
|
|
90
|
+
margin-right: var(--bui-spacing-xs);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-icon-end {
|
|
94
|
+
.btn-icon();
|
|
95
|
+
margin-left: var(--bui-spacing-xs);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-disabled {
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
opacity: 0.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&-small {
|
|
104
|
+
font-size: var(--bui-text-size-4);
|
|
105
|
+
padding: 0 11px;
|
|
106
|
+
height: 24px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-medium {
|
|
110
|
+
padding: 0 14px;
|
|
111
|
+
height: 27px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-large {
|
|
115
|
+
font-size: var(--bui-text-size-2);
|
|
116
|
+
padding: 0 14px;
|
|
117
|
+
height: 33px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-full {
|
|
121
|
+
font-size: var(--bui-title-size-4);
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 42px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&-text {
|
|
127
|
+
&.bui-btn-primary {
|
|
128
|
+
.btn-text(primary);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.bui-btn-success {
|
|
132
|
+
.btn-text(success);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.bui-btn-info {
|
|
136
|
+
.btn-text(info);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.bui-btn-warning {
|
|
140
|
+
.btn-text(warning);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.bui-btn-danger {
|
|
144
|
+
.btn-text(danger);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.bui-btn-vip {
|
|
148
|
+
.btn-text(vip);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&-contained {
|
|
153
|
+
background-color: var(--bg-color);
|
|
154
|
+
|
|
155
|
+
&.bui-btn-primary {
|
|
156
|
+
.btn-contained(primary);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.bui-btn-success {
|
|
160
|
+
.btn-contained(success);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.bui-btn-info {
|
|
164
|
+
.btn-contained(info);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.bui-btn-warning {
|
|
168
|
+
.btn-contained(warning);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.bui-btn-danger {
|
|
172
|
+
.btn-contained(danger);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.bui-btn-vip {
|
|
176
|
+
color: #582331;
|
|
177
|
+
background-image: linear-gradient(
|
|
178
|
+
90deg,
|
|
179
|
+
var(--bui-color-vip-start) 3%,
|
|
180
|
+
var(--bui-color-vip-end) 100%
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&-outlined {
|
|
186
|
+
border: solid 1px var(--border-color);
|
|
187
|
+
|
|
188
|
+
&.bui-btn-primary {
|
|
189
|
+
.btn-outline(primary);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.bui-btn-success {
|
|
193
|
+
.btn-outline(success);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&.bui-btn-info {
|
|
197
|
+
.btn-outline(info);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&.bui-btn-warning {
|
|
201
|
+
.btn-outline(warning);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.bui-btn-danger {
|
|
205
|
+
.btn-outline(danger);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&.bui-btn-vip {
|
|
209
|
+
.btn-outline(vip);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&-light {
|
|
214
|
+
background-image: none;
|
|
215
|
+
background-color: var(--bui-color-gray-light);
|
|
216
|
+
border: 1px solid transparent;
|
|
217
|
+
|
|
218
|
+
&.bui-btn-warning {
|
|
219
|
+
.btn-light(warning);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&.bui-btn-primary {
|
|
223
|
+
.btn-light(primary);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.bui-btn-info {
|
|
227
|
+
.btn-light(info);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.bui-btn-success {
|
|
231
|
+
.btn-light(success);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.bui-btn-danger {
|
|
235
|
+
.btn-light(danger);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.bui-btn-vip {
|
|
239
|
+
color: var(--bui-color-vip);
|
|
240
|
+
position: relative;
|
|
241
|
+
background-color: fade(#ff866e, 30%);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|