@94ai/nf-theme-oem 3.1.23 → 3.1.25

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.
@@ -0,0 +1,452 @@
1
+ .nf-date-picker {
2
+ // 月份范围
3
+ &.nf-month-range-picker {
4
+ &.el-date-range-picker {
5
+ width: 384px;
6
+ &.has-sidebar {
7
+ width: 494px;
8
+ }
9
+ .el-picker-panel__body {
10
+ min-width: fit-content;
11
+ .el-date-range-picker__content {
12
+ padding: 0;
13
+ &.is-left {
14
+ border: none;
15
+ }
16
+
17
+ .el-date-range-picker__header {
18
+ border-bottom: 1px solid #e4e4e4;
19
+ padding: 6px 12px;
20
+ div {
21
+ font-size: 14px;
22
+ color: rgba(0,0,0,0.85);
23
+ }
24
+ }
25
+ .el-month-table {
26
+ padding: 0 14px;
27
+ font-size: 12px;
28
+ margin: -1px 0 -1px 10px;
29
+ border-collapse: collapse;
30
+ width: calc(100% - 20px);
31
+
32
+ th {
33
+ border-bottom: 0;
34
+ }
35
+
36
+ td {
37
+ padding: 9px 3px;
38
+ border-bottom: 0;
39
+ > div {
40
+ height: 28px;
41
+ padding: 0;
42
+ border-radius: 0px;
43
+ }
44
+ .cell {
45
+ height: 28px;
46
+ line-height: 28px;
47
+ border-radius: 4px;
48
+ width: fit-content;
49
+ padding: 0px 9px;
50
+ color: #606266;
51
+ margin: 0 auto;
52
+
53
+ &:hover {
54
+ border: 1px solid #1177FF;
55
+ line-height: 26px;
56
+ color: #1177FF;
57
+ box-sizing: border-box;
58
+ }
59
+ }
60
+ }
61
+
62
+ td {
63
+ text-align: center;
64
+ padding: 9px 0px;
65
+ cursor: pointer;
66
+ & div {
67
+ height: 28px;
68
+ box-sizing: border-box;
69
+ }
70
+ &.today {
71
+ .cell {
72
+ color: #1177FF;
73
+ font-weight: bold;
74
+ }
75
+ &.start-date .cell,
76
+ &.end-date .cell {
77
+ color: #FFFFFF;
78
+ }
79
+ }
80
+
81
+ &.disabled {
82
+ .cell {
83
+ border: none;
84
+ background-color: #F5F7FA;
85
+ cursor: not-allowed;
86
+ line-height: 28px;
87
+ color: #C0C4CC;
88
+
89
+ &:hover {
90
+ color: #C0C4CC;
91
+ }
92
+ }
93
+ }
94
+
95
+ &.in-range div {
96
+ background-color: #F2F6FC;
97
+ &:hover {
98
+ background-color: #F2F6FC;
99
+ }
100
+ }
101
+
102
+ &.start-date .cell,
103
+ &.end-date .cell {
104
+ color: #FFFFFF;
105
+ border: none;
106
+ line-height: 26px;
107
+ background-color: #1177FF;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ // 单月
116
+ &.nf-month-picker {
117
+ width: 168px;
118
+ &.has-sidebar {
119
+ width: 278px;
120
+ }
121
+ .el-picker-panel__body {
122
+ min-width: fit-content;
123
+ .el-date-picker__header {
124
+ border-bottom: 1px solid #e4e4e4;
125
+ padding: 6px 12px;
126
+ margin: 0;
127
+ > .el-date-picker__header-label {
128
+ font-size: 14px;
129
+ color: rgba(0,0,0,0.85);
130
+ }
131
+ }
132
+ .el-picker-panel__content {
133
+ width: fit-content;
134
+ margin: 0;
135
+ .el-month-table {
136
+ padding: 0 14px;
137
+ font-size: 12px;
138
+ margin: -1px 0 -1px 10px;
139
+ border-collapse: collapse;
140
+ width: calc(100% - 20px);
141
+
142
+ th {
143
+ border-bottom: 0;
144
+ }
145
+
146
+ td {
147
+ padding: 9px 3px;
148
+ border-bottom: 0;
149
+ > div {
150
+ height: 28px;
151
+ padding: 0;
152
+ border-radius: 0;
153
+ }
154
+ .cell {
155
+ height: 28px;
156
+ line-height: 28px;
157
+ border-radius: 4px;
158
+ width: fit-content;
159
+ padding: 0px 9px;
160
+ color: #606266;
161
+ margin: 0 auto;
162
+
163
+ &:hover {
164
+ border: 1px solid #1177FF;
165
+ line-height: 26px;
166
+ color: #1177FF;
167
+ box-sizing: border-box;
168
+ }
169
+ }
170
+ &.today {
171
+ .cell {
172
+ color: #1177FF;
173
+ font-weight: bold;
174
+ }
175
+ }
176
+ &.current {
177
+ .cell {
178
+ color: white;
179
+ background-color: #1177FF;
180
+ border: none;
181
+ line-height: 26px;
182
+ }
183
+ }
184
+ &.disabled {
185
+ .cell {
186
+ line-height: 28px;
187
+ background-color: #F5F7FA;
188
+ cursor: not-allowed;
189
+ color: #C0C4CC;
190
+ border: none;
191
+
192
+ &:hover {
193
+ color: #C0C4CC;
194
+ }
195
+ }
196
+ }
197
+
198
+ }
199
+
200
+ }
201
+ }
202
+ }
203
+ }
204
+ // 单周/单日/多个独立日
205
+ &.nf-day-picker {
206
+ .el-picker-panel__body {
207
+ .el-date-picker__header {
208
+ //> .el-date-picker__header-label {
209
+ // font-size: 14px;
210
+ // color: rgba(0,0,0,0.85);
211
+ //}
212
+ }
213
+ .el-picker-panel__content {
214
+ .el-date-table {
215
+ td {
216
+ > div {
217
+ border-radius: 0px;
218
+ }
219
+ span {
220
+ border-radius: 4px;
221
+ &:hover {
222
+ color: #1177FF;
223
+ border: 1px solid #1177FF;
224
+ box-sizing: border-box;
225
+ line-height: 22px;
226
+ }
227
+ }
228
+ }
229
+ td.today {
230
+ span {
231
+ color: #1177FF;
232
+ font-weight: bold;
233
+ }
234
+ }
235
+ td.current, td.selected {
236
+ span {
237
+ color: white;
238
+ background-color: #1177FF;
239
+ border: none;
240
+ }
241
+ }
242
+ td.end-date, td.start-date {
243
+ span {
244
+ color: white;
245
+ background-color: #1177FF ;
246
+ border: none;
247
+ }
248
+ }
249
+ td.disabled {
250
+ span {
251
+ background-color: #F5F7FA;
252
+ cursor: not-allowed;
253
+ color: #C0C4CC;
254
+ border: none;
255
+ line-height: 28px;
256
+
257
+ &:hover {
258
+ color: #C0C4CC;
259
+ }
260
+ }
261
+ }
262
+
263
+ }
264
+ }
265
+ }
266
+ }
267
+ // 单年
268
+ &.nf-year-picker {
269
+ width: 192px;
270
+ &.has-sidebar {
271
+ width: 302px;
272
+ }
273
+ .el-picker-panel__body {
274
+ min-width: fit-content;
275
+ .el-date-picker__header {
276
+ border-bottom: 1px solid #e4e4e4;
277
+ padding: 6px 12px;
278
+ margin: 0;
279
+ > .el-date-picker__header-label {
280
+ font-size: 14px;
281
+ color: rgba(0,0,0,0.85);
282
+ }
283
+ }
284
+ .el-picker-panel__content {
285
+ width: fit-content;
286
+ margin: 0;
287
+ .el-year-table {
288
+ padding: 0 14px;
289
+ font-size: 12px;
290
+ margin: -1px 0 -1px 10px;
291
+ border-collapse: collapse;
292
+ width: calc(100% - 20px);
293
+
294
+ th {
295
+ border-bottom: 0;
296
+ }
297
+
298
+ td {
299
+ padding: 9px 3px;
300
+ border-bottom: 0;
301
+ > div {
302
+ height: 28px;
303
+ padding: 0;
304
+ border-radius: 0;
305
+ }
306
+ .cell {
307
+ height: 28px;
308
+ line-height: 28px;
309
+ border-radius: 4px;
310
+ width: fit-content;
311
+ padding: 0px 9px;
312
+
313
+ &:hover {
314
+ border: 1px solid #1177FF;
315
+ line-height: 26px;
316
+ color: #1177FF;
317
+ box-sizing: border-box;
318
+ }
319
+ }
320
+ &.today {
321
+ .cell {
322
+ color: #1177FF;
323
+ font-weight: bold;
324
+ }
325
+ }
326
+ &.current {
327
+ .cell {
328
+ color: white;
329
+ background-color: #1177FF;
330
+ border: none;
331
+ line-height: 26px;
332
+ }
333
+ }
334
+ &.disabled {
335
+ .cell {
336
+ background-color: #F5F7FA;
337
+ cursor: not-allowed;
338
+ color: #C0C4CC;
339
+ border: none;
340
+ line-height: 28px;
341
+
342
+ &:hover {
343
+ color: #C0C4CC;
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ // 日范围
353
+ &.nf-date-range-picker {
354
+ &.el-date-range-picker {
355
+ .el-picker-panel__body {
356
+ .el-date-range-picker__content {
357
+ .el-date-table {
358
+ padding: 0 14px;
359
+ font-size: 12px;
360
+ margin: -1px 0 -1px 10px;
361
+ border-collapse: collapse;
362
+ width: calc(100% - 20px);
363
+
364
+ th {
365
+ border-bottom: 0;
366
+ }
367
+
368
+ td {
369
+ padding: 9px 3px;
370
+ border-bottom: 0;
371
+ > div {
372
+ height: 28px;
373
+ padding: 0;
374
+ border-radius: 0;
375
+ }
376
+ span {
377
+ height: 28px;
378
+ line-height: 28px;
379
+ border-radius: 4px;
380
+ width: fit-content;
381
+ padding: 0px 9px;
382
+ color: #606266;
383
+ margin: 0 auto;
384
+ min-width: 32px;
385
+ box-sizing: border-box;
386
+
387
+ &:hover {
388
+ border: 1px solid #1177FF;
389
+ line-height: 26px;
390
+ color: #1177FF;
391
+ box-sizing: border-box;
392
+ }
393
+ }
394
+ }
395
+
396
+ td {
397
+ text-align: center;
398
+ padding: 9px 0px;
399
+ cursor: pointer;
400
+ > div {
401
+ height: 28px;
402
+ box-sizing: border-box;
403
+ border-radius: 0;
404
+ }
405
+ &.today {
406
+ span{
407
+ color: #1177FF;
408
+ font-weight: bold;
409
+ }
410
+ &.start-date span,
411
+ &.end-date span {
412
+ color: #FFFFFF;
413
+ }
414
+ }
415
+
416
+ &.disabled {
417
+ span {
418
+ border: none;
419
+ line-height: 28px;
420
+ background-color: #F5F7FA;
421
+ cursor: not-allowed;
422
+ color: #C0C4CC;
423
+
424
+
425
+ &:hover {
426
+ color: #C0C4CC;
427
+ }
428
+ }
429
+ }
430
+
431
+ &.in-range div {
432
+ background-color: #F2F6FC;
433
+ &:hover {
434
+ background-color: #F2F6FC;
435
+ }
436
+ }
437
+
438
+ &.start-date span,
439
+ &.end-date span {
440
+ color: #FFFFFF;
441
+ border: none;
442
+ line-height: 26px;
443
+ background-color: #1177FF;
444
+ }
445
+ }
446
+ }
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }
452
+
@@ -17,7 +17,7 @@
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  font-size: 12px;
20
- padding: 9px 18px;
20
+ padding: 7px 14px;
21
21
  border-bottom: 1px solid #e5e6eb;
22
22
  .el-icon-d-arrow-left,
23
23
  .el-icon-d-arrow-right,
@@ -47,7 +47,7 @@
47
47
  .nf-half-year-picker__options {
48
48
  display: grid;
49
49
  grid-template-columns: repeat(2, 1fr);
50
- padding: 14px 16px;
50
+ padding: 10px 12px;
51
51
  .nf-half-year-picker__item {
52
52
  padding: 4px;
53
53
  cursor: pointer;
@@ -55,12 +55,15 @@
55
55
 
56
56
  &:hover {
57
57
  .nf-half-year-picker__item__label {
58
- color: #409EFF;
58
+ color: #1177FF;
59
+ border: 1px solid #1177FF;
60
+ box-sizing: border-box;
61
+ line-height: 22px;
59
62
  }
60
63
  }
61
64
 
62
65
  .nf-half-year-picker__item__label {
63
- border-radius: 24px;
66
+ border-radius: 4px;
64
67
  color: #000;
65
68
  background-color: #fff;
66
69
  height: 24px;
@@ -69,26 +72,21 @@
69
72
  text-align: center;
70
73
  width: 50px;
71
74
  }
72
- }
75
+ &.nf-half-year-picker__item--active {
76
+ .nf-half-year-picker__item__label {
77
+ background-color: #1177FF;
78
+ color: white;
79
+ }
80
+ }
73
81
 
74
- .nf-half-year-picker__item--active {
75
- .nf-half-year-picker__item__label {
76
- color: #409EFF
82
+ &.nf-half-year-picker__item__today {
83
+ .nf-half-year-picker__item__label {
84
+ color: #1177FF;
85
+ font-weight: 700;
86
+ }
77
87
  }
78
88
  }
79
89
 
80
- .nf-half-year-picker__item__today:after {
81
- position: absolute;
82
- bottom: -2px;
83
- left: 50%;
84
- display: block;
85
- width: 4px;
86
- height: 4px;
87
- margin-left: -2px;
88
- background-color: #409EFF;
89
- border-radius: 50%;
90
- content: "";
91
- }
92
90
  }
93
91
  }
94
92
  }
@@ -17,7 +17,7 @@
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  font-size: 12px;
20
- padding: 9px 18px;
20
+ padding: 7px 14px;
21
21
  border-bottom: 1px solid #e5e6eb;
22
22
  .el-icon-d-arrow-left,
23
23
  .el-icon-d-arrow-right,
@@ -46,8 +46,8 @@
46
46
  }
47
47
  .nf-quarter-picker__options {
48
48
  display: grid;
49
- grid-template-columns: repeat(4, 1fr);
50
- padding: 14px 16px;
49
+ grid-template-columns: repeat(2, 1fr);
50
+ padding: 10px 12px;
51
51
  .nf-quarter-picker__item {
52
52
  padding: 4px;
53
53
  cursor: pointer;
@@ -55,12 +55,15 @@
55
55
 
56
56
  &:hover {
57
57
  .nf-quarter-picker__item__label {
58
- color: #409EFF;
58
+ color: #1177FF;
59
+ border: 1px solid #1177FF;
60
+ box-sizing: border-box;
61
+ line-height: 22px;
59
62
  }
60
63
  }
61
64
 
62
65
  .nf-quarter-picker__item__label {
63
- border-radius: 24px;
66
+ border-radius: 4px;
64
67
  color: #000;
65
68
  background-color: #fff;
66
69
  height: 24px;
@@ -69,26 +72,21 @@
69
72
  text-align: center;
70
73
  width: 50px;
71
74
  }
72
- }
75
+ &.nf-quarter-picker__item--active {
76
+ .nf-quarter-picker__item__label {
77
+ background-color: #1177FF;
78
+ color: white;
79
+ }
80
+ }
73
81
 
74
- .nf-quarter-picker__item--active {
75
- .nf-quarter-picker__item__label {
76
- color: #409EFF
82
+ &.nf-quarter-picker__item__today {
83
+ .nf-quarter-picker__item__label {
84
+ color: #1177FF;
85
+ font-weight: 700;
86
+ }
77
87
  }
78
88
  }
79
89
 
80
- .nf-quarter-picker__item__today:after {
81
- position: absolute;
82
- bottom: -2px;
83
- left: 50%;
84
- display: block;
85
- width: 4px;
86
- height: 4px;
87
- margin-left: -2px;
88
- background-color: #409EFF;
89
- border-radius: 50%;
90
- content: "";
91
- }
92
90
  }
93
91
  }
94
92
  }
@@ -1 +1,35 @@
1
- //
1
+ .nf-double-week {
2
+ &.nf-double-week-week-range {
3
+ .el-date-range-picker__header {
4
+ > div {
5
+ font-size: 14px;
6
+ color: rgba(0,0,0,0.85);
7
+ }
8
+ }
9
+ td {
10
+ span {
11
+ border-radius: 4px;
12
+ &:hover {
13
+ color: #1177FF;
14
+ border: 1px solid #1177FF;
15
+ box-sizing: border-box;
16
+ line-height: 22px;
17
+ }
18
+ }
19
+ }
20
+ td.today {
21
+ span {
22
+ color: #1177FF;
23
+ font-weight: bold;
24
+ }
25
+ }
26
+ td.end-date, td.start-date {
27
+ span {
28
+ color: white;
29
+ background-color: #1177FF ;
30
+ border: none;
31
+ }
32
+ }
33
+ }
34
+ }
35
+