adtec-core-package 0.0.2 → 0.0.3
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/package.json +9 -4
- package/src/App.vue +0 -3
- package/src/assets/base.css +0 -86
- package/src/assets/main.css +0 -35
- package/src/css/elementUI/affix.scss +7 -0
- package/src/css/elementUI/alert.scss +115 -0
- package/src/css/elementUI/anchor-link.scss +41 -0
- package/src/css/elementUI/anchor.scss +88 -0
- package/src/css/elementUI/aside.scss +8 -0
- package/src/css/elementUI/autocomplete.scss +89 -0
- package/src/css/elementUI/avatar.scss +55 -0
- package/src/css/elementUI/backtop.scss +29 -0
- package/src/css/elementUI/badge.scss +58 -0
- package/src/css/elementUI/base.scss +3 -0
- package/src/css/elementUI/breadcrumb-item.scss +0 -0
- package/src/css/elementUI/breadcrumb.scss +62 -0
- package/src/css/elementUI/button-group.scss +80 -0
- package/src/css/elementUI/button.scss +304 -0
- package/src/css/elementUI/calendar.scss +80 -0
- package/src/css/elementUI/card.scss +45 -0
- package/src/css/elementUI/carousel-item.scss +58 -0
- package/src/css/elementUI/carousel.scss +188 -0
- package/src/css/elementUI/cascader-panel.scss +138 -0
- package/src/css/elementUI/cascader.scss +230 -0
- package/src/css/elementUI/check-tag.scss +60 -0
- package/src/css/elementUI/checkbox-button.scss +140 -0
- package/src/css/elementUI/checkbox-group.scss +7 -0
- package/src/css/elementUI/checkbox.scss +298 -0
- package/src/css/elementUI/col.scss +48 -0
- package/src/css/elementUI/collapse-item.scss +0 -0
- package/src/css/elementUI/collapse-transition.scss +0 -0
- package/src/css/elementUI/collapse.scss +70 -0
- package/src/css/elementUI/color/index.scss +20 -0
- package/src/css/elementUI/color-picker.scss +392 -0
- package/src/css/elementUI/common/popup.scss +47 -0
- package/src/css/elementUI/common/transition.scss +122 -0
- package/src/css/elementUI/common/var.scss +1549 -0
- package/src/css/elementUI/config-provider.scss +0 -0
- package/src/css/elementUI/container.scss +14 -0
- package/src/css/elementUI/dark/css-vars.scss +39 -0
- package/src/css/elementUI/dark/var.scss +222 -0
- package/src/css/elementUI/date-picker/date-picker.scss +110 -0
- package/src/css/elementUI/date-picker/date-range-picker.scss +113 -0
- package/src/css/elementUI/date-picker/date-table.scss +158 -0
- package/src/css/elementUI/date-picker/month-table.scss +112 -0
- package/src/css/elementUI/date-picker/picker-panel.scss +131 -0
- package/src/css/elementUI/date-picker/picker.scss +219 -0
- package/src/css/elementUI/date-picker/time-picker.scss +90 -0
- package/src/css/elementUI/date-picker/time-range-picker.scss +33 -0
- package/src/css/elementUI/date-picker/time-spinner.scss +111 -0
- package/src/css/elementUI/date-picker/year-table.scss +108 -0
- package/src/css/elementUI/date-picker.scss +9 -0
- package/src/css/elementUI/descriptions-item.scss +73 -0
- package/src/css/elementUI/descriptions.scss +152 -0
- package/src/css/elementUI/dialog.scss +199 -0
- package/src/css/elementUI/display.scss +12 -0
- package/src/css/elementUI/divider.scss +48 -0
- package/src/css/elementUI/drawer.scss +164 -0
- package/src/css/elementUI/dropdown-item.scss +0 -0
- package/src/css/elementUI/dropdown-menu.scss +0 -0
- package/src/css/elementUI/dropdown.scss +208 -0
- package/src/css/elementUI/empty.scss +49 -0
- package/src/css/elementUI/footer.scss +12 -0
- package/src/css/elementUI/form-item.scss +0 -0
- package/src/css/elementUI/form.scss +243 -0
- package/src/css/elementUI/header.scss +12 -0
- package/src/css/elementUI/icon.scss +45 -0
- package/src/css/elementUI/image-viewer.scss +139 -0
- package/src/css/elementUI/image.scss +49 -0
- package/src/css/elementUI/index.scss +110 -0
- package/src/css/elementUI/infinite-scroll.scss +0 -0
- package/src/css/elementUI/input-number.scss +178 -0
- package/src/css/elementUI/input.scss +478 -0
- package/src/css/elementUI/link.scss +90 -0
- package/src/css/elementUI/loading.scss +104 -0
- package/src/css/elementUI/main.scss +14 -0
- package/src/css/elementUI/mention.scss +88 -0
- package/src/css/elementUI/menu-item-group.scss +0 -0
- package/src/css/elementUI/menu-item.scss +0 -0
- package/src/css/elementUI/menu.scss +339 -0
- package/src/css/elementUI/message-box.scss +213 -0
- package/src/css/elementUI/message.scss +98 -0
- package/src/css/elementUI/mixins/_button.scss +165 -0
- package/src/css/elementUI/mixins/_col.scss +33 -0
- package/src/css/elementUI/mixins/_var.scss +67 -0
- package/src/css/elementUI/mixins/config.scss +5 -0
- package/src/css/elementUI/mixins/function.scss +88 -0
- package/src/css/elementUI/mixins/mixins.scss +237 -0
- package/src/css/elementUI/mixins/utils.scss +39 -0
- package/src/css/elementUI/notification.scss +104 -0
- package/src/css/elementUI/option-group.scss +33 -0
- package/src/css/elementUI/option.scss +71 -0
- package/src/css/elementUI/overlay.scss +17 -0
- package/src/css/elementUI/page-header.scss +60 -0
- package/src/css/elementUI/pagination.scss +238 -0
- package/src/css/elementUI/popconfirm.scss +16 -0
- package/src/css/elementUI/popover.scss +61 -0
- package/src/css/elementUI/popper.scss +106 -0
- package/src/css/elementUI/progress.scss +179 -0
- package/src/css/elementUI/radio-button.scss +169 -0
- package/src/css/elementUI/radio-group.scss +9 -0
- package/src/css/elementUI/radio.scss +215 -0
- package/src/css/elementUI/rate.scss +108 -0
- package/src/css/elementUI/reset.scss +98 -0
- package/src/css/elementUI/result.scss +57 -0
- package/src/css/elementUI/row.scss +35 -0
- package/src/css/elementUI/scrollbar.scss +97 -0
- package/src/css/elementUI/segmented.scss +183 -0
- package/src/css/elementUI/select-dropdown-v2.scss +1 -0
- package/src/css/elementUI/select-dropdown.scss +57 -0
- package/src/css/elementUI/select-v2.scss +4 -0
- package/src/css/elementUI/select.scss +253 -0
- package/src/css/elementUI/skeleton-item.scss +83 -0
- package/src/css/elementUI/skeleton.scss +44 -0
- package/src/css/elementUI/slider.scss +212 -0
- package/src/css/elementUI/space.scss +20 -0
- package/src/css/elementUI/spinner.scss +43 -0
- package/src/css/elementUI/statistic.scss +35 -0
- package/src/css/elementUI/step.scss +316 -0
- package/src/css/elementUI/steps.scss +21 -0
- package/src/css/elementUI/sub-menu.scss +0 -0
- package/src/css/elementUI/switch.scss +300 -0
- package/src/css/elementUI/tab-pane.scss +0 -0
- package/src/css/elementUI/table-column.scss +98 -0
- package/src/css/elementUI/table-v2.scss +236 -0
- package/src/css/elementUI/table.scss +694 -0
- package/src/css/elementUI/tabs.scss +659 -0
- package/src/css/elementUI/tag.scss +181 -0
- package/src/css/elementUI/text.scss +51 -0
- package/src/css/elementUI/time-picker.scss +5 -0
- package/src/css/elementUI/time-select.scss +37 -0
- package/src/css/elementUI/timeline-item.scss +84 -0
- package/src/css/elementUI/timeline.scss +46 -0
- package/src/css/elementUI/tooltip-v2.scss +95 -0
- package/src/css/elementUI/tooltip.scss +0 -0
- package/src/css/elementUI/tour.scss +187 -0
- package/src/css/elementUI/transfer.scss +203 -0
- package/src/css/elementUI/tree-select.scss +41 -0
- package/src/css/elementUI/tree.scss +134 -0
- package/src/css/elementUI/upload.scss +654 -0
- package/src/css/elementUI/var.scss +87 -0
- package/src/css/elementUI/virtual-list.scss +40 -0
- package/src/views/HomeView.vue +2 -2
- package/vite.config.ts +2 -9
- package/src/components/HelloWorld.vue +0 -41
- package/src/components/TheWelcome.vue +0 -94
- package/src/components/WelcomeItem.vue +0 -87
- package/src/components/icons/IconCommunity.vue +0 -7
- package/src/components/icons/IconDocumentation.vue +0 -7
- package/src/components/icons/IconEcosystem.vue +0 -7
- package/src/components/icons/IconSupport.vue +0 -7
- package/src/components/icons/IconTooling.vue +0 -19
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@mixin utils-clearfix {
|
|
2
|
+
$selector: &;
|
|
3
|
+
|
|
4
|
+
@at-root {
|
|
5
|
+
#{$selector}::before,
|
|
6
|
+
#{$selector}::after {
|
|
7
|
+
display: table;
|
|
8
|
+
content: '';
|
|
9
|
+
}
|
|
10
|
+
#{$selector}::after {
|
|
11
|
+
clear: both;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin utils-vertical-center {
|
|
17
|
+
$selector: &;
|
|
18
|
+
|
|
19
|
+
@at-root {
|
|
20
|
+
#{$selector}::after {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
content: '';
|
|
23
|
+
height: 100%;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin utils-ellipsis {
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin utils-inline-flex-center {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(notification) {
|
|
6
|
+
@include set-component-css-var('notification', $notification);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include b(notification) {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: getCssVar('notification-width');
|
|
12
|
+
padding: getCssVar('notification-padding');
|
|
13
|
+
border-radius: getCssVar('notification-radius');
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
border: 1px solid getCssVar('notification-border-color');
|
|
16
|
+
position: fixed;
|
|
17
|
+
background-color: getCssVar('bg-color', 'overlay');
|
|
18
|
+
box-shadow: getCssVar('notification-shadow');
|
|
19
|
+
transition: opacity getCssVar('transition-duration'),
|
|
20
|
+
transform getCssVar('transition-duration'),
|
|
21
|
+
left getCssVar('transition-duration'),
|
|
22
|
+
right getCssVar('transition-duration'), top 0.4s,
|
|
23
|
+
bottom getCssVar('transition-duration');
|
|
24
|
+
overflow-wrap: break-word;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
z-index: 9999;
|
|
27
|
+
|
|
28
|
+
&.right {
|
|
29
|
+
right: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.left {
|
|
33
|
+
left: 16px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include e(group) {
|
|
37
|
+
margin-left: getCssVar('notification-group-margin-left');
|
|
38
|
+
margin-right: getCssVar('notification-group-margin-right');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include e(title) {
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
font-size: getCssVar('notification-title-font-size');
|
|
44
|
+
line-height: getCssVar('notification-icon-size');
|
|
45
|
+
color: getCssVar('notification-title-color');
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include e(content) {
|
|
50
|
+
font-size: getCssVar('notification-content-font-size');
|
|
51
|
+
line-height: 24px;
|
|
52
|
+
margin: 6px 0 0;
|
|
53
|
+
color: getCssVar('notification-content-color');
|
|
54
|
+
|
|
55
|
+
p {
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& .#{$namespace}-notification__icon {
|
|
61
|
+
height: getCssVar('notification-icon-size');
|
|
62
|
+
width: getCssVar('notification-icon-size');
|
|
63
|
+
font-size: getCssVar('notification-icon-size');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
& .#{$namespace}-notification__closeBtn {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 18px;
|
|
69
|
+
right: 15px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
color: getCssVar('notification-close-color');
|
|
72
|
+
font-size: getCssVar('notification-close-font-size');
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
color: getCssVar('notification-close-hover-color');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@each $type in (success, info, warning, error) {
|
|
80
|
+
& .#{$namespace}-notification--#{$type} {
|
|
81
|
+
@include css-var-from-global(
|
|
82
|
+
('notification', 'icon-color'),
|
|
83
|
+
('color', $type)
|
|
84
|
+
);
|
|
85
|
+
color: getCssVar('notification-icon-color');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.#{$namespace}-notification-fade-enter-from {
|
|
91
|
+
&.right {
|
|
92
|
+
right: 0;
|
|
93
|
+
transform: translateX(100%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.left {
|
|
97
|
+
left: 0;
|
|
98
|
+
transform: translateX(-100%);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$namespace}-notification-fade-leave-to {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
@include b(select-group) {
|
|
7
|
+
$gap: 20px;
|
|
8
|
+
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
@include e(wrap) {
|
|
13
|
+
position: relative;
|
|
14
|
+
list-style: none;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(title) {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
padding: 0 $gap;
|
|
22
|
+
font-size: map.get($select-group, 'font-size');
|
|
23
|
+
color: map.get($select-group, 'text-color');
|
|
24
|
+
line-height: map.get($select-group, 'height');
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& .#{$namespace}-select-dropdown__item {
|
|
31
|
+
padding-left: $gap;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
$checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
|
|
7
|
+
|
|
8
|
+
@mixin checked-icon {
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 50%;
|
|
12
|
+
right: 20px;
|
|
13
|
+
border-top: none;
|
|
14
|
+
border-right: none;
|
|
15
|
+
background-repeat: no-repeat;
|
|
16
|
+
background-position: center;
|
|
17
|
+
background-color: map.get($select-option, 'selected-text-color');
|
|
18
|
+
mask: url('#{$checked-icon}') no-repeat;
|
|
19
|
+
mask-size: 100% 100%;
|
|
20
|
+
-webkit-mask: url('#{$checked-icon}') no-repeat;
|
|
21
|
+
-webkit-mask-size: 100% 100%;
|
|
22
|
+
transform: translateY(-50%);
|
|
23
|
+
width: 12px;
|
|
24
|
+
height: 12px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include b(select-dropdown) {
|
|
28
|
+
@include e(item) {
|
|
29
|
+
font-size: map.get($select, 'font-size');
|
|
30
|
+
// 20 as the padding of option item, 12 as the size of ✓ icon size
|
|
31
|
+
padding: 0 #{20 + 12}px 0 20px;
|
|
32
|
+
position: relative;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
color: map.get($select-option, 'text-color');
|
|
37
|
+
height: map.get($select-option, 'height');
|
|
38
|
+
line-height: map.get($select-option, 'height');
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
@include when(hovering) {
|
|
43
|
+
background-color: map.get($select-option, 'hover-background');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include when(selected) {
|
|
47
|
+
color: map.get($select-option, 'selected-text-color');
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include when(disabled) {
|
|
52
|
+
color: map.get($select-option, 'disabled-color');
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
background-color: unset;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include when(multiple) {
|
|
59
|
+
.#{$namespace}-select-dropdown__item.is-selected {
|
|
60
|
+
&::after {
|
|
61
|
+
@include checked-icon;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$namespace}-select-dropdown__item.is-disabled {
|
|
66
|
+
&::after {
|
|
67
|
+
background-color: map.get($select-option, 'disabled-color');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(overlay) {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 2000;
|
|
11
|
+
height: 100%;
|
|
12
|
+
background-color: getCssVar('overlay-color', 'lighter');
|
|
13
|
+
overflow: auto;
|
|
14
|
+
#{& + '-root'} {
|
|
15
|
+
height: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(page-header) {
|
|
5
|
+
@include when(contentful) {
|
|
6
|
+
@include e('main') {
|
|
7
|
+
border-top: 1px solid getCssVar('border-color', 'light');
|
|
8
|
+
margin-top: 16px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include e(header) {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
|
|
18
|
+
@include e(left) {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
margin-right: 40px;
|
|
22
|
+
position: relative;
|
|
23
|
+
|
|
24
|
+
@include e('back') {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$namespace}-divider--vertical {
|
|
31
|
+
margin: 0 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(icon) {
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
margin-right: 10px;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
|
|
40
|
+
.#{$namespace}-icon {
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include e(title) {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include e(content) {
|
|
53
|
+
font-size: 18px;
|
|
54
|
+
color: getCssVar('text-color', 'primary');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include e(breadcrumb) {
|
|
58
|
+
margin-bottom: 16px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/utils' as *;
|
|
3
|
+
@use 'mixins/var' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
@mixin pagination-button {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
font-size: getCssVar('pagination-font-size');
|
|
11
|
+
min-width: getCssVar('pagination-button-width');
|
|
12
|
+
height: getCssVar('pagination-button-height');
|
|
13
|
+
line-height: getCssVar('pagination-button-height');
|
|
14
|
+
color: getCssVar('pagination-button-color');
|
|
15
|
+
background: getCssVar('pagination-bg-color');
|
|
16
|
+
padding: 0 4px;
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: getCssVar('pagination-border-radius');
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
text-align: center;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:focus {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
color: getCssVar('pagination-hover-color');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-active {
|
|
36
|
+
color: getCssVar('pagination-hover-color');
|
|
37
|
+
cursor: default;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
|
|
40
|
+
&.is-disabled {
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
color: getCssVar('text-color', 'secondary');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:disabled,
|
|
47
|
+
&.is-disabled {
|
|
48
|
+
color: getCssVar('pagination-button-disabled-color');
|
|
49
|
+
background-color: getCssVar('pagination-button-disabled-bg-color');
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible {
|
|
54
|
+
outline: 1px solid getCssVar('pagination-hover-color');
|
|
55
|
+
outline-offset: -1px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@include b(pagination) {
|
|
60
|
+
@include set-component-css-var('pagination', $pagination);
|
|
61
|
+
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
color: getCssVar('pagination-text-color');
|
|
64
|
+
font-size: getCssVar('pagination-font-size');
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
|
|
69
|
+
.#{$namespace}-input__inner {
|
|
70
|
+
text-align: center;
|
|
71
|
+
-moz-appearance: textfield;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.#{$namespace}-select {
|
|
75
|
+
width: 128px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
button {
|
|
79
|
+
@include pagination-button;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.btn-prev,
|
|
83
|
+
.btn-next {
|
|
84
|
+
.#{$namespace}-icon {
|
|
85
|
+
display: block;
|
|
86
|
+
font-size: 12px;
|
|
87
|
+
font-weight: bold;
|
|
88
|
+
width: inherit;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& > * {
|
|
93
|
+
@include when(first) {
|
|
94
|
+
margin-left: 0 !important;
|
|
95
|
+
}
|
|
96
|
+
@include when(last) {
|
|
97
|
+
margin-right: 0 !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.btn-prev {
|
|
102
|
+
margin-left: getCssVar('pagination-item-gap');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@include e(sizes) {
|
|
106
|
+
margin-left: getCssVar('pagination-item-gap');
|
|
107
|
+
font-weight: normal;
|
|
108
|
+
color: getCssVar('text-color', 'regular');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@include e(total) {
|
|
112
|
+
margin-left: getCssVar('pagination-item-gap');
|
|
113
|
+
font-weight: normal;
|
|
114
|
+
color: getCssVar('text-color', 'regular');
|
|
115
|
+
|
|
116
|
+
&[disabled='true'] {
|
|
117
|
+
color: getCssVar('text-color', 'placeholder');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include e(jump) {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
margin-left: getCssVar('pagination-item-gap');
|
|
125
|
+
font-weight: normal;
|
|
126
|
+
color: getCssVar('text-color', 'regular');
|
|
127
|
+
|
|
128
|
+
&[disabled='true'] {
|
|
129
|
+
color: getCssVar('text-color', 'placeholder');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@include e(goto) {
|
|
133
|
+
margin-right: 8px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@include e(editor) {
|
|
137
|
+
text-align: center;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
|
|
140
|
+
&.#{$namespace}-input {
|
|
141
|
+
width: 56px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.#{$namespace}-input__inner::-webkit-inner-spin-button,
|
|
145
|
+
.#{$namespace}-input__inner::-webkit-outer-spin-button {
|
|
146
|
+
-webkit-appearance: none;
|
|
147
|
+
margin: 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@include e(classifier) {
|
|
152
|
+
margin-left: 8px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@include e(rightwrapper) {
|
|
157
|
+
flex: 1;
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: flex-end;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@include when(background) {
|
|
164
|
+
.btn-prev,
|
|
165
|
+
.btn-next,
|
|
166
|
+
.#{$namespace}-pager li {
|
|
167
|
+
margin: 0 4px;
|
|
168
|
+
background-color: getCssVar('pagination-button-bg-color');
|
|
169
|
+
|
|
170
|
+
&.is-active {
|
|
171
|
+
background-color: getCssVar('color-primary');
|
|
172
|
+
color: getCssVar('color-white');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:disabled,
|
|
176
|
+
&.is-disabled {
|
|
177
|
+
color: getCssVar('text-color', 'placeholder');
|
|
178
|
+
background-color: getCssVar('disabled-bg-color');
|
|
179
|
+
|
|
180
|
+
&.is-active {
|
|
181
|
+
color: getCssVar('text-color', 'secondary');
|
|
182
|
+
background-color: getCssVar('fill-color', 'dark');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.btn-prev {
|
|
188
|
+
margin-left: getCssVar('pagination-item-gap');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include m(small) {
|
|
193
|
+
.btn-prev,
|
|
194
|
+
.btn-next,
|
|
195
|
+
.#{$namespace}-pager li {
|
|
196
|
+
height: getCssVar('pagination-button-height-small');
|
|
197
|
+
line-height: getCssVar('pagination-button-height-small');
|
|
198
|
+
font-size: getCssVar('pagination-font-size-small');
|
|
199
|
+
min-width: getCssVar('pagination-button-width-small');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
span:not([class*='suffix']),
|
|
203
|
+
button {
|
|
204
|
+
font-size: getCssVar('pagination-font-size-small');
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{$namespace}-select {
|
|
208
|
+
width: 100px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
@include m(large) {
|
|
212
|
+
.btn-prev,
|
|
213
|
+
.btn-next,
|
|
214
|
+
.#{$namespace}-pager li {
|
|
215
|
+
height: getCssVar('pagination-button-height-large');
|
|
216
|
+
line-height: getCssVar('pagination-button-height-large');
|
|
217
|
+
min-width: getCssVar('pagination-button-width-large');
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.#{$namespace}-select .#{$namespace}-input {
|
|
221
|
+
width: 160px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@include b(pager) {
|
|
227
|
+
user-select: none;
|
|
228
|
+
list-style: none;
|
|
229
|
+
font-size: 0;
|
|
230
|
+
padding: 0;
|
|
231
|
+
margin: 0;
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
|
|
235
|
+
li {
|
|
236
|
+
@include pagination-button;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(popconfirm) {
|
|
5
|
+
@include e(main) {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
@include e(icon) {
|
|
10
|
+
margin-right: 5px;
|
|
11
|
+
}
|
|
12
|
+
@include e(action) {
|
|
13
|
+
text-align: right;
|
|
14
|
+
margin-top: 8px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(popover) {
|
|
6
|
+
@include set-component-css-var('popover', $popover);
|
|
7
|
+
|
|
8
|
+
&.#{$namespace}-popper {
|
|
9
|
+
background: getCssVar('popover-bg-color');
|
|
10
|
+
min-width: 150px;
|
|
11
|
+
border-radius: getCssVar('popover-border-radius');
|
|
12
|
+
border: 1px solid getCssVar('popover-border-color');
|
|
13
|
+
padding: getCssVar('popover-padding');
|
|
14
|
+
z-index: getCssVar('index-popper');
|
|
15
|
+
color: getCssVar('text-color', 'regular');
|
|
16
|
+
line-height: 1.4;
|
|
17
|
+
font-size: getCssVar('popover-font-size');
|
|
18
|
+
box-shadow: getCssVar('box-shadow-light');
|
|
19
|
+
overflow-wrap: break-word;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
|
|
22
|
+
@include m(plain) {
|
|
23
|
+
padding: getCssVar('popover-padding-large');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include e(title) {
|
|
27
|
+
color: getCssVar('popover-title-text-color');
|
|
28
|
+
font-size: getCssVar('popover-title-font-size');
|
|
29
|
+
line-height: 1;
|
|
30
|
+
margin-bottom: 12px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(reference) {
|
|
34
|
+
&:focus:not(.focusing),
|
|
35
|
+
&:focus:hover {
|
|
36
|
+
outline-width: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include when(dark) {
|
|
41
|
+
@include set-css-var-value(
|
|
42
|
+
('popover', 'bg-color'),
|
|
43
|
+
var(#{getCssVarName('text-color', 'primary')})
|
|
44
|
+
);
|
|
45
|
+
@include set-css-var-value(
|
|
46
|
+
('popover', 'border-color'),
|
|
47
|
+
var(#{getCssVarName('text-color', 'primary')})
|
|
48
|
+
);
|
|
49
|
+
@include set-css-var-value(
|
|
50
|
+
('popover', 'title-text-color'),
|
|
51
|
+
var(#{getCssVarName('bg-color')})
|
|
52
|
+
);
|
|
53
|
+
color: getCssVar('bg-color');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:focus:active,
|
|
57
|
+
&:focus {
|
|
58
|
+
outline-width: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|