@c1f/nf-theme-chalk 0.0.0-stage → 1.0.0-rc.1
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/LICENSE +21 -0
- package/README.md +0 -3
- package/dist/css/element-plus.css +145 -0
- package/dist/css/element-plus.css.map +1 -0
- package/dist/css/images/import-template-bg.png +0 -0
- package/dist/css/index.css +3899 -0
- package/dist/css/index.css.map +1 -0
- package/dist/css/nf-action.css +228 -0
- package/dist/css/nf-action.css.map +1 -0
- package/dist/css/nf-alert.css +312 -0
- package/dist/css/nf-alert.css.map +1 -0
- package/dist/css/nf-audio.css +602 -0
- package/dist/css/nf-audio.css.map +1 -0
- package/dist/css/nf-button.css +495 -0
- package/dist/css/nf-button.css.map +1 -0
- package/dist/css/nf-conditions.css +326 -0
- package/dist/css/nf-conditions.css.map +1 -0
- package/dist/css/nf-config-provider.css +150 -0
- package/dist/css/nf-config-provider.css.map +1 -0
- package/dist/css/nf-confirm.css +568 -0
- package/dist/css/nf-confirm.css.map +1 -0
- package/dist/css/nf-date-picker.css +326 -0
- package/dist/css/nf-date-picker.css.map +1 -0
- package/dist/css/nf-drawer.css +591 -0
- package/dist/css/nf-drawer.css.map +1 -0
- package/dist/css/nf-empty.css +189 -0
- package/dist/css/nf-empty.css.map +1 -0
- package/dist/css/nf-form-item.css +523 -0
- package/dist/css/nf-form-item.css.map +1 -0
- package/dist/css/nf-form.css +527 -0
- package/dist/css/nf-form.css.map +1 -0
- package/dist/css/nf-import-template.css +597 -0
- package/dist/css/nf-import-template.css.map +1 -0
- package/dist/css/nf-indicator-plane.css +334 -0
- package/dist/css/nf-indicator-plane.css.map +1 -0
- package/dist/css/nf-infinite-menu.css +160 -0
- package/dist/css/nf-infinite-menu.css.map +1 -0
- package/dist/css/nf-keywords.css +635 -0
- package/dist/css/nf-keywords.css.map +1 -0
- package/dist/css/nf-lazy-select.css +330 -0
- package/dist/css/nf-lazy-select.css.map +1 -0
- package/dist/css/nf-message.css +245 -0
- package/dist/css/nf-message.css.map +1 -0
- package/dist/css/nf-notification.css +622 -0
- package/dist/css/nf-notification.css.map +1 -0
- package/dist/css/nf-popup-lazy-select.css +337 -0
- package/dist/css/nf-popup-lazy-select.css.map +1 -0
- package/dist/css/nf-radio-group.css +211 -0
- package/dist/css/nf-radio-group.css.map +1 -0
- package/dist/css/nf-resizable-panels.css +269 -0
- package/dist/css/nf-resizable-panels.css.map +1 -0
- package/dist/css/nf-rules.css +287 -0
- package/dist/css/nf-rules.css.map +1 -0
- package/dist/css/nf-search-form.css +567 -0
- package/dist/css/nf-search-form.css.map +1 -0
- package/dist/css/nf-softphone.css +176 -0
- package/dist/css/nf-softphone.css.map +1 -0
- package/dist/css/nf-table.css +719 -0
- package/dist/css/nf-table.css.map +1 -0
- package/dist/css/nf-tag.css +211 -0
- package/dist/css/nf-tag.css.map +1 -0
- package/dist/css/nf-text-overflow.css +187 -0
- package/dist/css/nf-text-overflow.css.map +1 -0
- package/dist/css/nf-transfer-select.css +590 -0
- package/dist/css/nf-transfer-select.css.map +1 -0
- package/dist/css/nf-variable-select.css +204 -0
- package/dist/css/nf-variable-select.css.map +1 -0
- package/dist/css/nf-virtual-select.css +241 -0
- package/dist/css/nf-virtual-select.css.map +1 -0
- package/dist/readme/94logo.png +0 -0
- package/dist/readme/common-plus.svg +7 -0
- package/dist/readme/contributors-wall.svg +23 -0
- package/dist/readme/contributors.svg +36 -0
- package/dist/scss/_element-plus-size.scss +50 -0
- package/dist/scss/_tokens.scss +17 -0
- package/dist/scss/element-plus.scss +10 -0
- package/dist/scss/images/import-template-bg.png +0 -0
- package/dist/scss/index.scss +35 -0
- package/dist/scss/nf-action.scss +14 -0
- package/dist/scss/nf-alert.scss +78 -0
- package/dist/scss/nf-audio.scss +493 -0
- package/dist/scss/nf-button.scss +115 -0
- package/dist/scss/nf-conditions.scss +9 -0
- package/dist/scss/nf-config-provider.scss +7 -0
- package/dist/scss/nf-confirm.scss +19 -0
- package/dist/scss/nf-date-picker.scss +41 -0
- package/dist/scss/nf-drawer.scss +25 -0
- package/dist/scss/nf-empty.scss +36 -0
- package/dist/scss/nf-form-item.scss +10 -0
- package/dist/scss/nf-form.scss +3 -0
- package/dist/scss/nf-import-template.scss +79 -0
- package/dist/scss/nf-indicator-plane.scss +234 -0
- package/dist/scss/nf-infinite-menu.scss +2 -0
- package/dist/scss/nf-keywords.scss +26 -0
- package/dist/scss/nf-lazy-select.scss +9 -0
- package/dist/scss/nf-message.scss +47 -0
- package/dist/scss/nf-notification.scss +47 -0
- package/dist/scss/nf-popup-lazy-select.scss +3 -0
- package/dist/scss/nf-radio-group.scss +50 -0
- package/dist/scss/nf-resizable-panels.scss +137 -0
- package/dist/scss/nf-rules.scss +28 -0
- package/dist/scss/nf-search-form.scss +2 -0
- package/dist/scss/nf-softphone.scss +2 -0
- package/dist/scss/nf-table.scss +2 -0
- package/dist/scss/nf-tag.scss +34 -0
- package/dist/scss/nf-text-overflow.scss +7 -0
- package/dist/scss/nf-transfer-select.scss +50 -0
- package/dist/scss/nf-variable-select.scss +11 -0
- package/dist/scss/nf-virtual-select.scss +18 -0
- package/dist/style/images/import-template-bg.png +0 -0
- package/dist/style/index.css +3899 -0
- package/package.json +38 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
@use './nf-button';
|
|
3
|
+
|
|
4
|
+
.nf-confirm {
|
|
5
|
+
.el-dialog.nf-confirm__dialog { padding: 0; max-width: calc(100vw - 32px); margin-bottom: 16px; border-radius: 4px; }
|
|
6
|
+
.el-dialog__header { height: 0; padding: 0 !important; margin: 0; border: 0; }
|
|
7
|
+
.el-dialog__body { padding: 0 !important; max-height: calc(65vh - 16px); overflow: auto; }
|
|
8
|
+
&__wrapper { display: flex; padding: 16px; }
|
|
9
|
+
&__inner { flex: 1; min-width: 0; }
|
|
10
|
+
&__icon { width: 24px; height: 24px; flex: 0 0 auto; font-size: 24px; margin-right: 8px; fill: currentColor; }
|
|
11
|
+
&__title { margin: 0 0 12px; font-size: 16px; font-weight: 400; color: rgba(0, 0, 0, .85); line-height: 24px; overflow-wrap: anywhere; }
|
|
12
|
+
&__content { margin: 0 0 24px; font-size: 14px; font-weight: 400; color: rgba(0, 0, 0, .65); line-height: 22px; overflow-wrap: anywhere; }
|
|
13
|
+
&__content p { margin: 0; }
|
|
14
|
+
&__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; .nf-button + .nf-button { margin-left: 0; } }
|
|
15
|
+
.el-icon-success { color: #67c23a; }
|
|
16
|
+
.el-icon-error { color: #f45959; }
|
|
17
|
+
.el-icon-info { color: var(--nf-color-primary); }
|
|
18
|
+
.el-icon-warning { color: #ff882e; }
|
|
19
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
.nf-date-picker-reference {
|
|
3
|
+
--nf-date-picker-height: var(--el-component-size, 28px);
|
|
4
|
+
display: inline-flex; align-items: center; gap: 8px; width: 220px; max-width: 100%;
|
|
5
|
+
min-height: var(--nf-date-picker-height); padding: 0 10px; box-sizing: border-box;
|
|
6
|
+
background: var(--el-fill-color-blank); color: var(--el-text-color-regular); cursor: pointer;
|
|
7
|
+
border-radius: var(--el-border-radius-base); box-shadow: 0 0 0 1px var(--el-border-color) inset;
|
|
8
|
+
font-size: var(--el-font-size-base); line-height: calc(var(--nf-date-picker-height) - 2px);
|
|
9
|
+
&.is-range { width: 350px; }
|
|
10
|
+
&.is-small { --nf-date-picker-height: var(--el-component-size-small, 24px); font-size: 12px; }
|
|
11
|
+
&.is-large { --nf-date-picker-height: var(--el-component-size-large, 40px); }
|
|
12
|
+
&:hover { box-shadow: 0 0 0 1px var(--el-border-color-hover) inset; }
|
|
13
|
+
&.is-focus, &:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--el-color-primary) inset; }
|
|
14
|
+
&.is-disabled { background: var(--el-disabled-bg-color); color: var(--el-disabled-text-color); cursor: not-allowed; }
|
|
15
|
+
}
|
|
16
|
+
.nf-date-picker-icon { flex: none; width: 14px; height: 14px; color: var(--el-text-color-placeholder); }
|
|
17
|
+
.nf-date-picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
18
|
+
.nf-date-picker-value.is-placeholder { color: var(--el-text-color-placeholder); }
|
|
19
|
+
.nf-date-picker-reference.is-range .nf-date-picker-value { text-align: center; }
|
|
20
|
+
.nf-date-picker-separator { flex: none; color: var(--el-text-color-regular); }
|
|
21
|
+
.nf-date-picker-clear { border: 0; padding: 0; background: transparent; color: var(--el-text-color-placeholder); cursor: pointer; font: inherit; }
|
|
22
|
+
.nf-date-picker-popper.el-popover { padding: 0; max-width: calc(100vw - 24px); }
|
|
23
|
+
.nf-date-picker-panel { display: grid; grid-template-columns: minmax(0, 1fr); color: var(--el-text-color-primary); }
|
|
24
|
+
.nf-date-picker-panel.is-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
25
|
+
.nf-date-picker-year { min-width: 0; padding: 12px; }
|
|
26
|
+
.nf-date-picker-year + .nf-date-picker-year { border-left: 1px solid var(--el-border-color-lighter); }
|
|
27
|
+
.nf-date-picker-year header { position: relative; height: 32px; text-align: center; border-bottom: 1px solid var(--el-border-color-lighter); line-height: 32px; }
|
|
28
|
+
.nf-date-picker-year header button { position: absolute; top: 0; border: 0; background: transparent; color: var(--el-text-color-regular); cursor: pointer; font: inherit; }
|
|
29
|
+
.nf-date-picker-year header button:first-child:not(:last-child) { left: 0; }
|
|
30
|
+
.nf-date-picker-year header button:last-child { right: 0; }
|
|
31
|
+
.nf-date-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 12px; }
|
|
32
|
+
.nf-date-picker-cell { grid-column: span 2; min-height: 40px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
|
|
33
|
+
.nf-date-picker-cell:hover, .nf-date-picker-cell:focus-visible { color: var(--el-color-primary); background: var(--el-fill-color-light); outline: 1px solid var(--el-color-primary); }
|
|
34
|
+
.nf-date-picker-cell.is-in-range { background: var(--el-color-primary-light-9); }
|
|
35
|
+
.nf-date-picker-cell.is-selected, .nf-date-picker-cell.is-range-start { color: var(--el-color-primary); font-weight: 600; }
|
|
36
|
+
.nf-date-picker-cell:disabled, .nf-date-picker-year header button:disabled { color: var(--el-disabled-text-color); cursor: not-allowed; }
|
|
37
|
+
.nf-week-range-popper .el-date-table td.nf-week-range-selected .el-date-table-cell { background: var(--el-datepicker-inrange-bg-color); }
|
|
38
|
+
@media (max-width: 480px) {
|
|
39
|
+
.nf-date-picker-panel.is-range { grid-template-columns: minmax(0, 1fr); }
|
|
40
|
+
.nf-date-picker-year + .nf-date-picker-year { border-left: 0; border-top: 1px solid var(--el-border-color-lighter); }
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
@use './nf-button';
|
|
3
|
+
|
|
4
|
+
.el-drawer.nf-drawer {
|
|
5
|
+
padding: 0;
|
|
6
|
+
max-width: 100vw;
|
|
7
|
+
max-height: 100vh;
|
|
8
|
+
color: var(--el-text-color-primary);
|
|
9
|
+
.el-drawer__header { flex-shrink: 0; min-height: 56px; box-sizing: border-box; padding: 0 16px; margin: 0; box-shadow: inset 0 -1px var(--el-border-color-lighter); font-size: 16px; font-weight: 600; color: inherit; }
|
|
10
|
+
.el-drawer__body { min-height: 0; padding: 0; overflow: visible; }
|
|
11
|
+
.nf-drawer__main { height: 100%; min-height: 0; display: flex; flex-direction: column; }
|
|
12
|
+
.nf-drawer__body { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
|
|
13
|
+
.nf-drawer__footer { flex-shrink: 0; border-top: 1px solid var(--el-border-color-lighter); }
|
|
14
|
+
.nf-drawer__btns { min-height: 55px; padding: 0 16px; display: flex; align-items: center; justify-content: flex-end; }
|
|
15
|
+
.nf-drawer__tabs-head { position: absolute; left: 0; top: 56px; width: 40px; max-height: calc(100% - 56px); overflow-y: auto; }
|
|
16
|
+
.nf-drawer__tabs-head .el-radio-group { display: flex; flex-direction: column; align-items: stretch; }
|
|
17
|
+
.nf-drawer__tabs-head .el-radio-button { margin-bottom: 1px; }
|
|
18
|
+
// Vertical labels need intrinsic height; override the default 28px control geometry.
|
|
19
|
+
&.has-tabs .nf-drawer__tabs-head .el-radio-group .el-radio-button .el-radio-button__inner { box-sizing: border-box; width: 40px; height: auto; padding: 12px 0; line-height: 40px; writing-mode: vertical-lr; letter-spacing: 4px; font-size: 14px; font-weight: 400; border: 0; border-radius: 8px 0 0 8px; box-shadow: none; background: color-mix(in srgb, var(--el-bg-color) 78%, transparent); color: var(--el-text-color-primary); }
|
|
20
|
+
&.has-tabs .nf-drawer__tabs-head .el-radio-group .el-radio-button.is-active .el-radio-button__inner { color: var(--nf-color-primary); background: var(--el-bg-color); }
|
|
21
|
+
&.has-tabs { padding-left: 40px; background: transparent; box-shadow: none; }
|
|
22
|
+
&.has-tabs > .el-drawer__header, &.has-tabs > .el-drawer__body { background: var(--el-bg-color); }
|
|
23
|
+
&:not(:has(> .el-drawer__header)) .nf-drawer__tabs-head { top: 0; max-height: 100%; }
|
|
24
|
+
.el-drawer__close-btn:hover { color: var(--nf-color-primary); }
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
|
|
3
|
+
.nf-empty {
|
|
4
|
+
height: inherit;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
text-align: center;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
&.nf-border { border: 1px solid var(--nf-empty-border-color, #f5f7fa); }
|
|
12
|
+
}
|
|
13
|
+
.nf-empty__image {
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
img {
|
|
16
|
+
user-select: none;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
vertical-align: top;
|
|
20
|
+
object-fit: contain;
|
|
21
|
+
}
|
|
22
|
+
.nf-empty__image-oem { display: none; }
|
|
23
|
+
}
|
|
24
|
+
[data-nf-theme='oem'] .nf-empty__image {
|
|
25
|
+
.nf-empty__image-chalk { display: none; }
|
|
26
|
+
.nf-empty__image-oem { display: inline; }
|
|
27
|
+
}
|
|
28
|
+
.nf-empty__description {
|
|
29
|
+
margin-top: 0;
|
|
30
|
+
p {
|
|
31
|
+
margin: 4px;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
color: var(--nf-empty-description-color, #909399);
|
|
34
|
+
line-height: 33px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
@use './nf-button';
|
|
3
|
+
.nf-form-item.el-form-item { .el-form-item__label { color: var(--el-text-color-primary); } }
|
|
4
|
+
.nf-form-item__actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
|
|
5
|
+
.nf-form-item__toggle.nf-button {
|
|
6
|
+
display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
|
|
7
|
+
width: 28px; padding-left: 0; padding-right: 0;
|
|
8
|
+
> span { display: inline-flex; align-items: center; justify-content: center; }
|
|
9
|
+
svg { display: block; }
|
|
10
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use './nf-button';
|
|
2
|
+
|
|
3
|
+
.nf-import-template {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-height: 122px;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
padding: 20px 24px;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
background: var(--nf-import-template-background, #f5f7fa);
|
|
15
|
+
user-select: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
&:hover {
|
|
18
|
+
background-image: url('./images/import-template-bg.png');
|
|
19
|
+
background-repeat: no-repeat;
|
|
20
|
+
background-size: cover;
|
|
21
|
+
> .nf-button.nf-button--primary {
|
|
22
|
+
// Keep the card action readable even if standalone button CSS loads later.
|
|
23
|
+
&, &:hover, &:active {
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
border-color: #fff;
|
|
26
|
+
color: var(--nf-color-primary);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
> .nf-button { flex-shrink: 0; }
|
|
31
|
+
.nf-round {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
box-sizing: content-box;
|
|
37
|
+
width: 20px;
|
|
38
|
+
height: 20px;
|
|
39
|
+
border: 1px solid var(--nf-import-template-text-color, #22262b);
|
|
40
|
+
color: var(--nf-import-template-text-color, #22262b);
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
}
|
|
45
|
+
.nf-content {
|
|
46
|
+
padding-left: 10px;
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
color: var(--nf-import-template-text-color, rgba(6, 6, 6, .85));
|
|
50
|
+
overflow-wrap: anywhere;
|
|
51
|
+
}
|
|
52
|
+
.nf-sub_description {
|
|
53
|
+
padding: 10px 0 0 35px;
|
|
54
|
+
color: var(--nf-import-template-tip-color, rgba(0, 0, 0, .65));
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
overflow-wrap: anywhere;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.nf-import-template__body { min-width: 0; }
|
|
60
|
+
.nf-import-template__heading { display: flex; align-items: center; }
|
|
61
|
+
.nf-import-template__error {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--nf-import-template-error-color, #f45959);
|
|
69
|
+
font: inherit;
|
|
70
|
+
text-align: left;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
73
|
+
.nf-error-text { padding-left: 12px; font-size: 18px; overflow-wrap: anywhere; }
|
|
74
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: 4px; }
|
|
75
|
+
}
|
|
76
|
+
@media (max-width: 480px) {
|
|
77
|
+
.nf-import-template { padding: 16px; gap: 12px; flex-wrap: wrap; }
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
.nf-indicator-plane {
|
|
3
|
+
margin: 0 8px 8px 0;
|
|
4
|
+
|
|
5
|
+
.nf-indicator-plane__body {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.nf-indicator-plane__footer {
|
|
11
|
+
padding: 4px 0 7px;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
.nf-indicator-plane__desc {
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
color: rgba(0,0,0,0.65);
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nf-indicator-plane__rate {
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
color: var(--nf-color-primary);
|
|
27
|
+
line-height: 27px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.is-scene-1 {
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
|
|
34
|
+
.nf-indicator-plane__body {
|
|
35
|
+
padding: 10px;
|
|
36
|
+
background: #FFFFFF;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
border: 1px solid #E4EEFF;
|
|
39
|
+
|
|
40
|
+
.nf-indicator-plane__body-middle {
|
|
41
|
+
margin: 0 16px;
|
|
42
|
+
|
|
43
|
+
.nf-indicator-plane__count {
|
|
44
|
+
margin-bottom: 4px;
|
|
45
|
+
font-size: 26px;
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
color: rgba(0,0,0,0.85);
|
|
48
|
+
line-height: 32px;
|
|
49
|
+
|
|
50
|
+
.nf-indicator-plane__unit {
|
|
51
|
+
font-size: 18px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nf-indicator-plane__name {
|
|
56
|
+
font-size: 12px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
color: rgba(0,0,0,0.65);
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.is-scene-2 {
|
|
66
|
+
background: rgba(103,194,58,0.1);
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
|
|
69
|
+
.nf-indicator-plane__body {
|
|
70
|
+
padding: 14px 0 6px;
|
|
71
|
+
|
|
72
|
+
.nf-indicator-plane__body-middle {
|
|
73
|
+
margin: 0 24px;
|
|
74
|
+
|
|
75
|
+
.nf-indicator-plane__name {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
color: rgba(0,0,0,0.5);
|
|
79
|
+
line-height: 22px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nf-indicator-plane__count {
|
|
83
|
+
font-size: 32px;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
color: #303133;
|
|
86
|
+
line-height: 44px;
|
|
87
|
+
|
|
88
|
+
.nf-indicator-plane__unit {
|
|
89
|
+
font-size: 18px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nf-indicator-plane__footer {
|
|
96
|
+
padding: 0 12px;
|
|
97
|
+
height: 36px;
|
|
98
|
+
background: rgba(255,255,255,0.7);
|
|
99
|
+
|
|
100
|
+
.nf-indicator-plane__desc {
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
color: rgba(0,0,0,0.5);
|
|
104
|
+
line-height: 22px;
|
|
105
|
+
|
|
106
|
+
.nf-indicator-plane__dot {
|
|
107
|
+
display: inline-block;
|
|
108
|
+
width: 6px;
|
|
109
|
+
height: 6px;
|
|
110
|
+
margin-right: 6px;
|
|
111
|
+
background-color: #67C23A;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nf-indicator-plane__rate {
|
|
117
|
+
font-size: 16px;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
color: rgba(0,0,0,0.65);
|
|
120
|
+
line-height: 22px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-scene-3 {
|
|
126
|
+
|
|
127
|
+
.nf-indicator-plane__body {
|
|
128
|
+
background: #FFFFFF;
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
border: 1px solid #E4EEFF;
|
|
131
|
+
|
|
132
|
+
.nf-indicator-plane__body-left {
|
|
133
|
+
padding: 16px;
|
|
134
|
+
border-right: 1px solid #E4EEFF;
|
|
135
|
+
min-width: 116px;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
|
|
138
|
+
.nf-indicator-plane__name {
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
font-weight: 400;
|
|
141
|
+
color: rgba(0,0,0,0.65);
|
|
142
|
+
line-height: 20px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.nf-indicator-plane__count {
|
|
146
|
+
margin-bottom: 6px;
|
|
147
|
+
font-size: 26px;
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
color: rgba(0,0,0,0.85);
|
|
150
|
+
line-height: 32px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.nf-indicator-plane__body-middle {
|
|
155
|
+
margin-left: 16px;
|
|
156
|
+
flex: 1;
|
|
157
|
+
|
|
158
|
+
.nf-indicator-plane__name {
|
|
159
|
+
font-size: 12px;
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
color: rgba(0,0,0,0.65);
|
|
162
|
+
line-height: 20px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nf-indicator-plane__count {
|
|
166
|
+
margin-bottom: 6px;
|
|
167
|
+
font-size: 16px;
|
|
168
|
+
font-weight: bold;
|
|
169
|
+
color: #05C9D7;
|
|
170
|
+
line-height: 27px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.is-scene-4 {
|
|
177
|
+
|
|
178
|
+
.nf-indicator-plane__body {
|
|
179
|
+
background: #FFFFFF;
|
|
180
|
+
border-radius: 4px;
|
|
181
|
+
border: 1px solid #DCDFE6;
|
|
182
|
+
|
|
183
|
+
.nf-indicator-plane__body-middle {
|
|
184
|
+
padding: 12px;
|
|
185
|
+
|
|
186
|
+
.nf-indicator-plane__name {
|
|
187
|
+
font-size: 12px;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
color: rgba(0,0,0,0.65);
|
|
190
|
+
line-height: 22px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.nf-indicator-plane__count {
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
font-weight: bold;
|
|
196
|
+
color: rgba(0,0,0,0.85);
|
|
197
|
+
line-height: 22px;
|
|
198
|
+
|
|
199
|
+
.nf-indicator-plane__unit {
|
|
200
|
+
font-size: 12px;
|
|
201
|
+
font-weight: normal;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&.is-scene-5 {
|
|
209
|
+
|
|
210
|
+
.nf-indicator-plane__body {
|
|
211
|
+
background: #F0F2F5;
|
|
212
|
+
border-radius: 4px;
|
|
213
|
+
|
|
214
|
+
.nf-indicator-plane__body-middle {
|
|
215
|
+
padding: 14px 0;
|
|
216
|
+
margin: 0 24px;
|
|
217
|
+
|
|
218
|
+
.nf-indicator-plane__name {
|
|
219
|
+
font-size: 14px;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
color: rgba(0,0,0,0.5);
|
|
222
|
+
line-height: 22px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.nf-indicator-plane__count {
|
|
226
|
+
font-size: 32px;
|
|
227
|
+
font-weight: 500;
|
|
228
|
+
color: #303133;
|
|
229
|
+
line-height: 44px;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
@use './nf-button';
|
|
3
|
+
.nf-keyword-inputs-box { width: 100%; --nf-keyword-input-height: 28px; }
|
|
4
|
+
.nf-keywords--small { --nf-keyword-input-height: 32px; }
|
|
5
|
+
.nf-keywords--medium { --nf-keyword-input-height: 36px; }
|
|
6
|
+
.nf-keywords--default, .nf-keywords--large { --nf-keyword-input-height: 40px; }
|
|
7
|
+
.nf-keyword-inputs { display: flex; flex-direction: column; padding: 12px; border-radius: 2px; background: var(--el-fill-color-light); }
|
|
8
|
+
.nf-keyword-inputs > .el-input { height: var(--nf-keyword-input-height); font-size: 12px; }
|
|
9
|
+
.nf-keyword-inputs .el-input__wrapper { padding: 0 12px; border: 0; border-radius: 2px; background: var(--el-fill-color-blank); box-shadow: none; }
|
|
10
|
+
.nf-keyword-inputs .el-input__wrapper:hover, .nf-keyword-inputs .el-input__wrapper.is-focus { box-shadow: none; }
|
|
11
|
+
.nf-keyword-inputs .el-input__inner { height: 100%; line-height: var(--nf-keyword-input-height); }
|
|
12
|
+
.nf-keyword-inputs .el-input__inner:focus-visible { outline: none; }
|
|
13
|
+
.nf-keyword-has-keyword > .el-input { margin-top: 8px; }
|
|
14
|
+
.nf-keyword-has-keyword .el-input__wrapper { border-radius: 0; }
|
|
15
|
+
.nf-keyword-has-keyword .el-input__inner::placeholder { color: var(--el-text-color-secondary); }
|
|
16
|
+
.nf-keyword-input-item-box { width: 100%; max-height: 40vh; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; font-size: 0; line-height: 0; }
|
|
17
|
+
.nf-keyword-input-item { display: inline-block; vertical-align: top; max-width: 100%; margin: 0 8px 8px 0; font-size: 12px; font-weight: 400; line-height: 20px; border-radius: 2px; background: var(--el-fill-color-blank); color: var(--el-text-color-regular); white-space: normal; overflow-wrap: anywhere; }
|
|
18
|
+
.nf-keyword-input-item span { padding: 0 6px; }
|
|
19
|
+
.nf-keyword-close { display: inline-block; cursor: pointer; font-style: normal; font-size: 14px; line-height: 20px; margin-right: 4px; }
|
|
20
|
+
.nf-keyword-close:hover { color: var(--nf-color-primary); }
|
|
21
|
+
.nf-keyword-close:focus-visible { outline: 1px solid var(--nf-color-primary); outline-offset: 1px; }
|
|
22
|
+
.nf-keyword-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; margin-top: 8px; }
|
|
23
|
+
.nf-keyword-actions .nf-button { font-weight: 400; font-size: 12px; }
|
|
24
|
+
.nf-keyword-actions .nf-button + .nf-button { margin-left: 0; }
|
|
25
|
+
.nf-keyword-icon { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: middle; }
|
|
26
|
+
.nf-keyword-over-text { color: var(--el-color-danger); padding-left: 12px; font-size: 12px; }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use './nf-virtual-select';
|
|
2
|
+
@use './nf-empty';
|
|
3
|
+
.nf-lazy-select-sentinel { min-height: 1px; text-align: center; }
|
|
4
|
+
.nf-lazy-select-sentinel button { border: 0; background: transparent; color: var(--el-text-color-secondary); cursor: pointer; padding: 8px; }
|
|
5
|
+
.nf-lazy-select-popper .el-select-dropdown__footer { border: 0; padding: 0; }
|
|
6
|
+
.nf-lazy-select-loading { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--el-text-color-secondary); font-size: 12px; }
|
|
7
|
+
.nf-lazy-select-loading-icon { width: 14px; height: 14px; flex: none; animation: nf-lazy-select-spin 1s linear infinite; }
|
|
8
|
+
@keyframes nf-lazy-select-spin { to { transform: rotate(360deg); } }
|
|
9
|
+
@media (prefers-reduced-motion: reduce) { .nf-lazy-select-loading-icon { animation: none; } }
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
|
|
3
|
+
.nf-message {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
position: fixed;
|
|
6
|
+
left: 50%;
|
|
7
|
+
top: 20px;
|
|
8
|
+
transform: translateX(-50%);
|
|
9
|
+
width: max-content;
|
|
10
|
+
max-width: calc(100vw - 32px);
|
|
11
|
+
background: #fff;
|
|
12
|
+
box-shadow: 0 2px 30px rgba(0, 0, 0, .1);
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
padding: 9px 16px;
|
|
15
|
+
color: rgba(0, 0, 0, .65);
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
transition: opacity .3s, transform .4s, top .4s;
|
|
19
|
+
&.is-center { justify-content: center; }
|
|
20
|
+
&.is-closable { padding-right: 47px; }
|
|
21
|
+
p { margin: 0; }
|
|
22
|
+
&__icon { width: 16px; height: 16px; flex: 0 0 auto; margin-right: 8px; fill: currentColor; }
|
|
23
|
+
&__content { min-width: 0; padding: 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
|
|
24
|
+
&__closeBtn {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 50%; right: 11px;
|
|
27
|
+
transform: translateY(-50%);
|
|
28
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
29
|
+
width: 24px; height: 24px;
|
|
30
|
+
margin: 0; padding: 4px; border: 0; border-radius: 2px;
|
|
31
|
+
background: transparent; color: #c0c4cc; cursor: pointer;
|
|
32
|
+
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
33
|
+
&:hover { color: #909399; }
|
|
34
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: 1px; }
|
|
35
|
+
}
|
|
36
|
+
.el-icon-success { color: #67c23a; }
|
|
37
|
+
.el-icon-error { color: #f45959; }
|
|
38
|
+
.el-icon-info { color: var(--nf-color-primary); }
|
|
39
|
+
.el-icon-warning { color: #ff882e; }
|
|
40
|
+
}
|
|
41
|
+
.nf-message-fade-enter-from, .nf-message-fade-leave-to {
|
|
42
|
+
opacity: 0; transform: translate(-50%, -100%);
|
|
43
|
+
}
|
|
44
|
+
.nf-message-fade-leave-active { pointer-events: none; }
|
|
45
|
+
@media (prefers-reduced-motion: reduce) {
|
|
46
|
+
.nf-message { transition: none; }
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
@use './nf-button';
|
|
3
|
+
|
|
4
|
+
.nf-notification {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 400px;
|
|
7
|
+
max-width: calc(100vw - 32px);
|
|
8
|
+
padding: 16px 24px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
position: fixed;
|
|
11
|
+
background: #fff;
|
|
12
|
+
box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
transition: opacity .3s, transform .3s, left .3s, right .3s, top .4s, bottom .3s;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
&.right { right: 16px; }
|
|
17
|
+
&.left { left: 16px; }
|
|
18
|
+
&__group { flex: 1; min-width: 0; }
|
|
19
|
+
&__title { font-size: 16px; font-weight: 400; color: rgba(0, 0, 0, .85); line-height: 24px; margin: 0 0 12px; overflow-wrap: anywhere; }
|
|
20
|
+
&.is-closable &__title { padding-right: 16px; }
|
|
21
|
+
&__content { font-size: 14px; font-weight: 400; color: rgba(0, 0, 0, .65); line-height: 22px; text-align: justify; overflow-wrap: anywhere; }
|
|
22
|
+
&__content p { margin: 0; }
|
|
23
|
+
&__icon { height: 24px; width: 24px; flex: 0 0 auto; font-size: 24px; margin-right: 16px; fill: currentColor; }
|
|
24
|
+
&__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; .nf-button + .nf-button { margin-left: 0; } }
|
|
25
|
+
&__closeBtn {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 16px; right: 13px;
|
|
28
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
29
|
+
width: 24px; height: 24px;
|
|
30
|
+
margin: 0; padding: 4px; border: 0; border-radius: 2px;
|
|
31
|
+
background: transparent; color: #909399; cursor: pointer;
|
|
32
|
+
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
33
|
+
&:hover { color: #606266; background: #e0e1e5; }
|
|
34
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: 1px; }
|
|
35
|
+
}
|
|
36
|
+
.el-icon-success { color: #67c23a; }
|
|
37
|
+
.el-icon-error { color: #f45959; }
|
|
38
|
+
.el-icon-info { color: var(--nf-color-primary); }
|
|
39
|
+
.el-icon-warning { color: #ff882e; }
|
|
40
|
+
}
|
|
41
|
+
.nf-notification-fade-enter-from, .nf-notification-fade-leave-to {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
&.right { transform: translateX(100%); }
|
|
44
|
+
&.left { transform: translateX(-100%); }
|
|
45
|
+
}
|
|
46
|
+
.nf-notification-fade-leave-active { pointer-events: none; }
|
|
47
|
+
@media (prefers-reduced-motion: reduce) { .nf-notification { transition: none; } }
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
|
|
3
|
+
.nf-radio-group {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
height: fit-content;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
display: flex;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
padding: 2px;
|
|
14
|
+
background-color: var(--nf-radio-group-background, #f0f2f5);
|
|
15
|
+
&.small .btn { height: 24px; font-size: 12px; }
|
|
16
|
+
&.large .btn { height: 36px; font-size: 16px; }
|
|
17
|
+
.btn {
|
|
18
|
+
height: 28px;
|
|
19
|
+
font-family: inherit;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: normal;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
color: var(--nf-radio-group-text-color, #303133);
|
|
30
|
+
border: 0;
|
|
31
|
+
border-radius: 0;
|
|
32
|
+
background: transparent;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0 16px;
|
|
35
|
+
user-select: none;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
&:hover:not(.disabled) { background: var(--nf-radio-group-hover-background, #e3e5e8); }
|
|
38
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: -2px; }
|
|
39
|
+
}
|
|
40
|
+
.active_text {
|
|
41
|
+
color: var(--nf-color-primary);
|
|
42
|
+
background: var(--nf-radio-group-active-background, white);
|
|
43
|
+
border-right: 1px solid var(--nf-radio-group-background, #f0f2f5);
|
|
44
|
+
}
|
|
45
|
+
.disabled { color: var(--nf-radio-group-disabled-color, #c5c5c5); cursor: not-allowed; }
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 480px) {
|
|
48
|
+
.nf-radio-group { justify-content: flex-start; overflow-x: auto; }
|
|
49
|
+
}
|
|
50
|
+
|