flufi-ui 0.0.0-stage → 0.1.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.
@@ -0,0 +1,732 @@
1
+ /* src/components/Button/style.css */
2
+ .button {
3
+ display: flex;
4
+ align-items: center;
5
+ padding: 8px;
6
+ gap: 10px;
7
+ border-radius: 10px;
8
+ font-size: var(--font-size-button);
9
+ &.extra-padding {
10
+ padding: 12px !important;
11
+ }
12
+ &.no-padding {
13
+ padding: 0 !important;
14
+ }
15
+ &.centered {
16
+ justify-content: center;
17
+ }
18
+ &:disabled {
19
+ opacity: 50%;
20
+ cursor: not-allowed;
21
+ }
22
+ &:not(:disabled) {
23
+ &:hover {
24
+ background: var(--flat-hover);
25
+ }
26
+ }
27
+ &.variant-accent {
28
+ background: var(--accent);
29
+ color: var(--text-on-light);
30
+ font-weight: bold;
31
+ &:not(:disabled) {
32
+ &:hover {
33
+ background: var(--accent-hover);
34
+ }
35
+ }
36
+ }
37
+ &.variant-accent-subtle {
38
+ font-weight: bold;
39
+ color: var(--accent);
40
+ &:not(:disabled) {
41
+ &:hover {
42
+ background: var(--accent);
43
+ color: var(--text-on-light);
44
+ }
45
+ }
46
+ }
47
+ &.variant-danger {
48
+ background: var(--danger);
49
+ color: var(--text-on-light);
50
+ font-weight: bold;
51
+ &:not(:disabled) {
52
+ &:hover {
53
+ background: var(--danger-hover);
54
+ }
55
+ }
56
+ }
57
+ &.variant-danger-subtle {
58
+ font-weight: bold;
59
+ color: var(--danger);
60
+ &:not(:disabled) {
61
+ &:hover {
62
+ background: var(--danger);
63
+ color: var(--text-on-light);
64
+ }
65
+ }
66
+ }
67
+ &.variant-filled {
68
+ background: var(--prim);
69
+ }
70
+ &.variant-always-transparent {
71
+ background: transparent;
72
+ &:not(:disabled) {
73
+ &:hover {
74
+ background: transparent;
75
+ }
76
+ }
77
+ }
78
+ &.variant-panel {
79
+ border: 1px solid var(--back-border);
80
+ }
81
+ }
82
+ .button.text-button {
83
+ padding: 8px 12px;
84
+ &.extra-padding {
85
+ padding: 10px 14px !important;
86
+ }
87
+ }
88
+ .button.text-icon-button {
89
+ padding: 8px;
90
+ padding-right: 12px;
91
+ margin: 2px;
92
+ &.extra-padding {
93
+ padding: 10px !important;
94
+ padding-right: 14px !important;
95
+ }
96
+ }
97
+ a.button {
98
+ color: inherit;
99
+ }
100
+ .mobile {
101
+ .button {
102
+ &:not(:disabled) {
103
+ &:hover {
104
+ background: transparent;
105
+ }
106
+ }
107
+ &.variant-accent {
108
+ &:hover {
109
+ background: var(--accent);
110
+ }
111
+ }
112
+ &.variant-danger {
113
+ &:hover {
114
+ background: var(--danger);
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ /* src/components/Container/style.css */
121
+ .container {
122
+ display: flex;
123
+ flex-direction: column;
124
+ gap: 10px;
125
+ &.horizontal {
126
+ flex-direction: row;
127
+ &.centered-x {
128
+ justify-content: center;
129
+ }
130
+ &.centered-y {
131
+ align-items: center;
132
+ }
133
+ }
134
+ &.vertical {
135
+ flex-direction: column;
136
+ &.centered-x {
137
+ align-items: center;
138
+ }
139
+ &.centered-y {
140
+ justify-content: center;
141
+ }
142
+ }
143
+ &:not(.horizontal):not(.vertical) {
144
+ &.centered-x {
145
+ align-items: center;
146
+ }
147
+ &.centered-y {
148
+ justify-content: center;
149
+ }
150
+ }
151
+ &.box {
152
+ padding: 20px;
153
+ background: var(--back-raised);
154
+ border: 1px solid var(--back-border);
155
+ border-radius: 10px;
156
+ }
157
+ &.wrap {
158
+ flex-wrap: wrap;
159
+ }
160
+ &.no-gap {
161
+ gap: 0;
162
+ }
163
+ &.text-gap {
164
+ gap: 5px;
165
+ }
166
+ &.extra-gap {
167
+ gap: 25px;
168
+ }
169
+ }
170
+
171
+ /* src/components/Popout/style.css */
172
+ .popout {
173
+ position: fixed;
174
+ z-index: 50;
175
+ background: var(--back-raised);
176
+ border: 1px solid var(--back-border);
177
+ border-radius: 10px;
178
+ box-shadow: var(--shadow-raised);
179
+ }
180
+ .popout-button {
181
+ display: flex;
182
+ > .button {
183
+ flex: 1;
184
+ }
185
+ }
186
+
187
+ /* src/components/CalendarInput/style.css */
188
+ .calendar-input {
189
+ display: flex;
190
+ flex-direction: column;
191
+ > button {
192
+ text-align: left;
193
+ &.open {
194
+ background: var(--prim);
195
+ }
196
+ > span {
197
+ flex: 1;
198
+ &.placeholder {
199
+ color: var(--text-placeholder);
200
+ }
201
+ }
202
+ > svg {
203
+ flex-shrink: 0;
204
+ margin-left: auto;
205
+ }
206
+ }
207
+ }
208
+ .calendar-input-popout {
209
+ position: fixed;
210
+ z-index: 50;
211
+ > div {
212
+ padding: 10px;
213
+ gap: 8px;
214
+ > header {
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: space-between;
218
+ > span {
219
+ font-size: var(--font-size-medium);
220
+ font-weight: 600;
221
+ }
222
+ }
223
+ > main {
224
+ display: grid;
225
+ grid-template-columns: repeat(7, 1fr);
226
+ gap: 2px;
227
+ > .weekday {
228
+ text-align: center;
229
+ font-size: var(--font-size-small);
230
+ color: var(--text-dark);
231
+ padding: 4px 0;
232
+ }
233
+ > .day {
234
+ justify-content: center;
235
+ padding: 6px 0;
236
+ font-size: var(--font-size-medium);
237
+ &.today {
238
+ box-shadow: inset 0 0 0 1px var(--tert);
239
+ }
240
+ &.selected {
241
+ background: var(--accent);
242
+ color: var(--text-on-light);
243
+ font-weight: bold;
244
+ }
245
+ }
246
+ }
247
+ > footer {
248
+ display: flex;
249
+ justify-content: space-between;
250
+ gap: 5px;
251
+ padding-top: 8px;
252
+ border-top: 1px solid var(--back-border);
253
+ > .button {
254
+ color: var(--text-dim);
255
+ }
256
+ }
257
+ }
258
+ }
259
+
260
+ /* src/components/Input/style.css */
261
+ .input {
262
+ padding: 11px 13px;
263
+ font-size: var(--font-size-input);
264
+ &:not(.flat) {
265
+ border: 1px solid var(--back-border);
266
+ border-radius: 10px;
267
+ }
268
+ &.spaced {
269
+ padding: 10px 10px;
270
+ line-height: 1.4;
271
+ }
272
+ &:is(textarea) {
273
+ font-size: var(--font-size-textarea);
274
+ padding: 11px 13px;
275
+ }
276
+ }
277
+
278
+ /* src/components/ClickFade/style.css */
279
+ .click-faded {
280
+ position: relative;
281
+ > :first-child {
282
+ opacity: 100%;
283
+ z-index: 1;
284
+ }
285
+ > :last-child {
286
+ opacity: 0%;
287
+ z-index: 0;
288
+ }
289
+ > * {
290
+ position: absolute;
291
+ inset: 0;
292
+ }
293
+ &.fade {
294
+ > :first-child {
295
+ opacity: 0%;
296
+ z-index: 0;
297
+ }
298
+ > :last-child {
299
+ opacity: 100%;
300
+ z-index: 1;
301
+ }
302
+ cursor: unset;
303
+ }
304
+ > * {
305
+ transition: opacity var(--transition-fast);
306
+ }
307
+ }
308
+
309
+ /* src/components/Content/style.css */
310
+ #app > div > main > main {
311
+ flex: 1;
312
+ display: flex;
313
+ flex-direction: column;
314
+ gap: 5px;
315
+ max-height: calc(100vh - 50px);
316
+ overflow-y: auto;
317
+ &.wrapped {
318
+ flex-direction: row;
319
+ justify-content: center;
320
+ > div {
321
+ display: flex;
322
+ flex-direction: column;
323
+ gap: 5px;
324
+ flex: 1;
325
+ }
326
+ }
327
+ &.centered {
328
+ justify-content: center;
329
+ align-items: center;
330
+ }
331
+ &,
332
+ &.wrapped > div {
333
+ > h1 {
334
+ font-size: var(--font-size-extra-big);
335
+ }
336
+ > p {
337
+ color: var(--text-dim);
338
+ }
339
+ }
340
+ }
341
+
342
+ /* src/components/Text/style.css */
343
+ .text {
344
+ &.dim {
345
+ color: var(--text-dim);
346
+ }
347
+ &.dark {
348
+ color: var(--text-dark);
349
+ }
350
+ &.big {
351
+ font-size: var(--font-size-big);
352
+ }
353
+ &.extra-big {
354
+ font-size: var(--font-size-extra-big);
355
+ }
356
+ &.big,
357
+ &.extra-big {
358
+ font-weight: bold;
359
+ font-family: "Lexend";
360
+ }
361
+ }
362
+
363
+ /* src/components/ContextMenu/style.css */
364
+ .context-menu {
365
+ z-index: 1000;
366
+ visibility: hidden;
367
+ box-sizing: border-box;
368
+ width: max-content;
369
+ min-width: min(180px, calc(100vw - 16px));
370
+ max-width: calc(100vw - 16px);
371
+ max-height: calc(100vh - 16px);
372
+ overflow: auto;
373
+ overscroll-behavior: contain;
374
+ padding: 5px;
375
+ overflow-wrap: anywhere;
376
+ > * {
377
+ flex-shrink: 0;
378
+ }
379
+ .button {
380
+ text-align: left;
381
+ &:focus-visible {
382
+ background: var(--flat-hover);
383
+ }
384
+ }
385
+ }
386
+ .context-menu-header {
387
+ padding: 7px 9px;
388
+ font-size: var(--font-size-medium);
389
+ }
390
+ .context-menu-separator {
391
+ height: 1px;
392
+ margin: 5px 4px;
393
+ background: var(--prim-border);
394
+ }
395
+
396
+ /* src/components/DotSeperator/style.css */
397
+ .dot-seperator {
398
+ background: currentColor;
399
+ border-radius: 100%;
400
+ width: 2px;
401
+ height: 2px;
402
+ margin: 5px;
403
+ vertical-align: middle;
404
+ &.no-margin {
405
+ margin: 0;
406
+ }
407
+ &.container-text-margin {
408
+ margin: 0 -3px -1px;
409
+ }
410
+ }
411
+
412
+ /* src/components/Label/style.css */
413
+ .label {
414
+ font-size: var(--font-size-medium);
415
+ color: var(--text-dim);
416
+ }
417
+
418
+ /* src/components/Header/Header.css */
419
+ .header.underline {
420
+ border-bottom: 1px solid var(--prim);
421
+ padding-bottom: 2px;
422
+ }
423
+ .mini-header {
424
+ text-transform: uppercase;
425
+ font-size: var(--font-size-small);
426
+ &.dim {
427
+ color: var(--text-dim);
428
+ }
429
+ }
430
+
431
+ /* src/components/ImageInput/style.css */
432
+ .image-input {
433
+ width: var(--width);
434
+ height: var(--height);
435
+ display: flex;
436
+ align-items: center;
437
+ justify-content: center;
438
+ border-radius: 10px;
439
+ overflow: hidden;
440
+ cursor: pointer;
441
+ &:not(.has-image) {
442
+ border: 1px solid var(--back-border);
443
+ }
444
+ > img {
445
+ flex: 1;
446
+ width: var(--width);
447
+ height: var(--height);
448
+ object-fit: cover;
449
+ }
450
+ > svg {
451
+ color: var(--text-dark);
452
+ }
453
+ }
454
+
455
+ /* src/components/Throbber/Throbber.css */
456
+ .throbber {
457
+ display: flex;
458
+ > svg {
459
+ animation: spin 1s infinite linear;
460
+ }
461
+ }
462
+ @keyframes spin {
463
+ 0% {
464
+ transform: rotate(0deg);
465
+ }
466
+ 100% {
467
+ transform: rotate(360deg);
468
+ }
469
+ }
470
+
471
+ /* src/components/Loading/style.css */
472
+ .loading {
473
+ display: flex;
474
+ justify-content: center;
475
+ align-items: center;
476
+ }
477
+
478
+ /* src/components/PathInput/style.css */
479
+ .path-input {
480
+ padding: 3px;
481
+ > .click-faded {
482
+ flex: 1;
483
+ height: 35px;
484
+ min-width: 0;
485
+ > * {
486
+ overflow-x: auto;
487
+ overflow-y: hidden;
488
+ scrollbar-width: none;
489
+ > * {
490
+ min-width: max-content;
491
+ }
492
+ }
493
+ > .input > button {
494
+ padding: 5px;
495
+ margin: -5px;
496
+ text-wrap: nowrap;
497
+ }
498
+ }
499
+ }
500
+
501
+ /* src/components/SelectBox/style.css */
502
+ .select-box-popout {
503
+ > div {
504
+ padding: 5px;
505
+ gap: 5px;
506
+ > .loading {
507
+ padding: 10px;
508
+ }
509
+ }
510
+ }
511
+ .select-box {
512
+ > button {
513
+ > .default {
514
+ color: var(--text-placeholder);
515
+ }
516
+ > svg {
517
+ margin-left: auto;
518
+ transition: transform var(--transition-fast);
519
+ }
520
+ }
521
+ &.open > button > svg {
522
+ transform: rotate(180deg);
523
+ }
524
+ }
525
+
526
+ /* src/components/Seperator/style.css */
527
+ .seperator {
528
+ height: 5px;
529
+ }
530
+
531
+ /* src/components/Slider/style.css */
532
+ .slider {
533
+ display: flex;
534
+ padding: 10px;
535
+ min-width: 150px;
536
+ cursor: pointer;
537
+ > div {
538
+ display: flex;
539
+ width: 100%;
540
+ height: 5px;
541
+ border-radius: 2.5px;
542
+ background: var(--prim-brighter);
543
+ > .progress {
544
+ border-radius: 2.5px;
545
+ background: var(--accent);
546
+ }
547
+ > .handle {
548
+ width: 10px;
549
+ height: 10px;
550
+ margin-left: -5px;
551
+ margin-top: -2.5px;
552
+ border-radius: 5px;
553
+ background: var(--text);
554
+ }
555
+ }
556
+ }
557
+
558
+ /* src/components/Table/style.css */
559
+ .table {
560
+ border-collapse: separate;
561
+ border-spacing: 0;
562
+ padding: 15px;
563
+ > thead,
564
+ > tbody {
565
+ > tr {
566
+ transition: background var(--transition-fast);
567
+ &:hover {
568
+ }
569
+ > th {
570
+ border-top: 1px solid var(--back-border);
571
+ background: var(--prim);
572
+ &:first-child {
573
+ border-left: 1px solid var(--back-border);
574
+ border-radius: 10px 0 0 10px;
575
+ }
576
+ &:last-child {
577
+ border-right: 1px solid var(--back-border);
578
+ border-radius: 0 10px 10px 0;
579
+ }
580
+ }
581
+ > th,
582
+ > td {
583
+ padding: 12px;
584
+ &:not(:last-child) {
585
+ border-right: 1px solid var(--back-border);
586
+ }
587
+ &:has(.button) {
588
+ padding: 5px;
589
+ }
590
+ > .icon-button {
591
+ padding: 5px;
592
+ }
593
+ }
594
+ }
595
+ }
596
+ > thead > tr > :is(th, td),
597
+ > tbody > tr:not(:last-child) > :is(th, td) {
598
+ border-bottom: 1px solid var(--back-border);
599
+ }
600
+ &.box {
601
+ padding: 20px;
602
+ background: var(--back-raised);
603
+ border: 1px solid var(--back-border);
604
+ border-radius: 10px;
605
+ }
606
+ }
607
+
608
+ /* src/components/Tabs/style.css */
609
+ .tabs {
610
+ display: flex;
611
+ > button,
612
+ > .tab-with-close {
613
+ flex: 1;
614
+ display: flex;
615
+ padding: 12px 15px;
616
+ border: 1px solid var(--back-border);
617
+ font-size: var(--font-size-tab);
618
+ box-shadow: none;
619
+ transition: box-shadow var(--transition-fast);
620
+ &.selected {
621
+ box-shadow: inset 0px 32px 0 -30px var(--accent);
622
+ }
623
+ &:only-child {
624
+ border-radius: 10px;
625
+ }
626
+ &:not(:only-child) {
627
+ &:first-child:not(:last-child) {
628
+ border-radius: 10px 0 0 10px;
629
+ }
630
+ &:last-child:not(:first-child) {
631
+ border-radius: 0 10px 10px 0;
632
+ border-left: none;
633
+ }
634
+ }
635
+ &.tab-with-close {
636
+ padding: 0;
637
+ > .tab-label {
638
+ flex: 1;
639
+ padding: 12px 15px;
640
+ border-radius: inherit;
641
+ white-space: nowrap;
642
+ }
643
+ > .tab-close {
644
+ flex-shrink: 0;
645
+ padding: 4px;
646
+ margin-right: 6px;
647
+ border-radius: 5px;
648
+ }
649
+ }
650
+ }
651
+ }
652
+
653
+ /* src/components/TagList/style.css */
654
+ .tag-list {
655
+ display: flex;
656
+ align-items: center;
657
+ flex-wrap: wrap;
658
+ gap: 5px;
659
+ > input {
660
+ min-width: 100px;
661
+ max-width: 200px;
662
+ flex: 1;
663
+ padding: 5px 8px;
664
+ font-size: var(--font-size-medium);
665
+ border: 1px solid var(--prim);
666
+ border-radius: 10px;
667
+ height: 13px;
668
+ }
669
+ }
670
+ .tag {
671
+ display: flex;
672
+ align-items: center;
673
+ padding: 5px 10px;
674
+ gap: 5px;
675
+ background: var(--prim);
676
+ border-radius: 15px;
677
+ font-size: var(--font-size-medium);
678
+ > button {
679
+ display: flex;
680
+ margin-top: 2px;
681
+ }
682
+ &.small {
683
+ padding: 4px 7px;
684
+ font-size: var(--font-size-small-tag);
685
+ gap: 3px;
686
+ border-radius: 8px;
687
+ }
688
+ }
689
+
690
+ /* src/components/UploadBox/style.css */
691
+ .upload-box {
692
+ display: flex;
693
+ gap: 7.5px;
694
+ flex-direction: column;
695
+ align-items: center;
696
+ justify-content: center;
697
+ text-align: center;
698
+ height: 65px;
699
+ border-radius: 10px;
700
+ padding: 50px;
701
+ border: 2px dashed var(--seco);
702
+ color: var(--seco);
703
+ font-size: var(--font-size-medium);
704
+ cursor: pointer;
705
+ transition: border-color var(--transition-fast), color var(--transition-fast);
706
+ > p > svg {
707
+ vertical-align: middle;
708
+ margin: 0px -3px;
709
+ padding-bottom: 2px;
710
+ }
711
+ &.less-padding {
712
+ padding: 35px;
713
+ }
714
+ &.dragging,
715
+ &:hover {
716
+ border-color: var(--tert-hover);
717
+ color: var(--tert-hover);
718
+ }
719
+ }
720
+
721
+ /* src/components/WrapList/style.css */
722
+ .wrap-list {
723
+ display: grid;
724
+ grid-template-columns: repeat(auto-fill, minmax(var(--min-size), 1fr));
725
+ width: 100%;
726
+ overflow-x: hidden;
727
+ gap: 20px;
728
+ > * {
729
+ min-width: 0;
730
+ width: 100%;
731
+ }
732
+ }