@seafile/seafile-calendar 1.0.4 → 1.0.5

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/assets/index.css CHANGED
@@ -60,7 +60,7 @@
60
60
  .rc-calendar-input {
61
61
  border: 1px solid transparent;
62
62
  width: 100%;
63
- color: #333;
63
+ color: #212529;
64
64
  cursor: text;
65
65
  line-height: 1.5;
66
66
  outline: 0;
@@ -212,12 +212,12 @@
212
212
  position: relative;
213
213
  outline: none;
214
214
  font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
215
- width: 260px;
215
+ width: 272px;
216
216
  list-style: none;
217
217
  font-size: 14px;
218
218
  text-align: left;
219
219
  background-color: #fff;
220
- border-radius: 3px;
220
+ border-radius: 4px;
221
221
  box-shadow: 0 1px 5px #ccc;
222
222
  background-clip: padding-box;
223
223
  border: 1px solid #ccc;
@@ -229,7 +229,7 @@
229
229
  /* Footer */
230
230
  }
231
231
  .rc-calendar-with-time-panel {
232
- width: 349px;
232
+ width: 363px;
233
233
  }
234
234
  .rc-calendar-panel {
235
235
  display: -ms-flexbox;
@@ -243,7 +243,7 @@
243
243
  }
244
244
  .rc-calendar-date-panel {
245
245
  display: block;
246
- width: 260px;
246
+ width: 272px;
247
247
  }
248
248
  .rc-calendar-inputs {
249
249
  display: -ms-flexbox;
@@ -267,15 +267,21 @@
267
267
  align-items: center;
268
268
  height: 100%;
269
269
  padding: 12px 12px 0 12px;
270
+ margin-bottom: 4px;
270
271
  }
271
272
  .rc-calendar-date-input input,
272
273
  .rc-calendar-time-input input {
273
- height: 30px;
274
+ height: 32px;
275
+ line-height: 32px;
274
276
  width: 100%;
275
- padding: 4px 6px;
276
277
  border: 1px solid #eee;
277
- border-radius: 3px;
278
- line-height: 1.5;
278
+ border-radius: 4px;
279
+ }
280
+ .rc-calendar-date-input input {
281
+ padding: 4px 16px;
282
+ }
283
+ .rc-calendar-time-input input {
284
+ padding: 4px 6px;
279
285
  }
280
286
  .rc-calendar-date-input input:focus,
281
287
  .rc-calendar-time-input input:focus {
@@ -319,18 +325,10 @@
319
325
  position: absolute;
320
326
  left: 25px;
321
327
  }
322
- .rc-calendar-prev-month-btn:after {
323
- width: 20px;
324
- content: '‹';
325
- }
326
328
  .rc-calendar-next-month-btn {
327
329
  position: absolute;
328
330
  right: 25px;
329
331
  }
330
- .rc-calendar-next-month-btn:after {
331
- width: 20px;
332
- content: '›';
333
- }
334
332
  .rc-calendar-year-select,
335
333
  .rc-calendar-month-select,
336
334
  .rc-calendar-day-select {
@@ -357,8 +355,8 @@
357
355
  .rc-calendar-next-month-btn,
358
356
  .rc-calendar-prev-year-btn,
359
357
  .rc-calendar-next-year-btn {
360
- width: 20px;
361
- height: 20px;
358
+ width: 24px;
359
+ height: 24px;
362
360
  position: absolute;
363
361
  top: 14px;
364
362
  cursor: pointer;
@@ -367,6 +365,10 @@
367
365
  font-size: 16px;
368
366
  display: -ms-flexbox;
369
367
  display: flex;
368
+ -ms-flex-pack: center;
369
+ justify-content: center;
370
+ -ms-flex-align: center;
371
+ align-items: center;
370
372
  line-height: 18px;
371
373
  border-radius: 4px;
372
374
  }
@@ -375,25 +377,17 @@
375
377
  .rc-calendar-prev-year-btn:hover,
376
378
  .rc-calendar-next-year-btn:hover {
377
379
  color: #999;
378
- background-color: #f5f5f5;
380
+ background-color: rgba(0, 0, 0, 0.04);
379
381
  }
380
382
  .rc-calendar-next-year-btn {
381
383
  right: 0;
382
384
  }
383
- .rc-calendar-next-year-btn:after {
384
- width: 20px;
385
- content: '»';
386
- }
387
385
  .rc-calendar-prev-year-btn {
388
386
  left: 0;
389
387
  }
390
- .rc-calendar-prev-year-btn:after {
391
- width: 20px;
392
- content: '«';
393
- }
394
388
  .rc-calendar-body {
395
389
  padding: 0 12px;
396
- height: 264px;
390
+ height: 260px;
397
391
  }
398
392
  .rc-calendar table {
399
393
  border-collapse: collapse;
@@ -438,11 +432,11 @@
438
432
  border-radius: 4px;
439
433
  width: 32px;
440
434
  height: 32px;
435
+ line-height: 32px;
441
436
  padding: 0;
442
437
  background: transparent;
443
- line-height: 32px;
444
438
  text-align: center;
445
- margin-bottom: 4px;
439
+ margin: 2px;
446
440
  }
447
441
  .rc-calendar-date:hover {
448
442
  background: #f5f5f5;
@@ -496,7 +490,7 @@
496
490
  font-weight: 600;
497
491
  }
498
492
  .rc-calendar-right-panel-body {
499
- height: 264px;
493
+ height: 260px;
500
494
  display: -ms-flexbox;
501
495
  display: flex;
502
496
  padding: 0 4px 16px;
@@ -524,7 +518,7 @@
524
518
  line-height: 24px;
525
519
  color: #212529;
526
520
  font-weight: 400;
527
- border-radius: 3px;
521
+ border-radius: 4px;
528
522
  }
529
523
  .rc-calendar-right-panel-item-text:hover {
530
524
  background: #f5f5f5;
@@ -702,8 +696,8 @@
702
696
  }
703
697
  .rc-calendar-month-panel-prev-year-btn,
704
698
  .rc-calendar-month-panel-next-year-btn {
705
- width: 20px;
706
- height: 20px;
699
+ width: 24px;
700
+ height: 24px;
707
701
  border-radius: 4px;
708
702
  color: #999;
709
703
  position: absolute;
@@ -717,10 +711,6 @@
717
711
  .rc-calendar-month-panel-next-year-btn {
718
712
  right: 16px;
719
713
  }
720
- .rc-calendar-month-panel-next-year-btn:after {
721
- content: '»';
722
- transform: translateY(-1px);
723
- }
724
714
  .rc-calendar-month-panel-prev-year-btn {
725
715
  -webkit-user-select: none;
726
716
  -moz-user-select: none;
@@ -728,10 +718,6 @@
728
718
  user-select: none;
729
719
  left: 16px;
730
720
  }
731
- .rc-calendar-month-panel-prev-year-btn:after {
732
- content: '«';
733
- transform: translateY(-1px);
734
- }
735
721
  .rc-calendar-month-panel .rc-calendar-month-panel-year-select {
736
722
  width: 180px;
737
723
  }
@@ -849,12 +835,16 @@
849
835
  }
850
836
  .rc-calendar-year-panel-prev-decade-btn,
851
837
  .rc-calendar-year-panel-next-decade-btn {
852
- width: 20px;
853
- height: 20px;
838
+ width: 24px;
839
+ height: 24px;
854
840
  position: absolute;
855
841
  top: 14px;
856
842
  border-radius: 4px;
857
843
  color: #999;
844
+ -webkit-user-select: none;
845
+ -moz-user-select: none;
846
+ -ms-user-select: none;
847
+ user-select: none;
858
848
  }
859
849
  .rc-calendar-year-panel-prev-decade-btn:hover,
860
850
  .rc-calendar-year-panel-next-decade-btn:hover {
@@ -864,21 +854,9 @@
864
854
  .rc-calendar-year-panel-next-decade-btn {
865
855
  right: 16px;
866
856
  }
867
- .rc-calendar-year-panel-next-decade-btn:after {
868
- content: '»';
869
- transform: translateY(-1px);
870
- }
871
857
  .rc-calendar-year-panel-prev-decade-btn {
872
- -webkit-user-select: none;
873
- -moz-user-select: none;
874
- -ms-user-select: none;
875
- user-select: none;
876
858
  left: 16px;
877
859
  }
878
- .rc-calendar-year-panel-prev-decade-btn:after {
879
- content: '«';
880
- transform: translateY(-1px);
881
- }
882
860
  .rc-calendar-year-panel .rc-calendar-year-panel-decade-select {
883
861
  width: 180px;
884
862
  }
@@ -984,8 +962,8 @@
984
962
  }
985
963
  .rc-calendar-decade-panel-prev-century-btn,
986
964
  .rc-calendar-decade-panel-next-century-btn {
987
- width: 20px;
988
- height: 20px;
965
+ width: 24px;
966
+ height: 24px;
989
967
  border-radius: 4px;
990
968
  color: #999;
991
969
  position: absolute;
@@ -999,17 +977,9 @@
999
977
  .rc-calendar-decade-panel-next-century-btn {
1000
978
  right: 16px;
1001
979
  }
1002
- .rc-calendar-decade-panel-next-century-btn:after {
1003
- content: '»';
1004
- transform: translateY(-1px);
1005
- }
1006
980
  .rc-calendar-decade-panel-prev-century-btn {
1007
981
  left: 16px;
1008
982
  }
1009
- .rc-calendar-decade-panel-prev-century-btn:after {
1010
- content: '«';
1011
- transform: translateY(-1px);
1012
- }
1013
983
  .rc-calendar-decade-panel-body {
1014
984
  -ms-flex: 1;
1015
985
  flex: 1;