@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,14 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
.nf-action { display: inline-flex; align-items: center; width: 100%; min-width: 0; padding-left: 10px; box-sizing: border-box; }
|
|
3
|
+
.nf-action-button-container { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; white-space: nowrap; }
|
|
4
|
+
.nf-action-item { display: inline-flex; flex-shrink: 0; }
|
|
5
|
+
.nf-action .el-dropdown { flex-shrink: 0; margin-left: 5px; }
|
|
6
|
+
.nf-action .nf-icon-more { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; padding: 0; width: 28px; height: 28px; background: transparent; font-size: 16px; line-height: 1; color: var(--nf-color-primary); cursor: pointer; border-radius: 2px; &:hover { background: var(--el-color-primary-light-9); } &:focus-visible { outline: 2px solid var(--nf-color-primary); } }
|
|
7
|
+
.nf-action-dropdown { padding: 0 !important; min-width: 98px !important;
|
|
8
|
+
.el-dropdown-menu { padding: 0; }
|
|
9
|
+
.nf-menu-item { padding: 4px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 12px; }
|
|
10
|
+
.nf-action-item { display: flex; }
|
|
11
|
+
.el-button, .nf-button { width: 100%; border: 0; border-radius: 2px; margin: 0; padding: 4px 8px; line-height: 20px; text-align: left; color: var(--el-text-color-primary);
|
|
12
|
+
&:hover { background: var(--el-fill-color-light); }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
|
|
3
|
+
.nf-alert {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
width: 100%;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 6px 12px;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
background: #fff;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transition: opacity .2s;
|
|
17
|
+
&.included-desc { padding: 16px; }
|
|
18
|
+
&.is-centered { justify-content: center; }
|
|
19
|
+
&.is-closable .nf-alert__content { padding-right: 28px; }
|
|
20
|
+
&.is-light {
|
|
21
|
+
color: rgba(0, 0, 0, .65);
|
|
22
|
+
.nf-alert__title, .is-big-title { color: rgba(0, 0, 0, .85); }
|
|
23
|
+
.nf-alert__closebtn.is-customed { color: var(--nf-color-primary); }
|
|
24
|
+
}
|
|
25
|
+
&.nf-alert--success {
|
|
26
|
+
&.is-light { background: #f0f9eb; border: 1px solid #67c23a; .nf-alert__icon { color: #67c23a; } }
|
|
27
|
+
&.is-dark { background: #67c23a; }
|
|
28
|
+
}
|
|
29
|
+
&.nf-alert--warning {
|
|
30
|
+
&.is-light { background: #fdf6ec; border: 1px solid #ff882e; .nf-alert__icon { color: #ff882e; } }
|
|
31
|
+
&.is-dark { background: #e6a23c; }
|
|
32
|
+
}
|
|
33
|
+
&.nf-alert--error {
|
|
34
|
+
&.is-light { background: #fef0f0; border: 1px solid #f45959; .nf-alert__icon { color: #f45959; } }
|
|
35
|
+
&.is-dark { background: #f56c6c; }
|
|
36
|
+
}
|
|
37
|
+
&.nf-alert--info {
|
|
38
|
+
&.is-light { background: #f4f4f5; border: 1px solid var(--nf-color-primary); .nf-alert__icon { color: var(--nf-color-primary); } }
|
|
39
|
+
&.is-dark { background: #909399; }
|
|
40
|
+
}
|
|
41
|
+
&.is-dark { color: #fff; .nf-alert__icon { color: #fff; } }
|
|
42
|
+
.nf-alert__content { min-width: 0; padding: 0; line-height: 22px; overflow-wrap: anywhere; }
|
|
43
|
+
.nf-alert__heading { display: flex; align-items: center; }
|
|
44
|
+
.nf-alert__title { font-size: 16px; line-height: 18px; font-weight: 500; }
|
|
45
|
+
.nf-alert__icon { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
|
|
46
|
+
.nf-alert__icon.is-big { width: 24px; height: 24px; }
|
|
47
|
+
.is-big-title { font-size: 16px; font-weight: 500; }
|
|
48
|
+
.nf-alert__description { font-size: 14px; line-height: 22px; }
|
|
49
|
+
.nf-alert__closebtn {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 8px;
|
|
52
|
+
right: 12px;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
max-width: 45%;
|
|
57
|
+
min-width: 16px;
|
|
58
|
+
height: 16px;
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
border: 0;
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: inherit;
|
|
64
|
+
font: inherit;
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: 2px; }
|
|
68
|
+
&.is-customed { height: auto; font-size: 13px; line-height: 16px; }
|
|
69
|
+
svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
70
|
+
}
|
|
71
|
+
&.included-desc .nf-alert__closebtn { top: 12px; right: 15px; }
|
|
72
|
+
}
|
|
73
|
+
.nf-alert-fade-enter-from, .nf-alert-fade-leave-to { opacity: 0; }
|
|
74
|
+
.nf-alert-fade-enter-active, .nf-alert-fade-leave-active { transition: opacity .2s; }
|
|
75
|
+
@media (prefers-reduced-motion: reduce) {
|
|
76
|
+
.nf-alert, .nf-alert-fade-enter-active, .nf-alert-fade-leave-active { transition: none; }
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
.nf-audio {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-start;
|
|
6
|
+
align-items: center;
|
|
7
|
+
&.background {
|
|
8
|
+
> .nf-audio-body {
|
|
9
|
+
background: #F5F7FA;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> .nf-audio-fast {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 48px;
|
|
17
|
+
height: 48px;
|
|
18
|
+
margin-right: 8px;
|
|
19
|
+
font-size: 0;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
background: #F5F7FA;
|
|
22
|
+
position: relative;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: background 0.3s ease-in-out;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background: #ebeef5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:active {
|
|
31
|
+
background: #dcdfe6;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nf-audio-fast-icon {
|
|
35
|
+
position: absolute;
|
|
36
|
+
margin-top: 50%;
|
|
37
|
+
margin-left: 55%;
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
color: var(--nf-color-primary);
|
|
43
|
+
background-size: contain;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
> .nf-audio-body {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
padding: 7px 16px;
|
|
51
|
+
border-radius: 24px;
|
|
52
|
+
// 播放
|
|
53
|
+
> .nf-audio-play {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
width: 30px;
|
|
58
|
+
height: 30px;
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
text-align: center;
|
|
62
|
+
line-height: 1;
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
background: #ebeef5;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:active {
|
|
69
|
+
background: #dcdfe6;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
> .nf-audio-pause-icon, > .nf-audio-play-icon {
|
|
73
|
+
display: block;
|
|
74
|
+
font-size: 20px;
|
|
75
|
+
color: var(--nf-color-primary);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
> .nf-audio-time {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
color: #000000D9;
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
height: 22px;
|
|
85
|
+
line-height: 22px;
|
|
86
|
+
margin: 0 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
> .nf-audio-pre, > .nf-audio-next {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
padding: 3px;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
color: #C7C7C9;
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
line-height: 1;
|
|
98
|
+
|
|
99
|
+
> svg {
|
|
100
|
+
display: block;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
> .nf-audio-progress-container {
|
|
106
|
+
width: 140px;
|
|
107
|
+
height: 6px;
|
|
108
|
+
background: #DCDFE6;
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
margin: 0 10px 0 8px;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
|
|
113
|
+
> .nf-audio-progress-current {
|
|
114
|
+
position: relative;
|
|
115
|
+
height: 100%;
|
|
116
|
+
width: 0;
|
|
117
|
+
background-color: var(--nf-color-primary);
|
|
118
|
+
border-radius: 3px;
|
|
119
|
+
|
|
120
|
+
> .nf-audio-progress-bar {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
position: absolute;
|
|
123
|
+
right: 0px;
|
|
124
|
+
top: 50%;
|
|
125
|
+
transform: translateY(-50%);
|
|
126
|
+
width: 2px;
|
|
127
|
+
height: 22px;
|
|
128
|
+
background-color: var(--nf-color-primary);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// 音量条
|
|
134
|
+
> .nf-audio-volume-tool {
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
position: relative;
|
|
137
|
+
z-index: 1;
|
|
138
|
+
padding: 5px;
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
margin-right: 5px;
|
|
141
|
+
|
|
142
|
+
&:hover {
|
|
143
|
+
background: #ebeef5;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:active {
|
|
147
|
+
background: #dcdfe6;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&::before {
|
|
151
|
+
content: "";
|
|
152
|
+
position: absolute;
|
|
153
|
+
left: 0;
|
|
154
|
+
bottom: 0;
|
|
155
|
+
width: 34px;
|
|
156
|
+
height: 0;
|
|
157
|
+
background: #EBEEF5;
|
|
158
|
+
border-radius: 16px;
|
|
159
|
+
transition: height .2s ease-in-out;
|
|
160
|
+
z-index: -1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.nf-audio-tool-show::before {
|
|
164
|
+
height: 120px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nf-audio-volume-unmute, .nf-audio-volume-mute {
|
|
168
|
+
font-size: 20px;
|
|
169
|
+
color: var(--nf-color-primary);
|
|
170
|
+
background-repeat: no-repeat;
|
|
171
|
+
background-position: center;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nf-audio-volume-popper {
|
|
175
|
+
position: absolute;
|
|
176
|
+
top: -75px;
|
|
177
|
+
left: 50%;
|
|
178
|
+
transform: translateX(-50%);
|
|
179
|
+
z-index: 100;
|
|
180
|
+
border-radius: 16px;
|
|
181
|
+
padding: 12px 6px 6px;
|
|
182
|
+
|
|
183
|
+
.el-slider__runway {
|
|
184
|
+
.el-slider__bar {
|
|
185
|
+
background-color: var(--nf-color-primary);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.el-slider__button-wrapper {
|
|
189
|
+
width: 10px;
|
|
190
|
+
height: 10px;
|
|
191
|
+
left: 50%;
|
|
192
|
+
transform: translateX(-50%);
|
|
193
|
+
position: absolute;
|
|
194
|
+
|
|
195
|
+
.el-slider__button {
|
|
196
|
+
border: 1px solid var(--nf-color-primary);
|
|
197
|
+
width: 100%;
|
|
198
|
+
height: 100%;
|
|
199
|
+
background: var(--nf-color-primary);
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
position: absolute;
|
|
202
|
+
left: 50%;
|
|
203
|
+
top: 50%;
|
|
204
|
+
transform: translateX(-50%) translateY(-50%);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.nf-audio-slide-fade-enter-active {
|
|
211
|
+
transition: all .5s ease-in-out;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.nf-audio-slide-fade-enter, .nf-audio-slide-fade-leave-to, .nf-audio-slide-fade-leave-active {
|
|
215
|
+
opacity: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
> .nf-audio-more-btn-box {
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
align-items: center;
|
|
224
|
+
border-radius: 50%;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
|
|
227
|
+
// 更多浮层
|
|
228
|
+
.nf-audio-popover {
|
|
229
|
+
min-width: 100px;
|
|
230
|
+
padding: 0;
|
|
231
|
+
|
|
232
|
+
.nf-audio-btn-list {
|
|
233
|
+
width: auto;
|
|
234
|
+
font-size: 14px;
|
|
235
|
+
|
|
236
|
+
.nf-audio-btn-item {
|
|
237
|
+
line-height: 35px;
|
|
238
|
+
padding: 0 15px;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
font-size: 14px;
|
|
241
|
+
|
|
242
|
+
&:hover, &.active {
|
|
243
|
+
background: #F5F7FA;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.nf-audio-more-icon-container {
|
|
250
|
+
display: flex;
|
|
251
|
+
font-size: 20px;
|
|
252
|
+
line-height: 1;
|
|
253
|
+
width: 34px;
|
|
254
|
+
height: 34px;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
cursor: pointer;
|
|
258
|
+
border-radius: 50%;
|
|
259
|
+
|
|
260
|
+
&:hover {
|
|
261
|
+
background: #ebeef5;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&:active {
|
|
265
|
+
background: #dcdfe6;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.nf-audio-more-icon {
|
|
269
|
+
color: var(--nf-color-primary);
|
|
270
|
+
font-size: 20px;
|
|
271
|
+
background-size: 100% 100%;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.mini {
|
|
278
|
+
> .nf-audio-fast {
|
|
279
|
+
width: 38px;
|
|
280
|
+
height: 38px;
|
|
281
|
+
margin-right: 8px;
|
|
282
|
+
|
|
283
|
+
.nf-audio-fast-icon {
|
|
284
|
+
font-size: 16px;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
> .nf-audio-body {
|
|
289
|
+
height: 28px;
|
|
290
|
+
padding: 5px 12px;
|
|
291
|
+
|
|
292
|
+
// 播放
|
|
293
|
+
> .nf-audio-play {
|
|
294
|
+
width: 28px;
|
|
295
|
+
height: 28px;
|
|
296
|
+
line-height: 1;
|
|
297
|
+
|
|
298
|
+
> .nf-audio-play-icon, > .nf-audio-pause-icon {
|
|
299
|
+
font-size: 16px;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
> .nf-audio-time {
|
|
304
|
+
.startTime, .endTime {
|
|
305
|
+
font-size: 12px;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
> .nf-audio-pre, > .nf-audio-next {
|
|
310
|
+
font-size: 12px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
> .nf-audio-progress-container {
|
|
314
|
+
width: 120px;
|
|
315
|
+
height: 4px;
|
|
316
|
+
|
|
317
|
+
.nf-audio-progress-bar {
|
|
318
|
+
height: 16px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
> .nf-audio-volume-tool {
|
|
323
|
+
> div {
|
|
324
|
+
width: 18px;
|
|
325
|
+
height: 18px;
|
|
326
|
+
line-height: 18px;
|
|
327
|
+
text-align: center;
|
|
328
|
+
|
|
329
|
+
.nf-audio-volume-unmute, .nf-audio-volume-mute {
|
|
330
|
+
font-size: 16px;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&::before {
|
|
335
|
+
width: 28px;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.nf-audio-volume-popper {
|
|
339
|
+
padding: 12px 6px 6px;
|
|
340
|
+
|
|
341
|
+
.el-slider__runway {
|
|
342
|
+
margin: 0 6px;
|
|
343
|
+
|
|
344
|
+
.el-slider__bar {
|
|
345
|
+
position: absolute;
|
|
346
|
+
left: 50%;
|
|
347
|
+
transform: translateX(-50%);
|
|
348
|
+
width: 4px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.el-slider__button-wrapper {
|
|
352
|
+
width: 8px;
|
|
353
|
+
height: 8px;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
> .nf-audio-more-btn-box {
|
|
360
|
+
// 更多
|
|
361
|
+
.nf-audio-more-icon-container {
|
|
362
|
+
width: 28px;
|
|
363
|
+
line-height: 28px;
|
|
364
|
+
height: 28px;
|
|
365
|
+
|
|
366
|
+
.nf-audio-more-icon {
|
|
367
|
+
font-size: 16px;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// 更多浮层
|
|
372
|
+
.nf-audio-popover {
|
|
373
|
+
|
|
374
|
+
.nf-audio-btn-list {
|
|
375
|
+
font-size: 12px;
|
|
376
|
+
|
|
377
|
+
.nf-audio-btn-item {
|
|
378
|
+
line-height: 28px;
|
|
379
|
+
padding: 0 12px;
|
|
380
|
+
font-size: 12px;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
&.disabled {
|
|
389
|
+
|
|
390
|
+
// 快进
|
|
391
|
+
> .nf-audio-fast {
|
|
392
|
+
background: #F5F7FA;
|
|
393
|
+
cursor: not-allowed;
|
|
394
|
+
// 快进按钮
|
|
395
|
+
.nf-audio-fast-icon {
|
|
396
|
+
cursor: not-allowed;
|
|
397
|
+
color: rgba(0, 0, 0, .3);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
> .nf-audio-body {
|
|
402
|
+
// 播放
|
|
403
|
+
> .nf-audio-play {
|
|
404
|
+
cursor: not-allowed;
|
|
405
|
+
|
|
406
|
+
&:hover {
|
|
407
|
+
background: transparent;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
&:active {
|
|
411
|
+
background: transparent;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
> .nf-audio-play-icon, .nf-audio-pause-icon {
|
|
415
|
+
cursor: not-allowed;
|
|
416
|
+
color: rgba(0, 0, 0, .3);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// 时间
|
|
421
|
+
> .nf-audio-time {
|
|
422
|
+
color: rgba(0, 0, 0, .3);
|
|
423
|
+
cursor: not-allowed;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// 进度
|
|
427
|
+
> .nf-audio-progress-container {
|
|
428
|
+
cursor: not-allowed;
|
|
429
|
+
|
|
430
|
+
> .nf-audio-progress-current {
|
|
431
|
+
cursor: not-allowed;
|
|
432
|
+
|
|
433
|
+
> .nf-audio-progress-bar {
|
|
434
|
+
cursor: not-allowed;
|
|
435
|
+
background: rgba(0, 0, 0, .3);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// 音量
|
|
441
|
+
> .nf-audio-volume-tool {
|
|
442
|
+
cursor: not-allowed;
|
|
443
|
+
|
|
444
|
+
&:hover {
|
|
445
|
+
background: transparent;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&:active {
|
|
449
|
+
background: transparent;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.nf-audio-volume-unmute, .nf-audio-volume-mute {
|
|
453
|
+
cursor: not-allowed;
|
|
454
|
+
color: rgba(0, 0, 0, .3);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
> .nf-audio-more-btn-box {
|
|
459
|
+
|
|
460
|
+
// 更多
|
|
461
|
+
.nf-audio-more-icon-container {
|
|
462
|
+
cursor: not-allowed;
|
|
463
|
+
|
|
464
|
+
&:hover {
|
|
465
|
+
background: transparent;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
&:active {
|
|
469
|
+
background: transparent;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.nf-audio-more-icon {
|
|
473
|
+
cursor: not-allowed;
|
|
474
|
+
color: rgba(0, 0, 0, .3);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
.nf-audio { min-width: 0; button { appearance: none; border: 0; margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; &:focus-visible { outline: 2px solid var(--nf-color-primary); outline-offset: 2px; } &:disabled { cursor: not-allowed; } }
|
|
482
|
+
> .nf-audio-fast { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; .nf-audio-fast-icon { position: static; margin: 0; transform: none; } }
|
|
483
|
+
> .nf-audio-body { min-width: 0; max-width: 100%; box-sizing: content-box; > * { flex-shrink: 0; } > .nf-audio-progress-container { flex-shrink: 1; min-width: 24px; touch-action: none; } }
|
|
484
|
+
.nf-audio-volume-tool > button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
|
|
485
|
+
.nf-audio-btn-item { display: block; width: 100%; text-align: left; &:disabled { opacity: .5; } }
|
|
486
|
+
&.mini .nf-audio-volume-tool > button { width: 18px; height: 18px; .nf-audio-volume-unmute, .nf-audio-volume-mute { font-size: 16px; } }
|
|
487
|
+
&.disabled { color: var(--el-text-color-disabled); }
|
|
488
|
+
}
|
|
489
|
+
@media (max-width: 520px) {
|
|
490
|
+
.nf-audio > .nf-audio-body { padding: 7px 8px; flex-wrap: wrap; row-gap: 4px; }
|
|
491
|
+
.nf-audio.mini > .nf-audio-body { height: auto; min-height: 28px; }
|
|
492
|
+
.nf-audio .nf-audio-time { font-size: 12px; margin: 0 4px; }
|
|
493
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use './element-plus';
|
|
2
|
+
|
|
3
|
+
// Shared button geometry/state rules; all theme-dependent colors use runtime tokens.
|
|
4
|
+
.nf-button {
|
|
5
|
+
--nf-button-color: var(--nf-color-primary, #17f);
|
|
6
|
+
outline: none;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
color: rgba(0, 0, 0, .65);
|
|
10
|
+
border: 1px solid #dcdfe6;
|
|
11
|
+
text-align: center;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
padding: 7px 12px;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
& + & { margin-left: 10px; }
|
|
20
|
+
&:focus-visible { outline: 2px solid var(--nf-color-primary, #17f); outline-offset: 2px; }
|
|
21
|
+
&:hover {
|
|
22
|
+
color: var(--nf-color-primary, #17f);
|
|
23
|
+
border-color: var(--nf-color-primary, #17f);
|
|
24
|
+
background-color: color-mix(in srgb, var(--nf-color-primary, #17f) 5%, transparent);
|
|
25
|
+
}
|
|
26
|
+
&:active { color: var(--nf-color-primary, #17f); border-color: var(--nf-color-primary, #17f); }
|
|
27
|
+
&.nf-button--large { padding: 12px; font-size: 14px; }
|
|
28
|
+
&.nf-button--medium { padding: 10px 12px; font-size: 14px; }
|
|
29
|
+
&.nf-button--small { padding: 9px 12px; font-size: 12px; }
|
|
30
|
+
&.nf-button--mini { padding: 7px 12px; font-size: 12px; border-radius: 2px; }
|
|
31
|
+
|
|
32
|
+
&.is-text {
|
|
33
|
+
padding: 7px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
background: transparent;
|
|
36
|
+
border-width: 0;
|
|
37
|
+
&:hover { background-color: rgba(0, 0, 0, .05); color: rgba(0, 0, 0, .6); }
|
|
38
|
+
&:active { background-color: rgba(0, 0, 0, .2); color: rgba(0, 0, 0, .65); }
|
|
39
|
+
}
|
|
40
|
+
&.is-round { border-radius: 20px; }
|
|
41
|
+
&.is-circle {
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
padding: 7px;
|
|
44
|
+
&.nf-button--large { padding: 12px; }
|
|
45
|
+
&.nf-button--medium { padding: 10px; }
|
|
46
|
+
&.nf-button--small { padding: 9px; }
|
|
47
|
+
&.nf-button--mini { padding: 7px; }
|
|
48
|
+
}
|
|
49
|
+
&.is-loading { pointer-events: none; }
|
|
50
|
+
&.is-disabled {
|
|
51
|
+
color: rgba(0, 0, 0, .25) !important;
|
|
52
|
+
background-color: #f5f7fa !important;
|
|
53
|
+
border-color: #dcdfe6 !important;
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.nf-button--info { --nf-button-color: var(--el-color-info, #909399); }
|
|
58
|
+
&.nf-button--danger { --nf-button-color: #f45959; }
|
|
59
|
+
&.nf-button--warning { --nf-button-color: #ff882e; }
|
|
60
|
+
&.nf-button--success { --nf-button-color: #67c23a; }
|
|
61
|
+
@each $type in primary, info, danger, warning, success {
|
|
62
|
+
&.nf-button--#{$type} {
|
|
63
|
+
background-color: var(--nf-button-color);
|
|
64
|
+
border-color: var(--nf-button-color);
|
|
65
|
+
color: #fff;
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: color-mix(in srgb, var(--nf-button-color) 80%, transparent);
|
|
68
|
+
border-color: transparent;
|
|
69
|
+
}
|
|
70
|
+
&:active {
|
|
71
|
+
background-color: color-mix(in srgb, var(--nf-button-color) 90%, #000);
|
|
72
|
+
border-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
&.is-plain {
|
|
75
|
+
background-color: rgba(255, 255, 255, .05);
|
|
76
|
+
border-color: var(--nf-button-color);
|
|
77
|
+
color: var(--nf-button-color);
|
|
78
|
+
&:hover { background-color: color-mix(in srgb, var(--nf-button-color) 5%, transparent); }
|
|
79
|
+
&:active { background-color: var(--nf-button-color); color: #fff; }
|
|
80
|
+
}
|
|
81
|
+
&.is-text {
|
|
82
|
+
padding: 7px;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
color: var(--nf-button-color);
|
|
85
|
+
border-width: 0;
|
|
86
|
+
&:hover {
|
|
87
|
+
color: color-mix(in srgb, var(--nf-button-color) 80%, transparent);
|
|
88
|
+
background-color: color-mix(in srgb, var(--nf-button-color) 5%, transparent);
|
|
89
|
+
}
|
|
90
|
+
&:active {
|
|
91
|
+
background-color: color-mix(in srgb, var(--nf-button-color) 20%, transparent);
|
|
92
|
+
color: var(--nf-button-color);
|
|
93
|
+
}
|
|
94
|
+
&.is-disabled {
|
|
95
|
+
color: rgba(0, 0, 0, .3) !important;
|
|
96
|
+
border-color: transparent !important;
|
|
97
|
+
background-color: transparent !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.nf-button__icon {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
width: 1em;
|
|
107
|
+
height: 1em;
|
|
108
|
+
vertical-align: middle;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
svg { display: block; width: 1em; height: 1em; }
|
|
111
|
+
& + span { margin-left: 6px; }
|
|
112
|
+
}
|
|
113
|
+
.nf-button__loading { animation: nf-button-spin 1.5s linear infinite; }
|
|
114
|
+
}
|
|
115
|
+
@keyframes nf-button-spin { to { transform: rotate(360deg); } }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use './nf-rules';
|
|
2
|
+
.nf-conditions { max-width: 100%; overflow-x: auto; }
|
|
3
|
+
.nf-conditions-form { position: relative; padding-left: 28px; margin-left: 14px; }
|
|
4
|
+
.nf-conditions-form > .el-form-item > .el-form-item__content { display: block; }
|
|
5
|
+
.nf-conditions .condition-header { display: flex; gap: 20px; padding-bottom: 10px; }
|
|
6
|
+
.nf-conditions .remove-condition, .nf-conditions .add-condition { cursor: pointer; color: var(--nf-color-primary); }
|
|
7
|
+
.nf-conditions .remove-condition:hover, .nf-conditions .add-condition:hover { text-decoration: underline; }
|
|
8
|
+
.nf-conditions .condition-footer { padding: 8px 0; }
|
|
9
|
+
.nf-conditions .nf-also-icon.out { color: var(--el-color-success); background: var(--el-color-success-light-9); }
|