ep-craft 0.1.2 → 0.1.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/dist/components/button/EpButton.vue.d.ts +4 -4
- package/dist/components/button/EpButton.vue.js +19 -19
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/index.js +4 -3
- package/dist/index.css +2 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +325 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1730 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-panel) {
|
|
5
|
+
border-radius: 2px;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 180px;
|
|
8
|
+
left: 0;
|
|
9
|
+
z-index: getCssVar('index-top');
|
|
10
|
+
user-select: none;
|
|
11
|
+
box-sizing: content-box;
|
|
12
|
+
|
|
13
|
+
@include e(content) {
|
|
14
|
+
font-size: 0;
|
|
15
|
+
position: relative;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
&::after,
|
|
19
|
+
&::before {
|
|
20
|
+
content: '';
|
|
21
|
+
top: 50%;
|
|
22
|
+
position: absolute;
|
|
23
|
+
margin-top: -16px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
z-index: -1;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
padding-top: 6px;
|
|
30
|
+
text-align: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
left: 50%;
|
|
35
|
+
margin-left: 12%;
|
|
36
|
+
margin-right: 12%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
padding-left: 50%;
|
|
41
|
+
margin-right: 12%;
|
|
42
|
+
margin-left: 12%;
|
|
43
|
+
border-top: 1px solid getCssVar('border-color-light');
|
|
44
|
+
border-bottom: 1px solid getCssVar('border-color-light');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.has-seconds {
|
|
48
|
+
&::after {
|
|
49
|
+
left: calc(100% / 3 * 2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
padding-left: calc(100% / 3);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include e(footer) {
|
|
59
|
+
border-top: 1px solid
|
|
60
|
+
var(
|
|
61
|
+
#{getCssVarName('timepicker-inner-border-color')},
|
|
62
|
+
#{getCssVar('border-color-light')}
|
|
63
|
+
);
|
|
64
|
+
padding: 4px;
|
|
65
|
+
height: 36px;
|
|
66
|
+
line-height: 25px;
|
|
67
|
+
text-align: right;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include e(btn) {
|
|
72
|
+
border: none;
|
|
73
|
+
line-height: 28px;
|
|
74
|
+
padding: 0 5px;
|
|
75
|
+
margin: 0 5px;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
outline: none;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
color: getCssVar('text-color', 'primary');
|
|
81
|
+
|
|
82
|
+
&.confirm {
|
|
83
|
+
font-weight: 800;
|
|
84
|
+
color: var(
|
|
85
|
+
#{getCssVarName('timepicker-active-color')},
|
|
86
|
+
#{getCssVar('color-primary')}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-range-picker) {
|
|
5
|
+
width: 354px;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
|
|
8
|
+
@include e(content) {
|
|
9
|
+
position: relative;
|
|
10
|
+
text-align: center;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include e(cell) {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 4px 7px 7px;
|
|
19
|
+
width: 50%;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include e(header) {
|
|
24
|
+
margin-bottom: 5px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(body) {
|
|
30
|
+
border-radius: 2px;
|
|
31
|
+
border: 1px solid getCssVar('datepicker-border-color');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-spinner) {
|
|
5
|
+
&.has-seconds {
|
|
6
|
+
.#{$namespace}-time-spinner__wrapper {
|
|
7
|
+
width: 33.3%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include e(wrapper) {
|
|
12
|
+
max-height: 192px;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: 50%;
|
|
16
|
+
vertical-align: top;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
&.#{$namespace}-scrollbar__wrap:not(
|
|
20
|
+
.#{$namespace}-scrollbar__wrap--hidden-default
|
|
21
|
+
) {
|
|
22
|
+
padding-bottom: 15px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include when(arrow) {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
text-align: center;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
|
|
30
|
+
.#{$namespace}-time-spinner__list {
|
|
31
|
+
transform: translateY(-32px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(
|
|
35
|
+
.is-active
|
|
36
|
+
) {
|
|
37
|
+
background: getCssVar('fill-color', 'light');
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include e(arrow) {
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
color: getCssVar('text-color', 'secondary');
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
z-index: getCssVar('index-normal');
|
|
50
|
+
text-align: center;
|
|
51
|
+
height: 30px;
|
|
52
|
+
line-height: 30px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
color: getCssVar('color-primary');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.arrow-up {
|
|
60
|
+
top: 10px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.arrow-down {
|
|
64
|
+
bottom: 10px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include e(input) {
|
|
69
|
+
&.#{$namespace}-input {
|
|
70
|
+
width: 70%;
|
|
71
|
+
|
|
72
|
+
.#{$namespace}-input__inner {
|
|
73
|
+
padding: 0;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include e(list) {
|
|
80
|
+
padding: 0;
|
|
81
|
+
margin: 0;
|
|
82
|
+
list-style: none;
|
|
83
|
+
text-align: center;
|
|
84
|
+
|
|
85
|
+
&::after,
|
|
86
|
+
&::before {
|
|
87
|
+
content: '';
|
|
88
|
+
display: block;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 80px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include e(item) {
|
|
95
|
+
height: 32px;
|
|
96
|
+
line-height: 32px;
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
color: getCssVar('text-color', 'regular');
|
|
99
|
+
|
|
100
|
+
&:hover:not(.is-disabled):not(.is-active) {
|
|
101
|
+
background: getCssVar('fill-color', 'light');
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.is-active:not(.is-disabled) {
|
|
106
|
+
color: getCssVar('text-color', 'primary');
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.is-disabled {
|
|
111
|
+
color: getCssVar('text-color', 'placeholder');
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(year-table) {
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
margin: -1px;
|
|
7
|
+
border-collapse: collapse;
|
|
8
|
+
|
|
9
|
+
.#{$namespace}-icon {
|
|
10
|
+
color: getCssVar('datepicker', 'icon-color');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
td {
|
|
14
|
+
width: 68px;
|
|
15
|
+
text-align: center;
|
|
16
|
+
padding: 8px 0px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
@include b(date-table-cell) {
|
|
21
|
+
height: 48px;
|
|
22
|
+
padding: 6px 0;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.today {
|
|
27
|
+
.#{$namespace}-date-table-cell__text {
|
|
28
|
+
color: getCssVar('color', 'primary');
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
33
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
34
|
+
color: $color-white;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.disabled .#{$namespace}-date-table-cell__text {
|
|
39
|
+
background-color: getCssVar('fill-color', 'light');
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
color: getCssVar('text-color', 'placeholder');
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
color: getCssVar('text-color', 'placeholder');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include b(date-table-cell__text) {
|
|
49
|
+
width: 60px;
|
|
50
|
+
height: 36px;
|
|
51
|
+
display: block;
|
|
52
|
+
line-height: 36px;
|
|
53
|
+
color: getCssVar('datepicker-text-color');
|
|
54
|
+
border-radius: 18px;
|
|
55
|
+
margin: 0 auto;
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: 50%;
|
|
58
|
+
transform: translateX(-50%);
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.in-range .#{$namespace}-date-table-cell {
|
|
66
|
+
background-color: getCssVar('datepicker-inrange-bg-color');
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: getCssVar('datepicker-inrange-hover-bg-color');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.start-date .#{$namespace}-date-table-cell,
|
|
74
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
75
|
+
color: $color-white;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
79
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
80
|
+
color: $color-white;
|
|
81
|
+
background-color: getCssVar('datepicker-active-color');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.start-date .#{$namespace}-date-table-cell {
|
|
85
|
+
border-top-left-radius: 24px;
|
|
86
|
+
border-bottom-left-radius: 24px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
90
|
+
border-top-right-radius: 24px;
|
|
91
|
+
border-bottom-right-radius: 24px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.current:not(.disabled) .#{$namespace}-date-table-cell__text {
|
|
95
|
+
color: $color-white;
|
|
96
|
+
background-color: getCssVar('datepicker-active-color');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:focus-visible {
|
|
100
|
+
outline: none;
|
|
101
|
+
|
|
102
|
+
.#{$namespace}-date-table-cell__text {
|
|
103
|
+
outline: 2px solid getCssVar('datepicker-active-color');
|
|
104
|
+
outline-offset: 1px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use 'common/var' as *;
|
|
2
|
+
@use 'mixins/mixins' as *;
|
|
3
|
+
@use 'mixins/var' as *;
|
|
4
|
+
|
|
5
|
+
@forward './date-picker/date-table.scss';
|
|
6
|
+
@forward './date-picker/month-table.scss';
|
|
7
|
+
@forward './date-picker/year-table.scss';
|
|
8
|
+
@forward './date-picker/time-spinner.scss';
|
|
9
|
+
@forward './date-picker/picker.scss';
|
|
10
|
+
@forward './date-picker/date-picker.scss';
|
|
11
|
+
@forward './date-picker/date-range-picker.scss';
|
|
12
|
+
@forward './date-picker/time-range-picker.scss';
|
|
13
|
+
@forward './date-picker/time-picker.scss';
|
|
14
|
+
|
|
15
|
+
@include b(picker-panel) {
|
|
16
|
+
@include when(border) {
|
|
17
|
+
border: solid 1px getCssVar('border-color-lighter');
|
|
18
|
+
|
|
19
|
+
@include e(body-wrapper) {
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
&.#{$namespace}-picker-panel *[slot='sidebar'],
|
|
23
|
+
&.#{$namespace}-picker-panel__sidebar {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
height: 100%;
|
|
27
|
+
width: 110px;
|
|
28
|
+
border-right: 1px solid getCssVar('datepicker-inner-border-color');
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
padding-top: 6px;
|
|
31
|
+
overflow: auto;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
$descriptions-item-label-margin-right: () !default;
|
|
7
|
+
$descriptions-item-label-margin-right: map.merge(
|
|
8
|
+
(
|
|
9
|
+
'large': 16px,
|
|
10
|
+
'default': 16px,
|
|
11
|
+
'small': 12px,
|
|
12
|
+
),
|
|
13
|
+
$descriptions-item-label-margin-right
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
$descriptions-item-vertical-label-padding-bottom: () !default;
|
|
17
|
+
$descriptions-item-vertical-label-padding-bottom: map.merge(
|
|
18
|
+
(
|
|
19
|
+
'large': 8px,
|
|
20
|
+
'default': 6px,
|
|
21
|
+
'small': 4px,
|
|
22
|
+
),
|
|
23
|
+
$descriptions-item-vertical-label-padding-bottom
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
@include b(descriptions) {
|
|
27
|
+
@include e(label) {
|
|
28
|
+
&.#{$namespace}-descriptions__cell.is-bordered-label {
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
color: getCssVar('text-color', 'regular');
|
|
31
|
+
background: getCssVar('descriptions-item-bordered-label-background');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:not(.is-bordered-label) {
|
|
35
|
+
color: getCssVar('text-color', 'primary');
|
|
36
|
+
margin-right: map.get($descriptions-item-label-margin-right, 'default');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.#{$namespace}-descriptions__cell:not(
|
|
40
|
+
.is-bordered-label
|
|
41
|
+
).is-vertical-label {
|
|
42
|
+
padding-bottom: map.get(
|
|
43
|
+
$descriptions-item-vertical-label-padding-bottom,
|
|
44
|
+
'default'
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include e(content) {
|
|
50
|
+
&.#{$namespace}-descriptions__cell.is-bordered-content {
|
|
51
|
+
color: getCssVar('text-color', 'primary');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:not(.is-bordered-label) {
|
|
55
|
+
color: getCssVar('text-color', 'regular');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@each $size in (large, small) {
|
|
60
|
+
@include m($size) {
|
|
61
|
+
@include e(label) {
|
|
62
|
+
&:not(.is-bordered-label) {
|
|
63
|
+
margin-right: map.get($descriptions-item-label-margin-right, $size);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.#{$namespace}-descriptions__cell:not(
|
|
67
|
+
.is-bordered-label
|
|
68
|
+
).is-vertical-label {
|
|
69
|
+
padding-bottom: map.get(
|
|
70
|
+
$descriptions-item-vertical-label-padding-bottom,
|
|
71
|
+
$size
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
$descriptions-header-margin-bottom: () !default;
|
|
8
|
+
$descriptions-header-margin-bottom: map.merge(
|
|
9
|
+
(
|
|
10
|
+
'large': 20px,
|
|
11
|
+
'default': 16px,
|
|
12
|
+
'small': 12px,
|
|
13
|
+
),
|
|
14
|
+
$descriptions-header-margin-bottom
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
$descriptions-title-font-size: () !default;
|
|
18
|
+
$descriptions-title-font-size: map.merge(
|
|
19
|
+
(
|
|
20
|
+
'large': 16px,
|
|
21
|
+
'default': 16px,
|
|
22
|
+
'small': 14px,
|
|
23
|
+
),
|
|
24
|
+
$descriptions-title-font-size
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
$descriptions-cell-padding-bottom: () !default;
|
|
28
|
+
$descriptions-cell-padding-bottom: map.merge(
|
|
29
|
+
(
|
|
30
|
+
'large': 16px,
|
|
31
|
+
'default': 12px,
|
|
32
|
+
'small': 8px,
|
|
33
|
+
),
|
|
34
|
+
$descriptions-cell-padding-bottom
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
$descriptions-bordered-cell-padding: () !default;
|
|
38
|
+
$descriptions-bordered-cell-padding: map.merge(
|
|
39
|
+
(
|
|
40
|
+
'large': 12px 15px,
|
|
41
|
+
'default': 8px 11px,
|
|
42
|
+
'small': 4px 7px,
|
|
43
|
+
),
|
|
44
|
+
$descriptions-bordered-cell-padding
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
$descriptions-cell-font-size: () !default;
|
|
48
|
+
$descriptions-cell-font-size: map.merge(
|
|
49
|
+
(
|
|
50
|
+
'large': 14px,
|
|
51
|
+
'default': 14px,
|
|
52
|
+
'small': 12px,
|
|
53
|
+
),
|
|
54
|
+
$descriptions-cell-font-size
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
@include b(descriptions) {
|
|
58
|
+
@include set-component-css-var('descriptions', $descriptions);
|
|
59
|
+
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
font-size: getCssVar('font-size', 'base');
|
|
62
|
+
color: getCssVar('text-color', 'primary');
|
|
63
|
+
|
|
64
|
+
@include e(header) {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
align-items: center;
|
|
68
|
+
margin-bottom: map.get($descriptions-header-margin-bottom, 'default');
|
|
69
|
+
|
|
70
|
+
@include e(title) {
|
|
71
|
+
color: getCssVar('text-color', 'primary');
|
|
72
|
+
font-size: map.get($descriptions-title-font-size, 'default');
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include e(body) {
|
|
78
|
+
background-color: getCssVar('fill-color', 'blank');
|
|
79
|
+
|
|
80
|
+
.#{$namespace}-descriptions__table {
|
|
81
|
+
border-collapse: collapse;
|
|
82
|
+
width: 100%;
|
|
83
|
+
|
|
84
|
+
.#{$namespace}-descriptions__cell {
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
text-align: left;
|
|
87
|
+
line-height: 23px;
|
|
88
|
+
font-size: map.get($descriptions-cell-font-size, 'default');
|
|
89
|
+
|
|
90
|
+
@include when(left) {
|
|
91
|
+
text-align: left;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include when(center) {
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@include when(right) {
|
|
99
|
+
text-align: right;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.is-bordered {
|
|
104
|
+
.#{$namespace}-descriptions__cell {
|
|
105
|
+
border: getCssVar('descriptions-table-border');
|
|
106
|
+
padding: map.get($descriptions-bordered-cell-padding, 'default');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:not(.is-bordered) {
|
|
111
|
+
.#{$namespace}-descriptions__cell {
|
|
112
|
+
padding-bottom: map.get($descriptions-cell-padding-bottom, 'default');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@each $size in (large, small) {
|
|
119
|
+
@include m($size) {
|
|
120
|
+
font-size: map.get($input-font-size, $size);
|
|
121
|
+
|
|
122
|
+
@include e(header) {
|
|
123
|
+
margin-bottom: map.get($descriptions-header-margin-bottom, $size);
|
|
124
|
+
|
|
125
|
+
@include e(title) {
|
|
126
|
+
font-size: map.get($descriptions-title-font-size, $size);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include e(body) {
|
|
131
|
+
.#{$namespace}-descriptions__table {
|
|
132
|
+
.#{$namespace}-descriptions__cell {
|
|
133
|
+
font-size: map.get($descriptions-cell-font-size, $size);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.is-bordered {
|
|
137
|
+
.#{$namespace}-descriptions__cell {
|
|
138
|
+
padding: map.get($descriptions-bordered-cell-padding, $size);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:not(.is-bordered) {
|
|
143
|
+
.#{$namespace}-descriptions__cell {
|
|
144
|
+
padding-bottom: map.get($descriptions-cell-padding-bottom, $size);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|