@seafile/seafile-calendar 1.0.24 → 1.0.26-alphaa.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/assets/index.css CHANGED
@@ -15,6 +15,20 @@
15
15
  content: '';
16
16
  clear: both;
17
17
  }
18
+ .rc-calendar-input-wrap a {
19
+ position: absolute;
20
+ top: 0;
21
+ right: 12px;
22
+ bottom: 0;
23
+ height: 32px;
24
+ line-height: 32px;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+ -ms-flex-align: center;
28
+ align-items: center;
29
+ -ms-flex-pack: center;
30
+ justify-content: center;
31
+ }
18
32
  .rc-calendar-time-picker {
19
33
  position: absolute;
20
34
  width: 100%;
@@ -76,23 +90,20 @@
76
90
  color: #868e96;
77
91
  }
78
92
  .rc-calendar-clear-btn {
79
- z-index: inherit;
80
- position: absolute;
81
- right: 6px;
82
- cursor: pointer;
83
- overflow: hidden;
84
93
  width: 20px;
85
94
  height: 20px;
86
- top: 6px;
87
- margin: 0;
88
95
  display: -ms-flexbox;
89
96
  display: flex;
90
97
  -ms-flex-pack: center;
91
98
  justify-content: center;
92
99
  -ms-flex-align: center;
93
100
  align-items: center;
101
+ cursor: pointer;
102
+ overflow: hidden;
94
103
  }
95
104
  .rc-calendar-clear-btn svg {
105
+ height: 14px;
106
+ width: 14px;
96
107
  color: var(--rc-calendar-icon-color, #666);
97
108
  }
98
109
  .rc-calendar-clear-btn:hover {
@@ -125,23 +136,6 @@
125
136
  --rc-calendar-disabled-color: #c2c2c2;
126
137
  --rc-calendar-out-range-color: #c2c2c2;
127
138
  }
128
- @media (prefers-color-scheme: dark) {
129
- .rc-calendar {
130
- --rc-calendar-popover-bg: #1c1d1f;
131
- --rc-calendar-popover-border-color: rgba(255, 255, 255, 0.1);
132
- --rc-calendar-popover-box-shadow: none;
133
- --rc-calendar-body-color: rgba(255, 255, 255, 0.9);
134
- --rc-calendar-icon-color: rgba(255, 255, 255, 0.7);
135
- --rc-calendar-icon-secondary-color: rgba(255, 255, 255, 0.5);
136
- --rc-calendar-icon-btn-hover-bg-color: rgba(255, 255, 255, 0.1);
137
- --rc-calendar-input-border-color: rgba(255, 255, 255, 0.1);
138
- --rc-calendar-input-focus-border-color: #3e84f7;
139
- --rc-calendar-divider-color: rgba(255, 255, 255, 0.1);
140
- --rc-calendar-disabled-bg: rgba(255, 255, 255, 0.08);
141
- --rc-calendar-disabled-color: rgba(255, 255, 255, 0.2);
142
- --rc-calendar-out-range-color: rgba(255, 255, 255, 0.2);
143
- }
144
- }
145
139
  /* Explicit theme values take precedence over the system preference. */
146
140
  [data-bs-theme='light'] .rc-calendar,
147
141
  .rc-calendar[data-bs-theme='light'] {
@@ -290,52 +284,43 @@
290
284
  border: 1px solid var(--rc-calendar-popover-border-color, #eee);
291
285
  line-height: 1.5;
292
286
  overflow: hidden;
287
+ width: 278px;
293
288
  /* Layout wrappers */
294
- /* Top inputs row */
295
289
  /* Date grid area */
296
290
  /* Right time panel */
297
291
  /* Footer */
298
292
  }
299
293
  .rc-calendar-with-time-panel {
300
- width: 367px;
294
+ width: 404px;
301
295
  }
302
296
  .rc-calendar-panel {
303
297
  display: -ms-flexbox;
304
298
  display: flex;
305
- -ms-flex-direction: column;
306
- flex-direction: column;
307
- }
308
- .rc-calendar-date-panel-container {
309
- display: -ms-flexbox;
310
- display: flex;
299
+ -ms-flex-align: stretch;
300
+ align-items: stretch;
311
301
  }
312
302
  .rc-calendar-date-panel {
313
303
  display: block;
314
- width: 276px;
304
+ -ms-flex: none;
305
+ flex: none;
306
+ width: 273px;
315
307
  }
316
- .rc-calendar-inputs {
308
+ .rc-calendar-date-input {
317
309
  display: -ms-flexbox;
318
310
  display: flex;
319
- -ms-flex-align: stretch;
320
- align-items: stretch;
321
- }
322
- .rc-calendar-date-input-col {
323
- -ms-flex: 1 1 auto;
324
- flex: 1 1 auto;
325
- }
326
- .rc-calendar-time-input-col {
327
- width: 89px;
328
- border-left: 1px solid var(--rc-calendar-divider-color, #eee);
311
+ -ms-flex-align: center;
312
+ align-items: center;
313
+ box-sizing: border-box;
314
+ padding: 12px 12px 0;
329
315
  }
330
- .rc-calendar-date-input,
331
316
  .rc-calendar-time-input {
332
317
  display: -ms-flexbox;
333
318
  display: flex;
334
319
  -ms-flex-align: center;
335
320
  align-items: center;
336
- height: 100%;
337
- padding: 12px 12px 0 12px;
338
- margin-bottom: 4px;
321
+ box-sizing: border-box;
322
+ padding: 12px;
323
+ border-bottom: 1px solid var(--rc-calendar-divider-color, #eee);
339
324
  }
340
325
  .rc-calendar-date-input input,
341
326
  .rc-calendar-time-input input {
@@ -359,7 +344,7 @@
359
344
  outline: none;
360
345
  }
361
346
  .rc-calendar-header {
362
- padding: 0 12px;
347
+ padding: 0 18px;
363
348
  height: 48px;
364
349
  line-height: 24px;
365
350
  text-align: center;
@@ -367,6 +352,7 @@
367
352
  -ms-user-select: none;
368
353
  user-select: none;
369
354
  -webkit-user-select: none;
355
+ margin-top: 4px;
370
356
  }
371
357
  .rc-calendar-header-nav-wrap {
372
358
  position: relative;
@@ -456,7 +442,7 @@
456
442
  left: 0;
457
443
  }
458
444
  .rc-calendar-body {
459
- padding: 0 12px;
445
+ padding: 0 12px 12px;
460
446
  height: 260px;
461
447
  }
462
448
  .rc-calendar table {
@@ -551,39 +537,48 @@
551
537
  border-radius: 50%;
552
538
  }
553
539
  .rc-calendar-right-panel {
554
- height: inherit;
555
- border-left: 1px solid var(--rc-calendar-divider-color, #eee);
556
- }
557
- .rc-calendar-right-panel-header {
558
540
  display: -ms-flexbox;
559
541
  display: flex;
560
- -ms-flex-pack: center;
561
- justify-content: center;
562
- -ms-flex-align: center;
563
- align-items: center;
564
- color: var(--rc-calendar-body-color, #212529);
565
- font-weight: 600;
542
+ -ms-flex-direction: column;
543
+ flex-direction: column;
544
+ -ms-flex: 1;
545
+ flex: 1;
546
+ min-width: 0;
547
+ height: 356px;
548
+ border-left: 1px solid var(--rc-calendar-divider-color, #eee);
566
549
  }
567
550
  .rc-calendar-right-panel-body {
568
- height: 260px;
551
+ -ms-flex: 1;
552
+ flex: 1;
553
+ min-height: 0;
569
554
  display: -ms-flexbox;
570
555
  display: flex;
571
- padding: 0 4px 16px;
572
- scrollbar-color: auto;
573
556
  }
574
557
  .rc-calendar-right-panel-col {
558
+ -ms-flex: 1;
559
+ flex: 1;
560
+ min-width: 0;
575
561
  overflow-y: auto;
562
+ overflow-x: hidden;
563
+ scrollbar-gutter: stable;
564
+ }
565
+ .rc-calendar-right-panel-col + .rc-calendar-right-panel-col {
566
+ border-left: 1px solid var(--rc-calendar-divider-color, #eee);
576
567
  }
577
568
  .rc-calendar-right-panel-col ul {
578
569
  list-style: none;
579
570
  margin: 0;
580
- padding: 4px;
571
+ padding: 4px 16px;
581
572
  }
582
573
  .rc-calendar-right-panel-item {
583
574
  width: 32px;
584
575
  height: 32px;
585
576
  padding: 4px 0;
586
577
  cursor: pointer;
578
+ margin-top: 4px;
579
+ }
580
+ .rc-calendar-right-panel-item:first-child {
581
+ margin-top: -2px;
587
582
  }
588
583
  .rc-calendar-right-panel-item-text {
589
584
  width: 100%;
@@ -605,10 +600,6 @@
605
600
  border-radius: 4px;
606
601
  color: #fff;
607
602
  }
608
- .rc-calendar-right-panel-col::-webkit-scrollbar {
609
- width: 0;
610
- height: 0;
611
- }
612
603
  .rc-calendar-right-panel-item-current {
613
604
  border: 1px solid var(--rc-calendar-sf-orange, #ff8000);
614
605
  border-radius: 4px;