@seafile/seafile-calendar 1.0.15 → 1.0.17

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.
Files changed (2) hide show
  1. package/assets/index.css +155 -88
  2. package/package.json +1 -1
package/assets/index.css CHANGED
@@ -19,7 +19,7 @@
19
19
  position: absolute;
20
20
  width: 100%;
21
21
  top: 34px;
22
- background-color: white;
22
+ background-color: var(--rc-calendar-popover-bg, #fff);
23
23
  height: 217px;
24
24
  }
25
25
  .rc-calendar-time-picker-panel {
@@ -60,7 +60,7 @@
60
60
  .rc-calendar-input {
61
61
  border: 1px solid transparent;
62
62
  width: 100%;
63
- color: #212529;
63
+ color: var(--rc-calendar-body-color, #212529);
64
64
  cursor: text;
65
65
  line-height: 1.5;
66
66
  outline: 0;
@@ -93,10 +93,10 @@
93
93
  align-items: center;
94
94
  }
95
95
  .rc-calendar-clear-btn svg {
96
- color: #666;
96
+ color: var(--rc-calendar-icon-color, #666);
97
97
  }
98
98
  .rc-calendar-clear-btn:hover {
99
- background-color: rgba(0, 0, 0, 0.04);
99
+ background-color: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
100
100
  border-radius: 4px;
101
101
  }
102
102
  .rc-calendar-picker {
@@ -108,6 +108,67 @@
108
108
  .rc-calendar-picker-hidden {
109
109
  display: none;
110
110
  }
111
+ .rc-calendar {
112
+ --rc-calendar-sf-orange: #FF8000;
113
+ --rc-calendar-sf-orange-2: #ED7109;
114
+ --rc-calendar-popover-bg: #fff;
115
+ --rc-calendar-body-color: #212529;
116
+ --rc-calendar-icon-color: #666;
117
+ --rc-calendar-icon-secondary-color: #999;
118
+ --rc-calendar-icon-btn-hover-bg-color: rgba(0, 0, 0, 0.04);
119
+ --rc-calendar-input-border-color: rgba(0, 40, 100, 0.12);
120
+ --rc-calendar-input-focus-border-color: #3e84f7;
121
+ --rc-calendar-divider-color: #eee;
122
+ --rc-calendar-disabled-bg: rgba(0, 0, 0, 0.05);
123
+ --rc-calendar-disabled-color: #c2c2c2;
124
+ --rc-calendar-out-range-color: #c2c2c2;
125
+ }
126
+ @media (prefers-color-scheme: dark) {
127
+ .rc-calendar {
128
+ --rc-calendar-popover-bg: #1c1d1f;
129
+ --rc-calendar-body-color: rgba(255, 255, 255, 0.9);
130
+ --rc-calendar-icon-color: rgba(255, 255, 255, 0.7);
131
+ --rc-calendar-icon-secondary-color: rgba(255, 255, 255, 0.5);
132
+ --rc-calendar-icon-btn-hover-bg-color: rgba(255, 255, 255, 0.1);
133
+ --rc-calendar-input-border-color: rgba(255, 255, 255, 0.1);
134
+ --rc-calendar-input-focus-border-color: #3e84f7;
135
+ --rc-calendar-divider-color: rgba(255, 255, 255, 0.1);
136
+ --rc-calendar-disabled-bg: rgba(255, 255, 255, 0.08);
137
+ --rc-calendar-disabled-color: rgba(255, 255, 255, 0.2);
138
+ --rc-calendar-out-range-color: rgba(255, 255, 255, 0.2);
139
+ }
140
+ }
141
+ /* Explicit theme values take precedence over the system preference. */
142
+ [data-bs-theme='light'] .rc-calendar,
143
+ .rc-calendar[data-bs-theme='light'] {
144
+ --rc-calendar-sf-orange: #FF8000;
145
+ --rc-calendar-sf-orange-2: #ED7109;
146
+ --rc-calendar-popover-bg: #fff;
147
+ --rc-calendar-body-color: #212529;
148
+ --rc-calendar-icon-color: #666;
149
+ --rc-calendar-icon-secondary-color: #999;
150
+ --rc-calendar-icon-btn-hover-bg-color: rgba(0, 0, 0, 0.04);
151
+ --rc-calendar-input-border-color: rgba(0, 40, 100, 0.12);
152
+ --rc-calendar-input-focus-border-color: #3e84f7;
153
+ --rc-calendar-divider-color: #eee;
154
+ --rc-calendar-disabled-bg: rgba(0, 0, 0, 0.05);
155
+ --rc-calendar-disabled-color: #c2c2c2;
156
+ --rc-calendar-out-range-color: #c2c2c2;
157
+ }
158
+ [data-bs-theme='dark'] .rc-calendar,
159
+ .rc-calendar[data-bs-theme='dark'] {
160
+ --rc-calendar-popover-bg: #1c1d1f;
161
+ --rc-calendar-body-color: rgba(255, 255, 255, 0.9);
162
+ --rc-calendar-icon-color: rgba(255, 255, 255, 0.7);
163
+ --rc-calendar-icon-secondary-color: rgba(255, 255, 255, 0.5);
164
+ --rc-calendar-icon-btn-hover-bg-color: rgba(255, 255, 255, 0.1);
165
+ --rc-calendar-input-border-color: rgba(255, 255, 255, 0.1);
166
+ --rc-calendar-input-focus-border-color: #3e84f7;
167
+ --rc-calendar-divider-color: rgba(255, 255, 255, 0.1);
168
+ --rc-calendar-disabled-bg: rgba(255, 255, 255, 0.08);
169
+ --rc-calendar-disabled-color: rgba(255, 255, 255, 0.2);
170
+ --rc-calendar-out-range-color: rgba(255, 255, 255, 0.2);
171
+ }
111
172
  .rc-calendar-picker-slide-up-enter {
112
173
  animation-duration: .3s;
113
174
  animation-fill-mode: both;
@@ -214,7 +275,7 @@
214
275
  list-style: none;
215
276
  font-size: 14px;
216
277
  text-align: left;
217
- background-color: #fff;
278
+ background-color: var(--rc-calendar-popover-bg, #fff);
218
279
  border-radius: 8px;
219
280
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
220
281
  background-clip: padding-box;
@@ -256,7 +317,7 @@
256
317
  }
257
318
  .rc-calendar-time-input-col {
258
319
  width: 89px;
259
- border-left: 1px solid #eee;
320
+ border-left: 1px solid var(--rc-calendar-divider-color, #eee);
260
321
  }
261
322
  .rc-calendar-date-input,
262
323
  .rc-calendar-time-input {
@@ -273,19 +334,20 @@
273
334
  height: 32px;
274
335
  line-height: 32px;
275
336
  width: 100%;
276
- border: 1px solid #eee;
337
+ border: 1px solid var(--rc-calendar-input-border-color);
338
+ box-shadow: none;
277
339
  border-radius: 4px;
278
340
  }
279
341
  .rc-calendar-date-input input {
280
- padding: 4px 16px;
342
+ padding: 0px 12px;
281
343
  }
282
344
  .rc-calendar-time-input input {
283
- padding: 4px 6px;
345
+ padding: 0px 12px;
284
346
  }
285
347
  .rc-calendar-date-input input:focus,
286
348
  .rc-calendar-time-input input:focus {
287
- border-color: #1991eb;
288
- box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
349
+ border-color: var(--rc-calendar-input-focus-border-color, #3e84f7);
350
+ box-shadow: none;
289
351
  outline: none;
290
352
  }
291
353
  .rc-calendar-header {
@@ -318,7 +380,7 @@
318
380
  }
319
381
  .rc-calendar-header > a:hover {
320
382
  cursor: pointer;
321
- color: #ed7109;
383
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
322
384
  }
323
385
  .rc-calendar-prev-month-btn {
324
386
  position: absolute;
@@ -334,7 +396,7 @@
334
396
  display: inline-block;
335
397
  font-size: 14px;
336
398
  font-weight: 600;
337
- color: #212529;
399
+ color: var(--rc-calendar-body-color, #212529);
338
400
  padding: 0 8px;
339
401
  line-height: 48px;
340
402
  }
@@ -342,13 +404,13 @@
342
404
  .rc-calendar-month-select:hover,
343
405
  .rc-calendar-day-select:hover {
344
406
  cursor: pointer;
345
- color: #ff9800;
407
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
346
408
  }
347
409
  .rc-calendar-year-select.rc-calendar-time-status:hover,
348
410
  .rc-calendar-month-select.rc-calendar-time-status:hover,
349
411
  .rc-calendar-day-select.rc-calendar-time-status:hover {
350
412
  cursor: pointer;
351
- color: #666;
413
+ color: var(--rc-calendar-icon-color, #666);
352
414
  }
353
415
  .rc-calendar-prev-month-btn,
354
416
  .rc-calendar-next-month-btn,
@@ -360,7 +422,7 @@
360
422
  top: 50%;
361
423
  transform: translateY(-50%);
362
424
  cursor: pointer;
363
- color: #999;
425
+ color: var(--rc-calendar-icon-secondary-color, #999);
364
426
  font-family: Arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'Microsoft Sans Serif', sans-serif;
365
427
  font-size: 16px;
366
428
  display: -ms-flexbox;
@@ -376,8 +438,8 @@
376
438
  .rc-calendar-next-month-btn:hover,
377
439
  .rc-calendar-prev-year-btn:hover,
378
440
  .rc-calendar-next-year-btn:hover {
379
- color: #999;
380
- background-color: rgba(0, 0, 0, 0.04);
441
+ color: var(--rc-calendar-icon-secondary-color, #999);
442
+ background-color: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
381
443
  }
382
444
  .rc-calendar-next-year-btn {
383
445
  right: 0;
@@ -390,6 +452,7 @@
390
452
  height: 260px;
391
453
  }
392
454
  .rc-calendar table {
455
+ table-layout: auto;
393
456
  border-collapse: collapse;
394
457
  max-width: 100%;
395
458
  background-color: transparent;
@@ -398,6 +461,9 @@
398
461
  .rc-calendar table td {
399
462
  padding: 0;
400
463
  }
464
+ .rc-calendar table tr {
465
+ height: 1.75rem !important;
466
+ }
401
467
  .rc-calendar table,
402
468
  .rc-calendar td,
403
469
  .rc-calendar th,
@@ -417,7 +483,7 @@
417
483
  .rc-calendar-column-header-inner {
418
484
  display: block;
419
485
  font-weight: normal;
420
- color: #999;
486
+ color: var(--rc-calendar-icon-secondary-color, #999);
421
487
  }
422
488
  .rc-calendar-week-number-header .rc-calendar-column-header-inner {
423
489
  display: none;
@@ -428,7 +494,7 @@
428
494
  }
429
495
  .rc-calendar-date {
430
496
  display: block;
431
- color: #212529;
497
+ color: var(--rc-calendar-body-color, #212529);
432
498
  border-radius: 4px;
433
499
  width: 32px;
434
500
  height: 32px;
@@ -439,25 +505,26 @@
439
505
  margin: 2px;
440
506
  }
441
507
  .rc-calendar-date:hover {
442
- background: #f5f5f5;
508
+ background: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
443
509
  border-radius: 50%;
444
510
  cursor: pointer;
445
511
  }
446
512
  .rc-calendar-selected-date .rc-calendar-date {
447
- background: #ff9800;
513
+ background: var(--rc-calendar-sf-orange, #ff8000);
448
514
  border-radius: 50%;
449
515
  color: #fff;
450
516
  }
451
517
  .rc-calendar-selected-date .rc-calendar-date:hover {
452
- background: #ff9800;
518
+ background: var(--rc-calendar-sf-orange, #ff8000);
453
519
  border-radius: 50%;
454
520
  }
455
521
  .rc-calendar-disabled-cell .rc-calendar-date {
456
522
  cursor: not-allowed;
457
- background: #f3f3f3;
523
+ background: var(--rc-calendar-disabled-bg);
458
524
  border-radius: 0;
459
- color: #bcbcbc;
525
+ color: var(--rc-calendar-disabled-color);
460
526
  width: auto;
527
+ margin: 2px 0;
461
528
  }
462
529
  .rc-calendar-disabled-cell-first-of-row .rc-calendar-date {
463
530
  border-bottom-left-radius: 4px;
@@ -469,15 +536,15 @@
469
536
  }
470
537
  .rc-calendar-last-month-cell .rc-calendar-date,
471
538
  .rc-calendar-next-month-btn-day .rc-calendar-date {
472
- color: #bbb;
539
+ color: var(--rc-calendar-out-range-color);
473
540
  }
474
541
  .rc-calendar-today .rc-calendar-date {
475
- border: 1px solid #ff9800;
542
+ border: 1px solid var(--rc-calendar-sf-orange, #ff8000);
476
543
  border-radius: 50%;
477
544
  }
478
545
  .rc-calendar-right-panel {
479
546
  height: inherit;
480
- border-left: 1px solid #eee;
547
+ border-left: 1px solid var(--rc-calendar-divider-color, #eee);
481
548
  }
482
549
  .rc-calendar-right-panel-header {
483
550
  display: -ms-flexbox;
@@ -486,7 +553,7 @@
486
553
  justify-content: center;
487
554
  -ms-flex-align: center;
488
555
  align-items: center;
489
- color: #212529;
556
+ color: var(--rc-calendar-body-color, #212529);
490
557
  font-weight: 600;
491
558
  }
492
559
  .rc-calendar-right-panel-body {
@@ -516,17 +583,17 @@
516
583
  display: inline-block;
517
584
  text-align: center;
518
585
  line-height: 24px;
519
- color: #212529;
586
+ color: var(--rc-calendar-body-color, #212529);
520
587
  font-weight: 400;
521
588
  border-radius: 4px;
522
589
  }
523
590
  .rc-calendar-right-panel-item-text:hover {
524
- background: #f5f5f5;
525
- color: #212529;
591
+ color: var(--rc-calendar-body-color, #212529);
592
+ background: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
526
593
  }
527
594
  .rc-calendar-right-panel-item-selected,
528
595
  .rc-calendar-right-panel-item-selected:hover {
529
- background: #ff9800;
596
+ background: var(--rc-calendar-sf-orange, #ff8000);
530
597
  border-radius: 4px;
531
598
  color: #fff;
532
599
  }
@@ -535,11 +602,11 @@
535
602
  height: 0;
536
603
  }
537
604
  .rc-calendar-right-panel-item-current {
538
- border: 1px solid #ff9800;
605
+ border: 1px solid var(--rc-calendar-sf-orange, #ff8000);
539
606
  border-radius: 4px;
540
607
  }
541
608
  .rc-calendar-footer {
542
- border-top: 1px solid #eee;
609
+ border-top: 1px solid var(--rc-calendar-divider-color, #eee);
543
610
  padding: 8px 0;
544
611
  text-align: center;
545
612
  position: relative;
@@ -562,18 +629,18 @@
562
629
  .rc-calendar-time-picker-btn {
563
630
  display: inline-block;
564
631
  text-align: center;
565
- color: #ed7109;
632
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
566
633
  }
567
634
  .rc-calendar-today-btn:hover,
568
635
  .rc-calendar-ok-btn:hover,
569
636
  .rc-calendar-time-picker-btn:hover {
570
637
  cursor: pointer;
571
- color: #ff9800;
638
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
572
639
  }
573
640
  .rc-calendar-today-btn-disabled,
574
641
  .rc-calendar-ok-btn-disabled,
575
642
  .rc-calendar-time-picker-btn-disabled {
576
- color: #bbb;
643
+ color: var(--rc-calendar-disabled-color);
577
644
  }
578
645
  .rc-calendar-today-btn {
579
646
  padding-left: 0;
@@ -584,7 +651,7 @@
584
651
  top: 0;
585
652
  bottom: 0;
586
653
  right: 0;
587
- background: #ffffff;
654
+ background: var(--rc-calendar-popover-bg, #fff);
588
655
  z-index: 10;
589
656
  position: absolute;
590
657
  outline: none;
@@ -599,7 +666,7 @@
599
666
  -ms-user-select: none;
600
667
  user-select: none;
601
668
  -webkit-user-select: none;
602
- border-bottom: 1px solid #ccc;
669
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
603
670
  }
604
671
  .rc-calendar-time-panel-body {
605
672
  padding: 9px 10px 10px;
@@ -637,11 +704,11 @@
637
704
  cursor: pointer;
638
705
  }
639
706
  .rc-calendar-time-panel-selected-cell .rc-calendar-time-panel-time {
640
- background: #f09f3f;
707
+ background: var(--rc-calendar-sf-orange, #FF8000);
641
708
  color: #fff;
642
709
  }
643
710
  .rc-calendar-time-panel-selected-cell .rc-calendar-time-panel-time:hover {
644
- background: #f09f3f;
711
+ background: var(--rc-calendar-sf-orange, #FF8000);
645
712
  color: #fff;
646
713
  }
647
714
  .rc-calendar-month-panel {
@@ -650,7 +717,7 @@
650
717
  bottom: 0;
651
718
  right: 0;
652
719
  width: 100%;
653
- background: #ffffff;
720
+ background: var(--rc-calendar-popover-bg, #fff);
654
721
  z-index: 10;
655
722
  position: absolute;
656
723
  outline: none;
@@ -680,7 +747,7 @@
680
747
  -ms-user-select: none;
681
748
  user-select: none;
682
749
  -webkit-user-select: none;
683
- border-bottom: 1px solid #eee;
750
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
684
751
  }
685
752
  .rc-calendar-month-panel-header > a {
686
753
  display: -ms-inline-flexbox;
@@ -692,22 +759,22 @@
692
759
  cursor: pointer;
693
760
  }
694
761
  .rc-calendar-month-panel-year-select:hover {
695
- color: #ff9800;
762
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
696
763
  }
697
764
  .rc-calendar-month-panel-prev-year-btn,
698
765
  .rc-calendar-month-panel-next-year-btn {
699
766
  width: 24px;
700
767
  height: 24px;
701
768
  border-radius: 4px;
702
- color: #999;
769
+ color: var(--rc-calendar-icon-secondary-color, #999);
703
770
  position: absolute;
704
771
  top: 50%;
705
772
  transform: translateY(-50%);
706
773
  }
707
774
  .rc-calendar-month-panel-prev-year-btn:hover,
708
775
  .rc-calendar-month-panel-next-year-btn:hover {
709
- color: #999;
710
- background-color: #f5f5f5;
776
+ color: var(--rc-calendar-icon-secondary-color, #999);
777
+ background-color: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
711
778
  }
712
779
  .rc-calendar-month-panel-next-year-btn {
713
780
  right: 16px;
@@ -737,7 +804,7 @@
737
804
  padding: 9px 10px 10px;
738
805
  }
739
806
  .rc-calendar-month-panel-footer {
740
- border-top: 1px solid #ccc;
807
+ border-top: 1px solid var(--rc-calendar-divider-color, #eee);
741
808
  line-height: 38px;
742
809
  }
743
810
  .rc-calendar-month-panel-table {
@@ -753,7 +820,7 @@
753
820
  display: block;
754
821
  width: 64px;
755
822
  margin: 0 auto;
756
- color: #212529;
823
+ color: var(--rc-calendar-body-color, #212529);
757
824
  border-radius: 4px;
758
825
  height: 36px;
759
826
  padding: 0;
@@ -762,22 +829,22 @@
762
829
  text-align: center;
763
830
  }
764
831
  .rc-calendar-month-panel-cell .rc-calendar-month-panel-month:hover {
765
- background: #f5f5f5;
832
+ background: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
766
833
  cursor: pointer;
767
834
  }
768
835
  .rc-calendar-month-panel-cell-disabled .rc-calendar-month-panel-month {
769
- color: #bbb;
836
+ color: var(--rc-calendar-disabled-color);
770
837
  }
771
838
  .rc-calendar-month-panel-cell-disabled .rc-calendar-month-panel-month:hover {
772
- background: white;
839
+ background: var(--rc-calendar-disabled-bg);
773
840
  cursor: not-allowed;
774
841
  }
775
842
  .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month {
776
- background: #ff8000;
843
+ background: var(--rc-calendar-sf-orange, #FF8000);
777
844
  color: #fff;
778
845
  }
779
846
  .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month:hover {
780
- background: #ff8000;
847
+ background: var(--rc-calendar-sf-orange, #FF8000);
781
848
  color: #fff;
782
849
  }
783
850
  .rc-calendar-month-header-wrap {
@@ -790,7 +857,7 @@
790
857
  bottom: 0;
791
858
  right: 0;
792
859
  width: 100%;
793
- background: #ffffff;
860
+ background: var(--rc-calendar-popover-bg, #fff);
794
861
  z-index: 10;
795
862
  position: absolute;
796
863
  outline: none;
@@ -819,7 +886,7 @@
819
886
  -ms-user-select: none;
820
887
  user-select: none;
821
888
  -webkit-user-select: none;
822
- border-bottom: 1px solid #eee;
889
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
823
890
  }
824
891
  .rc-calendar-year-panel-header > a {
825
892
  display: -ms-inline-flexbox;
@@ -832,7 +899,7 @@
832
899
  cursor: pointer;
833
900
  }
834
901
  .rc-calendar-year-panel-decade-select:hover {
835
- color: #ff9800;
902
+ color: var(--rc-calendar-sf-orange-2, #ed7109);
836
903
  }
837
904
  .rc-calendar-year-panel-prev-decade-btn,
838
905
  .rc-calendar-year-panel-next-decade-btn {
@@ -842,7 +909,7 @@
842
909
  top: 50%;
843
910
  transform: translateY(-50%);
844
911
  border-radius: 4px;
845
- color: #999;
912
+ color: var(--rc-calendar-icon-secondary-color, #999);
846
913
  -webkit-user-select: none;
847
914
  -moz-user-select: none;
848
915
  -ms-user-select: none;
@@ -850,8 +917,8 @@
850
917
  }
851
918
  .rc-calendar-year-panel-prev-decade-btn:hover,
852
919
  .rc-calendar-year-panel-next-decade-btn:hover {
853
- color: #999;
854
- background-color: #f5f5f5;
920
+ color: var(--rc-calendar-icon-secondary-color, #999);
921
+ background-color: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
855
922
  }
856
923
  .rc-calendar-year-panel-next-decade-btn {
857
924
  right: 16px;
@@ -878,7 +945,7 @@
878
945
  padding: 9px 10px 10px;
879
946
  }
880
947
  .rc-calendar-year-panel-footer {
881
- border-top: 1px solid #ccc;
948
+ border-top: 1px solid var(--rc-calendar-divider-color);
882
949
  line-height: 38px;
883
950
  }
884
951
  .rc-calendar-year-panel-table {
@@ -894,7 +961,7 @@
894
961
  display: block;
895
962
  width: 64px;
896
963
  margin: 0 auto;
897
- color: #212529;
964
+ color: var(--rc-calendar-body-color, #212529);
898
965
  border-radius: 4px;
899
966
  height: 36px;
900
967
  padding: 0;
@@ -903,16 +970,16 @@
903
970
  text-align: center;
904
971
  }
905
972
  .rc-calendar-year-panel-year:hover {
906
- color: #212529;
907
- background: #f5f5f5;
973
+ color: var(--rc-calendar-body-color, #212529);
974
+ background: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
908
975
  cursor: pointer;
909
976
  }
910
977
  .rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year {
911
- background: #ff8000;
978
+ background: var(--rc-calendar-sf-orange, #FF8000);
912
979
  color: #fff;
913
980
  }
914
981
  .rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year:hover {
915
- background: #ff8000;
982
+ background: var(--rc-calendar-sf-orange, #FF8000);
916
983
  color: #fff;
917
984
  }
918
985
  .rc-calendar-decade-panel {
@@ -921,7 +988,7 @@
921
988
  bottom: 0;
922
989
  right: 0;
923
990
  width: 100%;
924
- background: #ffffff;
991
+ background: var(--rc-calendar-popover-bg, #fff);
925
992
  z-index: 10;
926
993
  position: absolute;
927
994
  outline: none;
@@ -948,7 +1015,7 @@
948
1015
  -ms-user-select: none;
949
1016
  user-select: none;
950
1017
  -webkit-user-select: none;
951
- border-bottom: 1px solid #eee;
1018
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
952
1019
  }
953
1020
  .rc-calendar-decade-panel-header > a {
954
1021
  display: -ms-inline-flexbox;
@@ -960,22 +1027,22 @@
960
1027
  cursor: pointer;
961
1028
  }
962
1029
  .rc-calendar-decade-panel-century {
963
- color: #212529;
1030
+ color: var(--rc-calendar-body-color, #212529);
964
1031
  }
965
1032
  .rc-calendar-decade-panel-prev-century-btn,
966
1033
  .rc-calendar-decade-panel-next-century-btn {
967
1034
  width: 24px;
968
1035
  height: 24px;
969
1036
  border-radius: 4px;
970
- color: #999;
1037
+ color: var(--rc-calendar-icon-secondary-color, #999);
971
1038
  position: absolute;
972
1039
  top: 50%;
973
1040
  transform: translateY(-50%);
974
1041
  }
975
1042
  .rc-calendar-decade-panel-prev-century-btn:hover,
976
1043
  .rc-calendar-decade-panel-next-century-btn:hover {
977
- color: #999;
978
- background-color: #f5f5f5;
1044
+ color: var(--rc-calendar-icon-secondary-color, #999);
1045
+ background-color: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
979
1046
  }
980
1047
  .rc-calendar-decade-panel-next-century-btn {
981
1048
  right: 16px;
@@ -989,7 +1056,7 @@
989
1056
  padding: 9px 10px 10px;
990
1057
  }
991
1058
  .rc-calendar-decade-panel-footer {
992
- border-top: 1px solid #ccc;
1059
+ border-top: 1px solid var(--rc-calendar-divider-color, #eee);
993
1060
  line-height: 38px;
994
1061
  }
995
1062
  .rc-calendar-decade-panel-table {
@@ -1000,7 +1067,7 @@
1000
1067
  }
1001
1068
  .rc-calendar-decade-panel-cell {
1002
1069
  text-align: center;
1003
- color: #212529;
1070
+ color: var(--rc-calendar-body-color, #212529);
1004
1071
  }
1005
1072
  .rc-calendar-decade-panel-cell a:hover {
1006
1073
  color: inherit;
@@ -1008,7 +1075,7 @@
1008
1075
  .rc-calendar-decade-panel-decade {
1009
1076
  display: block;
1010
1077
  margin: 0 auto;
1011
- color: #212529;
1078
+ color: var(--rc-calendar-body-color, #212529);
1012
1079
  border-radius: 4px;
1013
1080
  height: 36px;
1014
1081
  padding: 0;
@@ -1018,15 +1085,15 @@
1018
1085
  width: 105px;
1019
1086
  }
1020
1087
  .rc-calendar-decade-panel-decade:hover {
1021
- background: #f5f5f5;
1088
+ background: var(--rc-calendar-icon-btn-hover-bg-color, rgba(0, 0, 0, 0.04));
1022
1089
  cursor: pointer;
1023
1090
  }
1024
1091
  .rc-calendar-decade-panel-selected-cell .rc-calendar-decade-panel-decade {
1025
- background: #ff8000;
1092
+ background: var(--rc-calendar-sf-orange, #FF8000);
1026
1093
  color: #fff;
1027
1094
  }
1028
1095
  .rc-calendar-decade-panel-selected-cell .rc-calendar-decade-panel-decade:hover {
1029
- background: #ff8000;
1096
+ background: var(--rc-calendar-sf-orange, #FF8000);
1030
1097
  color: #fff;
1031
1098
  }
1032
1099
  .rc-calendar-decade-panel-last-century-cell .rc-calendar-decade-panel-decade,
@@ -1035,7 +1102,7 @@
1035
1102
  -ms-user-select: none;
1036
1103
  user-select: none;
1037
1104
  -webkit-user-select: none;
1038
- color: rgba(0, 0, 0, 0.25);
1105
+ color: var(--rc-calendar-out-range-color);
1039
1106
  }
1040
1107
  .rc-calendar-range {
1041
1108
  width: 502px;
@@ -1055,7 +1122,7 @@
1055
1122
  float: left;
1056
1123
  }
1057
1124
  .rc-calendar-range-left .rc-calendar-time-picker-panel-select:last-child {
1058
- border-right: 1px solid #e9e9e9;
1125
+ border-right: 1px solid var(--rc-calendar-divider-color, #eee);
1059
1126
  }
1060
1127
  .rc-calendar-range-right {
1061
1128
  float: right;
@@ -1064,7 +1131,7 @@
1064
1131
  left: 21px;
1065
1132
  }
1066
1133
  .rc-calendar-range-right .rc-calendar-time-picker-panel-select:first-child {
1067
- border-left: 1px solid #e9e9e9;
1134
+ border-left: 1px solid var(--rc-calendar-divider-color, #eee);
1068
1135
  }
1069
1136
  .rc-calendar-range-middle {
1070
1137
  position: absolute;
@@ -1092,7 +1159,7 @@
1092
1159
  .rc-calendar-range .rc-calendar-decade-panel-body,
1093
1160
  .rc-calendar-range .rc-calendar-year-panel-body,
1094
1161
  .rc-calendar-range .rc-calendar-month-panel-body {
1095
- border-bottom: 1px solid #e9e9e9;
1162
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
1096
1163
  }
1097
1164
  .rc-calendar-range.rc-calendar-week-number {
1098
1165
  width: 574px;
@@ -1152,7 +1219,7 @@
1152
1219
  -ms-user-select: none;
1153
1220
  user-select: none;
1154
1221
  -webkit-user-select: none;
1155
- border-bottom: 1px solid #ccc;
1222
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
1156
1223
  overflow: hidden;
1157
1224
  }
1158
1225
  .rc-calendar-full-header-month-select,
@@ -1178,9 +1245,9 @@
1178
1245
  float: left;
1179
1246
  height: 28px;
1180
1247
  line-height: 24px;
1181
- border: 1px solid #d9d9d9;
1248
+ border: 1px solid var(--rc-calendar-input-border-color);
1182
1249
  padding: 0 10px;
1183
- color: #666;
1250
+ color: var(--rc-calendar-icon-color, #666);
1184
1251
  }
1185
1252
  .rc-calendar-full-header-switcher > span:first-child {
1186
1253
  border-top-left-radius: 4px;
@@ -1213,14 +1280,14 @@
1213
1280
  border-radius: 0;
1214
1281
  margin: 0 4px;
1215
1282
  border: none;
1216
- border-top: 2px solid #eee;
1283
+ border-top: 2px solid var(--rc-calendar-divider-color);
1217
1284
  text-align: right;
1218
1285
  padding-right: 8px;
1219
1286
  }
1220
1287
  .rc-calendar-fullscreen .rc-calendar-selected-day .rc-calendar-date,
1221
1288
  .rc-calendar-fullscreen .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month {
1222
1289
  background-color: #fcecd9;
1223
- color: #666;
1290
+ color: var(--rc-calendar-icon-color, #666);
1224
1291
  }
1225
1292
  .rc-calendar-fullscreen .rc-calendar-today .rc-calendar-date,
1226
1293
  .rc-calendar-fullscreen .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-calendar",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "React Calendar",
5
5
  "keywords": [
6
6
  "react",