jobdone-shared-files 1.0.45 → 1.0.47

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 (38) hide show
  1. package/ModuleInfo/LayoutNav.vue +251 -251
  2. package/ModuleInfo/logo-with-text.svg +22 -22
  3. package/ModuleInfo/navButton.vue +218 -218
  4. package/ProjectManagement/projectNavbar.vue +363 -363
  5. package/autocompleteSelect.vue +465 -467
  6. package/common/directives/collapse.js +12 -12
  7. package/common/directives/popovers.js +10 -10
  8. package/common/directives/selectPlaceholder.js +52 -52
  9. package/common/directives/textareaAutoHeight.js +10 -10
  10. package/common/directives/tooltip.js +10 -10
  11. package/common/format.js +26 -26
  12. package/index.js +14 -14
  13. package/lightboxWithOverview.vue +156 -156
  14. package/package.json +19 -19
  15. package/paginate.vue +141 -141
  16. package/style/css/vue-loading-overlay/index.css +40 -40
  17. package/style/scss/Common/Animation.scss +9 -9
  18. package/style/scss/Common/SelectableTable.scss +36 -36
  19. package/style/scss/Common/Tree.scss +281 -281
  20. package/style/scss/Common/filepond.scss +31 -31
  21. package/style/scss/Common/thumbnail-group.scss +14 -14
  22. package/style/scss/Layout/LayoutBase.scss +1032 -1032
  23. package/style/scss/Layout/LayoutInnerColumn.scss +263 -263
  24. package/style/scss/Layout/LayoutProject.scss +126 -126
  25. package/style/scss/Layout/LayoutSinglePage.scss +17 -17
  26. package/style/scss/Layout/LayoutTwoColumn.scss +60 -60
  27. package/style/scss/Settings/_Mixins.scss +232 -232
  28. package/style/scss/Settings/_MobileVariables.scss +11 -11
  29. package/style/scss/Settings/_bs-variables-dark.scss +70 -70
  30. package/style/scss/Settings/_bs-variables.scss +1743 -1743
  31. package/style/scss/Settings/_color-mode.scss +122 -122
  32. package/style/scss/Settings/_custom-variables.scss +10 -10
  33. package/tagEditor.vue +249 -249
  34. package/tree.vue +71 -71
  35. package/treeItem.vue +358 -358
  36. package/treeItemV2.vue +78 -78
  37. package/treeV2.vue +71 -71
  38. package/vueLoadingOverlay.vue +74 -74
@@ -1,1033 +1,1033 @@
1
- // ====================================
2
- // Plugin
3
- // ====================================
4
-
5
- // Custom Bootstrap
6
- @import "../../../../bootstrap/scss/functions";
7
- @import "../Settings/bs-variables";
8
- @import "../../../../bootstrap/scss/bootstrap.scss";
9
-
10
-
11
- // ====================================
12
- // Helpers
13
- // ====================================
14
-
15
- // Mixins
16
- @import "../Settings/Mixins";
17
-
18
-
19
- // ====================================
20
- // Custom Style
21
- // ====================================
22
-
23
- @import "../Settings/color-mode";
24
- @import "../Settings/custom-variables";
25
-
26
-
27
- @mixin gradient-bg(){
28
- &:before{
29
- content: "";
30
- display: block;
31
- @include position-center();
32
- z-index: 0;
33
- background: $gradient-blue-light;
34
- pointer-events: none;
35
- transition: $transition-base;
36
- }
37
- }
38
-
39
- @mixin gradient-bg-hover-to-show($opacity: 1){
40
- @include gradient-bg();
41
- &:before{ opacity: 0; }
42
- &:hover:before{ opacity: $opacity; }
43
- }
44
-
45
- // general ------------------------------------------
46
- :root{
47
- --backdrop-blur: blur(2px);
48
-
49
- // ====================================
50
- // scrollbar樣式
51
- // ====================================
52
- --scrollbar-width: 10px;
53
- }
54
-
55
- [v-cloak]{
56
- display: none !important;
57
- }
58
-
59
- html,
60
- .overflow-auto, .overflow-scroll,
61
- .overflow-y-auto, .overflow-y-scroll,
62
- .offcanvas-body, textarea{
63
- @include scrollbar();
64
- transition: $transition-base;
65
- }
66
-
67
- .overflow-x-auto, .overflow-x-scroll, .scrollbar-sm, .table-responsive{
68
- @include scrollbar();
69
- --scrollbar-width: 6px;
70
- overflow-x: auto;
71
- -webkit-overflow-scrolling: touch;
72
- }
73
-
74
- .scrollbar-gutter-stable{
75
- // Safari 暫不支援
76
- scrollbar-gutter: stable;
77
- }
78
-
79
- body{
80
- background-color: var(--gray-200);
81
- --maz-color-primary: var(--bs-primary);
82
- --maz-color-secondary: var(--bs-secondary);
83
- --maz-color-info: var(--bs-info);
84
- --maz-color-success: var(--bs-success);
85
- --maz-color-warning: var(--bs-warning);
86
- --maz-color-danger: var(--bs-danger);
87
- --maz-color-bg: var(--bs-body-bg);
88
- --maz-color-text: var(--bs-body-color);
89
- --maz-color-muted: var(--bs-secondary-color);
90
- }
91
-
92
- ul, ol{
93
- &.list-reset{
94
- list-style-type: none;
95
- padding-left: 0;
96
- }
97
- }
98
- // general ------------------------------------------
99
-
100
-
101
- // text / link ------------------------------------------
102
-
103
- a{
104
- text-decoration: none;
105
- // 如果需要底線使用 <u></u> tag
106
- transition: $transition-base;
107
- &.a-reset-color{
108
- color: inherit;
109
- }
110
- &.a-hover-gradient{
111
- position: relative;
112
- @include gradient-bg-hover-to-show();
113
- }
114
- }
115
-
116
- .text-link{
117
- color: var(--bs-link-color);
118
- &:hover{
119
- color: var(--bs-link-hover-color);
120
- }
121
- }
122
-
123
- .text-pre-wrap{
124
- white-space: pre-wrap;
125
- }
126
-
127
- .fs-min{
128
- font-size: 12px;
129
- }
130
-
131
- .text-overflow{
132
- @include text-overflow();
133
- }
134
-
135
- @for $i from 1 through 5 {
136
- .text-line-clamp-#{$i} {
137
- @include text-line-clamp(#{$i});
138
- }
139
- }
140
-
141
- @for $i from 1 through 5 {
142
- .letter-spacing-#{$i} {
143
- letter-spacing: #{$i}px;
144
- }
145
- }
146
-
147
- // text / link ------------------------------------------
148
-
149
-
150
- // border ------------------------------------------
151
- .hover-border{
152
- transition: $transition-base;
153
- &:hover{
154
- box-shadow: $focus-ring-box-shadow;
155
- }
156
- }
157
- .active-border{
158
- box-shadow: $focus-ring-box-shadow;
159
- }
160
- // border ------------------------------------------
161
-
162
-
163
- // badge outline ------------------------------------------
164
-
165
- @each $color, $value in $colors {
166
- .badge-outline-#{$color}{
167
- color: $value;
168
- border: $border-width solid rgba($value, .5);
169
- background-color: rgba($value, .1);
170
- }
171
- }
172
-
173
- // badge outline ------------------------------------------
174
-
175
-
176
- // input ------------------------------------------
177
- .form-control{
178
- caret-color: $primary;
179
- }
180
- // input ------------------------------------------
181
-
182
-
183
- // checkbox / radio ------------------------------------------
184
-
185
- .check-label{
186
- cursor: pointer;
187
- &, &:before, span{
188
- vertical-align: middle;
189
- transition: $transition-base;
190
- }
191
- &:before{
192
- content: "check_box_outline_blank";
193
- display: inline-block;
194
- margin-right: .1em;
195
- color: var(--gray-500);
196
- font-family: 'Material Icons';
197
- font-size: 120%;
198
- line-height: inherit;
199
- white-space: nowrap;
200
- -webkit-font-feature-settings: 'liga';
201
- -webkit-font-smoothing: antialiased;
202
- }
203
- &:not(.badge):hover{
204
- &, &:before, span{
205
- color: $primary;
206
- }
207
- }
208
- }
209
-
210
- .check-group{
211
- position: relative;
212
- display: inline-block;
213
- vertical-align: middle;
214
- &:not(:last-child){
215
- margin-right: 1em;
216
- }
217
- > input[type="checkbox"], > input[type="radio"]{
218
- position: absolute;
219
- opacity: 0;
220
- pointer-events: none;
221
- &:checked ~ .check-label:before{
222
- color: $primary;
223
- }
224
- // disabled style
225
- &:disabled ~ .check-label{
226
- cursor: not-allowed;
227
- span, &:hover span,
228
- &:before, &:hover &:before{
229
- color: var(--gray-500);
230
- }
231
- }
232
- &:checked:disabled ~ .check-label{
233
- &:before, &:hover &:before{
234
- color: var(--gray-600);
235
- }
236
- }
237
- }
238
- > input[type="checkbox"] ~ .check-label:before{ content: "check_box_outline_blank"; }
239
- > input[type="radio"] ~ .check-label:before{ content: "radio_button_unchecked"; }
240
- > input[type="checkbox"]:checked ~ .check-label:before{ content: "check_box"; }
241
- > input[type="radio"]:checked ~ .check-label:before{ content: "radio_button_checked"; }
242
- }
243
- // checkbox / radio ------------------------------------------
244
-
245
- // star ------------------------------------------
246
- .check-star-group{
247
- > input[type="checkbox"], > input[type="radio"]{
248
- ~ .check-label:before{
249
- content: "star_border";
250
- font-size: 1.5em;
251
- }
252
- ~ .check-label:hover:before{
253
- color: $warning;
254
- }
255
- &:checked ~ .check-label:before{
256
- content: "star";
257
- color: $warning;
258
- }
259
- }
260
- }
261
- // star ------------------------------------------
262
-
263
-
264
- // switch ------------------------------------------
265
-
266
- :root{
267
- --switch-w: 24px;
268
- --switch-h: 12px;
269
- --switch-padding: 2px;
270
- --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
271
-
272
- }
273
- .check-switch-group{
274
- // reset
275
- .check-label:before{ content: ""; }
276
- .check-label .switch-item{
277
- position: relative;
278
- display: inline-block;
279
- width: var(--switch-w);
280
- height: var(--switch-h);
281
- border-radius: var(--switch-h);
282
- background-color: var(--gray-500);
283
- vertical-align: middle;
284
- &, &:before{
285
- transition: $transition-base;
286
- }
287
- &:before{
288
- content: "";
289
- position: absolute;
290
- top: 0;
291
- left: var(--switch-padding);
292
- bottom: 0;
293
- margin: auto;
294
- @include size(var(--switch-ball-size));
295
- border-radius: 50%;
296
- background-color: $white;
297
- }
298
- }
299
- > input[type="checkbox"], > input[type="radio"]{
300
- // reset
301
- ~ .check-label:before{ content: ""; }
302
- &:checked ~ .check-label:before{ content: ""; }
303
-
304
- &:not(:disabled) ~ .check-label:hover .switch-item:before{
305
- will-change: left;
306
- }
307
-
308
- &:checked ~ .check-label .switch-item:before{
309
- left: calc( var(--switch-w) - var(--switch-padding) - var(--switch-ball-size));
310
- }
311
-
312
- // disabled style
313
- &:disabled ~ .check-label .switch-item{
314
- background-color: var(--gray-400);
315
- }
316
- &:checked:disabled ~ .check-label .switch-item{
317
- background-color: var(--gray-600);
318
- }
319
- }
320
- &-md{
321
- --switch-w: 30px;
322
- --switch-h: 15px;
323
- --switch-padding: 3px;
324
- --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
325
- }
326
- &-lg{
327
- --switch-w: 36px;
328
- --switch-h: 18px;
329
- --switch-padding: 3px;
330
- --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
331
- }
332
- &-with-description{
333
- .switch-item{
334
- margin-top: .35em;
335
- }
336
- .check-label{
337
- display: flex;
338
- }
339
- }
340
- &-display .check-label{
341
- cursor: auto;
342
- }
343
- }
344
- @each $color, $value in $colors {
345
- .check-switch-group.check-switch-group-#{$color}{
346
- &:hover .check-label .switch-item{
347
- background-color: rgba($value, .5);
348
- }
349
- > input[type="checkbox"], > input[type="radio"]{
350
- &:checked:not(:disabled) ~ .check-label .switch-item{
351
- background-color: $value;
352
- }
353
- }
354
- &.check-switch-group-display{
355
- pointer-events: none;
356
- }
357
- &.check-switch-group-display.active .check-label .switch-item{
358
- background-color: $value;
359
- &:before{
360
- left: calc( var(--switch-w) - var(--switch-padding) - var(--switch-ball-size));
361
- }
362
- }
363
- }
364
- }
365
-
366
- // badge 版本
367
- .check-label.badge{
368
- --bs-badge-padding-x: 1em;
369
- --bs-badge-padding-y: 0.5em;
370
- --bs-badge-font-size: var(--bs-body-font-size);
371
- --bs-badge-font-weight: --bs-body-font-weight;
372
- }
373
- .check-switch-group.check-switch-group{
374
- input:not(:checked) ~ .check-label.badge{
375
- background-color: var(--gray-100);
376
- border-color: var(--gray-300);
377
- span{
378
- color: var(--gray-500);
379
- }
380
- }
381
- input:not(:checked):disabled ~ .check-label.badge{
382
- &:hover{
383
- background-color: var(--gray-100);
384
- border-color: var(--gray-300);
385
- }
386
- &:hover span, span{
387
- color: var(--gray-400);
388
- }
389
- }
390
- input:checked ~ .check-label.badge{
391
- &:hover span, span{
392
- color: currentColor;
393
- }
394
- .switch-item{
395
- background-color: currentColor;
396
- }
397
- }
398
- }
399
- @each $color, $value in $colors {
400
- .check-switch-group.check-switch-group-#{$color}{
401
- input:not(:disabled):not(:checked) ~ .check-label.badge:hover{
402
- background-color: rgba($value, .05);
403
- border-color: rgba($value, .25);
404
- .switch-item{
405
- background-color: rgba($value, .5);
406
- }
407
- span{
408
- color: rgba($value, .75);
409
- }
410
- }
411
- }
412
- }
413
- // switch ------------------------------------------
414
-
415
-
416
-
417
-
418
- // table ------------------------------------------
419
- th, td{
420
- transition: $transition-base;
421
- }
422
- .table > .thead-default:not(caption) > * > *{
423
- font-size: $font-size-sm;
424
- background-color: var(--gray-200);
425
- letter-spacing: 0.5px;
426
- }
427
-
428
- // firefox 暫不支援
429
- .table tr:has(.dropdown-delete:hover){
430
- th:not([scope="col"]), td:not([scope="col"]){
431
- --bs-table-accent-bg: transparent;
432
- --bs-table-bg: transparent;
433
- background-color: $table-danger-bg;
434
- color: var(--bs-danger);
435
- box-shadow: none;
436
- }
437
- }
438
-
439
- .table .dropdown-menu{
440
- z-index: $zindex-sticky + 1;
441
- }
442
-
443
- // table ------------------------------------------
444
-
445
-
446
-
447
- // icon ------------------------------------------
448
- .text-with-icon > *{
449
- vertical-align: middle;
450
- }
451
-
452
- .material-icons{
453
- $icon-sizes: 14, 18, 24, 28, 32;
454
-
455
- font-size: 24px;
456
- @each $size in $icon-sizes{
457
- &.icon-#{$size} { font-size: #{$size}px; }
458
- }
459
- }
460
- // icon ------------------------------------------
461
-
462
-
463
- // button ------------------------------------------
464
- .btn > *{
465
- vertical-align: middle;
466
- }
467
-
468
- .btn-round-effect{
469
- position: relative;
470
- display: inline-flex;
471
- align-items: center;
472
- justify-content: center;
473
- @include size(2em);
474
- padding: 0;
475
- text-decoration: none;
476
- *{
477
- z-index: 2;
478
- }
479
- &:before{
480
- content: "";
481
- display: block;
482
- @include position-center();
483
- border-radius: 50%;
484
- background-color: var(--bs-link-color);
485
- z-index: 1;
486
- opacity: 0;
487
- transform: scale(0);
488
- transition: $transition-base;
489
- }
490
- &:hover:before{
491
- opacity: .1;
492
- transform: scale(1);
493
- }
494
- }
495
-
496
- .btn-link-light-bg {
497
- text-decoration: none;
498
- &:hover {
499
- color: var(--bs-btn-color);
500
- background-color: rgba(var(--bs-link-color-rgb), .1);
501
- }
502
- }
503
-
504
-
505
- @keyframes gradient-position {
506
- 0% {
507
- transform: translateX(0);
508
- }
509
- 50% {
510
- transform: translateX(-50%);
511
- }
512
- 100% {
513
- transform: translateX(0);
514
- }
515
- }
516
- .btn-gradient-effect{
517
- --bs-btn-color: #fff;
518
- --bs-btn-hover-color: #fff;
519
- --bs-btn-active-color: #fff;
520
-
521
- position: relative;
522
- overflow: hidden;
523
- border: 0;
524
-
525
- &:before{
526
- content: "";
527
- display: block;
528
- position: absolute;
529
- top: 0; left: 0;
530
- width: 200%; height: 100%;
531
- background: linear-gradient(110deg, $cyan 0%, $purple 50%, $cyan 100%);
532
- animation: gradient-position 3s ease-in-out infinite;
533
- animation-fill-mode: both;
534
- z-index: 1;
535
- transition: $transition-base;
536
- }
537
- &, &:hover, &:hover:active{
538
- background-color: $primary;
539
- }
540
- &:hover:before{
541
- opacity: .4;
542
- }
543
- &:focus{
544
- box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
545
- }
546
- > *{
547
- position: relative;
548
- z-index: 2;
549
- }
550
- }
551
- // button ------------------------------------------
552
-
553
-
554
- // input ------------------------------------------
555
- .form-group{
556
- > label, .form-label{
557
- margin-bottom: 0.25rem;
558
- color: var(--gray-500);
559
- font-size: $font-size-sm;
560
- font-weight: $font-weight-bold;
561
- }
562
- }
563
-
564
- .form-group-frame{
565
- padding: 1rem;
566
- border-bottom: $border-width solid $border-color;
567
- }
568
- // input ------------------------------------------
569
-
570
-
571
- // image ------------------------------------------
572
- .thumbnail-content{
573
- $thumbnail-sizes: 32, 50, 100, 150;
574
-
575
- @include size(50px);
576
- background-color: $white;
577
- background-position: 50% 50%;
578
- background-size: cover;
579
- border: $border-width solid var(--#{$prefix}border-color);
580
- border-radius: 50%;
581
- overflow: hidden;
582
- @each $size in $thumbnail-sizes{
583
- &.thumbnail-#{$size} { @include solid-size(#{$size}px); }
584
- }
585
- &.thumbnail-rwd{
586
- @include rwd-square(100%);
587
- }
588
- }
589
- // image ------------------------------------------
590
-
591
-
592
- // dropdown ------------------------------------------
593
- .dropdown-menu{
594
- box-shadow: $box-shadow;
595
- }
596
- .dropdown-delete{
597
- color: $danger;
598
- &:hover{
599
- --bs-dropdown-link-hover-bg: var(--bs-danger);
600
- background-color: $danger;
601
- }
602
- }
603
- .dropdown-menu{
604
- --scrollbar-width: 8px;
605
- --scrollbar-hover-color: rgba(var(--bs-link-color-rgb), 0.5);
606
- overflow: auto;
607
- overscroll-behavior: contain;
608
- @include scrollbar();
609
- }
610
- // dropdown ------------------------------------------
611
-
612
-
613
- // modal ------------------------------------------
614
- .modal{
615
- backdrop-filter: var(--backdrop-blur);
616
- }
617
-
618
- .modal-md{
619
- min-width: 650px;
620
- }
621
-
622
- .modal-long-content .overflow-y-auto{
623
- height: 75vh;
624
- }
625
- // modal ------------------------------------------
626
-
627
-
628
- // offcanvas ------------------------------------------
629
- .offcanvas-backdrop{
630
- background-color: rgba($offcanvas-backdrop-bg, $offcanvas-backdrop-opacity);
631
- &.show{
632
- backdrop-filter: var(--backdrop-blur);
633
- opacity: 1;
634
- }
635
- }
636
- .offcanvas{
637
- &-md-size{
638
- --bs-offcanvas-width: 550px;
639
- }
640
- &-lg-size{
641
- --bs-offcanvas-width: 800px;
642
- }
643
- &-xl-size{
644
- --bs-offcanvas-width: 1000px;
645
- }
646
- }
647
- // offcanvas ------------------------------------------
648
-
649
-
650
- // navbar ------------------------------------------
651
- $navbar-h: 60px;
652
- .navbar-main{
653
- &, .btn.btn-normal, .navbar-line-item {
654
- min-height: $navbar-h;
655
- }
656
- .btn.btn-normal{
657
- @include flex-center();
658
- border-radius: 0;
659
- color: var(--bs-nav-link-color);
660
- &:hover{
661
- color: var(--bs-link-color);
662
- background-color: $primary-bg-light;
663
- }
664
- }
665
- .btn-square{
666
- @include size($navbar-h);
667
- }
668
- }
669
- // navbar ------------------------------------------
670
-
671
-
672
- // 側邊的清單 ------------------------------------------
673
-
674
- $list-highlight-border-w: .4rem;
675
-
676
- @mixin list-group-active(){
677
- font-weight: $font-weight-medium;
678
- border-left-color: currentColor;
679
- --bs-list-group-active-color: var(--bs-link-color);
680
- --bs-list-group-active-bg: transparent;
681
- @include gradient-bg();
682
- }
683
-
684
- .list-group{
685
- overflow: hidden;
686
- &, > li{
687
- list-style-type: none !important;
688
- }
689
- > li{
690
- position: relative;
691
- }
692
- .material-icon-more{
693
- transition: $transition-base;
694
- }
695
- }
696
-
697
- // 一般選單 style
698
- $list-item-padding-x: 1rem;
699
-
700
- .list-group-aside{
701
- border-radius: 0;
702
- .list-group-item{
703
- display: flex;
704
- align-items: center;
705
- padding: .8rem $list-item-padding-x;
706
- border-right: 0;
707
- border-color: transparent;
708
- border-left: $list-highlight-border-w solid transparent;
709
- background-color: var(--bs-body-bg);
710
- cursor: pointer;
711
- transition: $transition-base;
712
- &:before{ content: ""; }
713
- &.active{
714
- @include list-group-active();
715
- }
716
- &:not(.active):hover{
717
- border-top-color: var(--bs-body-bg);
718
- border-bottom-color: rgba(var(--bs-link-color-rgb), .1);
719
- border-left-color: $primary-sub-highlight;
720
- --bs-list-group-action-hover-color: rgba(var(--bs-link-color-rgb), .8);
721
- --bs-list-group-action-hover-bg: transparent;
722
- @include gradient-bg-hover-to-show(.7);
723
- }
724
- &:hover .material-icon-more{
725
- color: var(--bs-link-color);
726
- }
727
- }
728
- }
729
-
730
- // 子選單 style
731
- .child-body, .child-container{
732
- width: 100%;
733
- }
734
- .child-body{
735
- background: var(--gray-100);
736
- }
737
- .child-container{
738
- border-left: $list-highlight-border-w solid var(--gray-400);
739
- }
740
- .child-list-head{
741
- padding: .25rem $list-item-padding-x;
742
- color: var(--gray-500);
743
- background-color: var(--gray-200);
744
- font-weight: $font-weight-bold;
745
- border-bottom: $border-width solid var(--gray-400);
746
- }
747
- a.child-list-item{
748
- position: relative;
749
- display: block;
750
- padding: .5rem $list-item-padding-x;
751
- font-size: $font-size-sm;
752
-
753
- &:hover{
754
- color: var(--bs-link-color);
755
- }
756
- &.active{
757
- color: var(--bs-link-color);
758
- @include gradient-bg();
759
- }
760
- &.disabled, &:disabled{
761
- color: var(--bs-list-group-disabled-color);
762
- pointer-events: none;
763
- }
764
- @include gradient-bg-hover-to-show(.7);
765
- }
766
-
767
-
768
- // 子選單開合
769
- // https://stackoverflow.com/questions/3508605/how-can-i-transition-height-0-to-height-auto-using-css
770
- $list-toogle-speed: .35s;
771
- $list-toogle-in-background: $list-toogle-speed linear;
772
-
773
- .list-group-haschild:hover ~ .child-body{
774
- &:after{ will-change: height, max-height; }
775
- > .child-container { will-change: max-height, margin-bottom; }
776
- }
777
-
778
- .child-body{
779
- position: relative;
780
- display: flex;
781
- overflow: hidden;
782
- &:after { content: ''; }
783
- // 關閉 -----------------
784
- &:after{
785
- height: 0;
786
- max-height: 50px;
787
- transition: height $list-toogle-in-background;
788
- }
789
- > .child-container {
790
- margin-bottom: -2000px;
791
- visibility: hidden;
792
- max-height: 0;
793
- transition: margin-bottom $list-toogle-speed cubic-bezier(1, 0, 1, 1),
794
- visibility 0s $list-toogle-speed,
795
- max-height 0s $list-toogle-speed;
796
- }
797
- // 關閉 -----------------
798
- }
799
-
800
- .list-group-haschild-input:checked{
801
- ~ .list-group-item{
802
- @include list-group-active();
803
- .material-icon-more{
804
- transform: rotate(-180deg);
805
- }
806
- }
807
- ~ .child-body{
808
- // 打開 -----------------
809
- &:after {
810
- height: 50px;
811
- transition: height $list-toogle-in-background,
812
- max-height 0s $list-toogle-in-background;
813
- max-height: 0px;
814
- }
815
- > .child-container{
816
- transition: margin-bottom $list-toogle-speed cubic-bezier(0, 0, 0, 1);
817
- margin-bottom: 0;
818
- visibility: visible;
819
- max-height: 1000000px;
820
- }
821
- // 打開 -----------------
822
- }
823
- }
824
-
825
- // 側邊的清單 ------------------------------------------
826
-
827
-
828
-
829
- // navbar ------------------------------------------
830
- .nav-link.active{
831
- font-weight: $font-weight-bold;
832
- }
833
- // navbar ------------------------------------------
834
-
835
-
836
- // 有底線的 tab bar ------------------------------------------
837
- .navbar-line{
838
- &:hover .navbar-line-item{
839
- &:before { will-change: width, left; }
840
- ~ .navbar-line-item:before{ will-change: left; }
841
- }
842
- // LG 版本 (底線較粗)
843
- &.navbar-line-lg .navbar-line-item:before{
844
- border-bottom-width: 4px;
845
- }
846
- }
847
-
848
- a.navbar-line-item{
849
- --bs-link-color-rgb: 100, 122, 241;
850
- }
851
- .navbar-line-item{
852
- position: relative;
853
- @include flex-center();
854
- --bs-navbar-nav-link-padding-x: 1.5rem;
855
- color: var(--bs-nav-link-color);
856
- &:before{
857
- content: "";
858
- position: absolute;
859
- top: 0;
860
- left: 100%;
861
- width: 0;
862
- height: 100%;
863
- border-bottom: 2px solid var(--bs-link-color);
864
- transition: $transition-base;
865
- pointer-events: none;
866
- z-index: 1;
867
- }
868
- &:hover{
869
- background: $primary-bg-light;
870
- &:before {
871
- width: 100%;
872
- left: 0;
873
- }
874
- ~ .navbar-line-item:before{
875
- left: 0;
876
- }
877
- }
878
- &:not(.active):hover:before{
879
- border-color: $primary-sub-highlight;
880
- }
881
- &.active:before{
882
- width: 100%;
883
- left: 0;
884
- }
885
- }
886
- // dropdown 版本
887
- .navbar-line-item.dropdown{
888
- padding: 0;
889
- padding-left: 0 !important;
890
- padding-right: 0 !important;
891
- // (firefox 暫不支援)
892
- &:has(.dropdown-toggle[aria-expanded="true"]){
893
- background: $primary-bg-light;
894
- &:before{
895
- width: 100%;
896
- left: 0;
897
- border-bottom-color: $primary-sub-highlight;
898
- }
899
- }
900
- &:not(.active) .dropdown-link{
901
- color: var(--bs-nav-link-color);
902
- }
903
- .dropdown-link{
904
- @include flex-center();
905
- height: 100%;
906
- padding: var(--bs-nav-link-padding-y) var(--bs-navbar-nav-link-padding-x);
907
- }
908
- .dropdown-toggle[aria-expanded="true"]{
909
- color: $primary;
910
- }
911
- }
912
-
913
-
914
- .navbar[data-bs-theme="dark"]{
915
- --dark-theme-primary: #bec9ff;
916
- .navbar-line-item.dropdown:not(.active) .dropdown-link{
917
- color: var(--dark-theme-primary);
918
- }
919
- .navbar-nav .show > .nav-link, .navbar-nav .nav-link.active{
920
- &, a{
921
- color: $white;
922
- }
923
- }
924
- .navbar-line-item:before{
925
- border-bottom-color: var(--dark-theme-primary);
926
- }
927
- .navbar-line-item.dropdown:not(.active) .dropdown-link,
928
- .navbar-line-item:before{
929
- opacity: .9;
930
- }
931
- }
932
- // 有底線的 tab bar ------------------------------------------
933
-
934
-
935
-
936
- // 固定寬度 ------------------------------------------
937
- .w-33{
938
- width: 33.33%;
939
- }
940
- .w-66{
941
- width: 66.66%;
942
- }
943
- @for $i from 1 through 25 {
944
- .w-#{$i}rem {
945
- width: #{$i}rem;
946
- }
947
- }
948
-
949
- // 固定寬度 ------------------------------------------
950
-
951
-
952
-
953
- // 無內容物 UI ------------------------------------------
954
- .no-content{
955
- padding-top: 10rem;
956
- .content-img > .material-icons, p{
957
- opacity: .7;
958
- }
959
- .content-img > .material-icons{
960
- font-size: 6rem;
961
- margin-bottom: 0.5rem;
962
- opacity: .5;
963
- }
964
- p{
965
- font-size: 1.25rem;
966
- }
967
- }
968
- // 無內容物 UI ------------------------------------------
969
-
970
-
971
-
972
- // 暫定:螢幕寬度小於 991px (含) 不可使用 ------------------------------------------
973
- .mobile-forbidden{
974
- display: none;
975
- }
976
- @media only screen and (max-width: 991px) {
977
- body{
978
- overflow: hidden;
979
- }
980
- .mobile-forbidden{
981
- position: fixed;
982
- top: 0;
983
- left: 0;
984
- right: 0;
985
- bottom: 0;
986
- margin: auto;
987
- @include flex-center();
988
- flex-direction: column;
989
- padding: 2rem;
990
- font-size: $font-size-lg;
991
- text-align: center;
992
- color: var(--gray-500);
993
- background: $white $gradient-blue-light;
994
- z-index: $zindex-max;
995
- img {
996
- width: 20rem;
997
- }
998
- }
999
- }
1000
- // 暫定:螢幕寬度小於 991px (含) 不可使用 ------------------------------------------
1001
-
1002
-
1003
-
1004
- // sweet alert ------------------------------------------
1005
- .swal2-container{
1006
- &.swal2-backdrop-show, &.swal2-noanimation{
1007
- backdrop-filter: var(--backdrop-blur);
1008
- }
1009
- }
1010
-
1011
- div:where(.swal2-container){
1012
- .swal2-html-container{
1013
- font-size: 1rem !important;
1014
- color: var(--bs-body-color) !important;
1015
- }
1016
- h2:where(.swal2-title){
1017
- font-size: 1.5rem !important;
1018
- color: var(--bs-emphasis-color) !important;
1019
- }
1020
- .swal2-actions{
1021
- flex-direction: row-reverse;
1022
- width: 100%;
1023
- }
1024
- button:where(.swal2-styled){
1025
- margin-left: .5rem !important;
1026
- margin-right: .5rem !important;
1027
- }
1028
-
1029
- button:where(.swal2-styled).swal2-cancel{
1030
- background-color: $secondary !important;
1031
- }
1032
- }
1
+ // ====================================
2
+ // Plugin
3
+ // ====================================
4
+
5
+ // Custom Bootstrap
6
+ @import "../../../../bootstrap/scss/functions";
7
+ @import "../Settings/bs-variables";
8
+ @import "../../../../bootstrap/scss/bootstrap.scss";
9
+
10
+
11
+ // ====================================
12
+ // Helpers
13
+ // ====================================
14
+
15
+ // Mixins
16
+ @import "../Settings/Mixins";
17
+
18
+
19
+ // ====================================
20
+ // Custom Style
21
+ // ====================================
22
+
23
+ @import "../Settings/color-mode";
24
+ @import "../Settings/custom-variables";
25
+
26
+
27
+ @mixin gradient-bg(){
28
+ &:before{
29
+ content: "";
30
+ display: block;
31
+ @include position-center();
32
+ z-index: 0;
33
+ background: $gradient-blue-light;
34
+ pointer-events: none;
35
+ transition: $transition-base;
36
+ }
37
+ }
38
+
39
+ @mixin gradient-bg-hover-to-show($opacity: 1){
40
+ @include gradient-bg();
41
+ &:before{ opacity: 0; }
42
+ &:hover:before{ opacity: $opacity; }
43
+ }
44
+
45
+ // general ------------------------------------------
46
+ :root{
47
+ --backdrop-blur: blur(2px);
48
+
49
+ // ====================================
50
+ // scrollbar樣式
51
+ // ====================================
52
+ --scrollbar-width: 10px;
53
+ }
54
+
55
+ [v-cloak]{
56
+ display: none !important;
57
+ }
58
+
59
+ html,
60
+ .overflow-auto, .overflow-scroll,
61
+ .overflow-y-auto, .overflow-y-scroll,
62
+ .offcanvas-body, textarea{
63
+ @include scrollbar();
64
+ transition: $transition-base;
65
+ }
66
+
67
+ .overflow-x-auto, .overflow-x-scroll, .scrollbar-sm, .table-responsive{
68
+ @include scrollbar();
69
+ --scrollbar-width: 6px;
70
+ overflow-x: auto;
71
+ -webkit-overflow-scrolling: touch;
72
+ }
73
+
74
+ .scrollbar-gutter-stable{
75
+ // Safari 暫不支援
76
+ scrollbar-gutter: stable;
77
+ }
78
+
79
+ body{
80
+ background-color: var(--gray-200);
81
+ --maz-color-primary: var(--bs-primary);
82
+ --maz-color-secondary: var(--bs-secondary);
83
+ --maz-color-info: var(--bs-info);
84
+ --maz-color-success: var(--bs-success);
85
+ --maz-color-warning: var(--bs-warning);
86
+ --maz-color-danger: var(--bs-danger);
87
+ --maz-color-bg: var(--bs-body-bg);
88
+ --maz-color-text: var(--bs-body-color);
89
+ --maz-color-muted: var(--bs-secondary-color);
90
+ }
91
+
92
+ ul, ol{
93
+ &.list-reset{
94
+ list-style-type: none;
95
+ padding-left: 0;
96
+ }
97
+ }
98
+ // general ------------------------------------------
99
+
100
+
101
+ // text / link ------------------------------------------
102
+
103
+ a{
104
+ text-decoration: none;
105
+ // 如果需要底線使用 <u></u> tag
106
+ transition: $transition-base;
107
+ &.a-reset-color{
108
+ color: inherit;
109
+ }
110
+ &.a-hover-gradient{
111
+ position: relative;
112
+ @include gradient-bg-hover-to-show();
113
+ }
114
+ }
115
+
116
+ .text-link{
117
+ color: var(--bs-link-color);
118
+ &:hover{
119
+ color: var(--bs-link-hover-color);
120
+ }
121
+ }
122
+
123
+ .text-pre-wrap{
124
+ white-space: pre-wrap;
125
+ }
126
+
127
+ .fs-min{
128
+ font-size: 12px;
129
+ }
130
+
131
+ .text-overflow{
132
+ @include text-overflow();
133
+ }
134
+
135
+ @for $i from 1 through 5 {
136
+ .text-line-clamp-#{$i} {
137
+ @include text-line-clamp(#{$i});
138
+ }
139
+ }
140
+
141
+ @for $i from 1 through 5 {
142
+ .letter-spacing-#{$i} {
143
+ letter-spacing: #{$i}px;
144
+ }
145
+ }
146
+
147
+ // text / link ------------------------------------------
148
+
149
+
150
+ // border ------------------------------------------
151
+ .hover-border{
152
+ transition: $transition-base;
153
+ &:hover{
154
+ box-shadow: $focus-ring-box-shadow;
155
+ }
156
+ }
157
+ .active-border{
158
+ box-shadow: $focus-ring-box-shadow;
159
+ }
160
+ // border ------------------------------------------
161
+
162
+
163
+ // badge outline ------------------------------------------
164
+
165
+ @each $color, $value in $colors {
166
+ .badge-outline-#{$color}{
167
+ color: $value;
168
+ border: $border-width solid rgba($value, .5);
169
+ background-color: rgba($value, .1);
170
+ }
171
+ }
172
+
173
+ // badge outline ------------------------------------------
174
+
175
+
176
+ // input ------------------------------------------
177
+ .form-control{
178
+ caret-color: $primary;
179
+ }
180
+ // input ------------------------------------------
181
+
182
+
183
+ // checkbox / radio ------------------------------------------
184
+
185
+ .check-label{
186
+ cursor: pointer;
187
+ &, &:before, span{
188
+ vertical-align: middle;
189
+ transition: $transition-base;
190
+ }
191
+ &:before{
192
+ content: "check_box_outline_blank";
193
+ display: inline-block;
194
+ margin-right: .1em;
195
+ color: var(--gray-500);
196
+ font-family: 'Material Icons';
197
+ font-size: 120%;
198
+ line-height: inherit;
199
+ white-space: nowrap;
200
+ -webkit-font-feature-settings: 'liga';
201
+ -webkit-font-smoothing: antialiased;
202
+ }
203
+ &:not(.badge):hover{
204
+ &, &:before, span{
205
+ color: $primary;
206
+ }
207
+ }
208
+ }
209
+
210
+ .check-group{
211
+ position: relative;
212
+ display: inline-block;
213
+ vertical-align: middle;
214
+ &:not(:last-child){
215
+ margin-right: 1em;
216
+ }
217
+ > input[type="checkbox"], > input[type="radio"]{
218
+ position: absolute;
219
+ opacity: 0;
220
+ pointer-events: none;
221
+ &:checked ~ .check-label:before{
222
+ color: $primary;
223
+ }
224
+ // disabled style
225
+ &:disabled ~ .check-label{
226
+ cursor: not-allowed;
227
+ span, &:hover span,
228
+ &:before, &:hover &:before{
229
+ color: var(--gray-500);
230
+ }
231
+ }
232
+ &:checked:disabled ~ .check-label{
233
+ &:before, &:hover &:before{
234
+ color: var(--gray-600);
235
+ }
236
+ }
237
+ }
238
+ > input[type="checkbox"] ~ .check-label:before{ content: "check_box_outline_blank"; }
239
+ > input[type="radio"] ~ .check-label:before{ content: "radio_button_unchecked"; }
240
+ > input[type="checkbox"]:checked ~ .check-label:before{ content: "check_box"; }
241
+ > input[type="radio"]:checked ~ .check-label:before{ content: "radio_button_checked"; }
242
+ }
243
+ // checkbox / radio ------------------------------------------
244
+
245
+ // star ------------------------------------------
246
+ .check-star-group{
247
+ > input[type="checkbox"], > input[type="radio"]{
248
+ ~ .check-label:before{
249
+ content: "star_border";
250
+ font-size: 1.5em;
251
+ }
252
+ ~ .check-label:hover:before{
253
+ color: $warning;
254
+ }
255
+ &:checked ~ .check-label:before{
256
+ content: "star";
257
+ color: $warning;
258
+ }
259
+ }
260
+ }
261
+ // star ------------------------------------------
262
+
263
+
264
+ // switch ------------------------------------------
265
+
266
+ :root{
267
+ --switch-w: 24px;
268
+ --switch-h: 12px;
269
+ --switch-padding: 2px;
270
+ --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
271
+
272
+ }
273
+ .check-switch-group{
274
+ // reset
275
+ .check-label:before{ content: ""; }
276
+ .check-label .switch-item{
277
+ position: relative;
278
+ display: inline-block;
279
+ width: var(--switch-w);
280
+ height: var(--switch-h);
281
+ border-radius: var(--switch-h);
282
+ background-color: var(--gray-500);
283
+ vertical-align: middle;
284
+ &, &:before{
285
+ transition: $transition-base;
286
+ }
287
+ &:before{
288
+ content: "";
289
+ position: absolute;
290
+ top: 0;
291
+ left: var(--switch-padding);
292
+ bottom: 0;
293
+ margin: auto;
294
+ @include size(var(--switch-ball-size));
295
+ border-radius: 50%;
296
+ background-color: $white;
297
+ }
298
+ }
299
+ > input[type="checkbox"], > input[type="radio"]{
300
+ // reset
301
+ ~ .check-label:before{ content: ""; }
302
+ &:checked ~ .check-label:before{ content: ""; }
303
+
304
+ &:not(:disabled) ~ .check-label:hover .switch-item:before{
305
+ will-change: left;
306
+ }
307
+
308
+ &:checked ~ .check-label .switch-item:before{
309
+ left: calc( var(--switch-w) - var(--switch-padding) - var(--switch-ball-size));
310
+ }
311
+
312
+ // disabled style
313
+ &:disabled ~ .check-label .switch-item{
314
+ background-color: var(--gray-400);
315
+ }
316
+ &:checked:disabled ~ .check-label .switch-item{
317
+ background-color: var(--gray-600);
318
+ }
319
+ }
320
+ &-md{
321
+ --switch-w: 30px;
322
+ --switch-h: 15px;
323
+ --switch-padding: 3px;
324
+ --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
325
+ }
326
+ &-lg{
327
+ --switch-w: 36px;
328
+ --switch-h: 18px;
329
+ --switch-padding: 3px;
330
+ --switch-ball-size: calc( var(--switch-h) - var(--switch-padding)*2);
331
+ }
332
+ &-with-description{
333
+ .switch-item{
334
+ margin-top: .35em;
335
+ }
336
+ .check-label{
337
+ display: flex;
338
+ }
339
+ }
340
+ &-display .check-label{
341
+ cursor: auto;
342
+ }
343
+ }
344
+ @each $color, $value in $colors {
345
+ .check-switch-group.check-switch-group-#{$color}{
346
+ &:hover .check-label .switch-item{
347
+ background-color: rgba($value, .5);
348
+ }
349
+ > input[type="checkbox"], > input[type="radio"]{
350
+ &:checked:not(:disabled) ~ .check-label .switch-item{
351
+ background-color: $value;
352
+ }
353
+ }
354
+ &.check-switch-group-display{
355
+ pointer-events: none;
356
+ }
357
+ &.check-switch-group-display.active .check-label .switch-item{
358
+ background-color: $value;
359
+ &:before{
360
+ left: calc( var(--switch-w) - var(--switch-padding) - var(--switch-ball-size));
361
+ }
362
+ }
363
+ }
364
+ }
365
+
366
+ // badge 版本
367
+ .check-label.badge{
368
+ --bs-badge-padding-x: 1em;
369
+ --bs-badge-padding-y: 0.5em;
370
+ --bs-badge-font-size: var(--bs-body-font-size);
371
+ --bs-badge-font-weight: --bs-body-font-weight;
372
+ }
373
+ .check-switch-group.check-switch-group{
374
+ input:not(:checked) ~ .check-label.badge{
375
+ background-color: var(--gray-100);
376
+ border-color: var(--gray-300);
377
+ span{
378
+ color: var(--gray-500);
379
+ }
380
+ }
381
+ input:not(:checked):disabled ~ .check-label.badge{
382
+ &:hover{
383
+ background-color: var(--gray-100);
384
+ border-color: var(--gray-300);
385
+ }
386
+ &:hover span, span{
387
+ color: var(--gray-400);
388
+ }
389
+ }
390
+ input:checked ~ .check-label.badge{
391
+ &:hover span, span{
392
+ color: currentColor;
393
+ }
394
+ .switch-item{
395
+ background-color: currentColor;
396
+ }
397
+ }
398
+ }
399
+ @each $color, $value in $colors {
400
+ .check-switch-group.check-switch-group-#{$color}{
401
+ input:not(:disabled):not(:checked) ~ .check-label.badge:hover{
402
+ background-color: rgba($value, .05);
403
+ border-color: rgba($value, .25);
404
+ .switch-item{
405
+ background-color: rgba($value, .5);
406
+ }
407
+ span{
408
+ color: rgba($value, .75);
409
+ }
410
+ }
411
+ }
412
+ }
413
+ // switch ------------------------------------------
414
+
415
+
416
+
417
+
418
+ // table ------------------------------------------
419
+ th, td{
420
+ transition: $transition-base;
421
+ }
422
+ .table > .thead-default:not(caption) > * > *{
423
+ font-size: $font-size-sm;
424
+ background-color: var(--gray-200);
425
+ letter-spacing: 0.5px;
426
+ }
427
+
428
+ // firefox 暫不支援
429
+ .table tr:has(.dropdown-delete:hover){
430
+ th:not([scope="col"]), td:not([scope="col"]){
431
+ --bs-table-accent-bg: transparent;
432
+ --bs-table-bg: transparent;
433
+ background-color: $table-danger-bg;
434
+ color: var(--bs-danger);
435
+ box-shadow: none;
436
+ }
437
+ }
438
+
439
+ .table .dropdown-menu{
440
+ z-index: $zindex-sticky + 1;
441
+ }
442
+
443
+ // table ------------------------------------------
444
+
445
+
446
+
447
+ // icon ------------------------------------------
448
+ .text-with-icon > *{
449
+ vertical-align: middle;
450
+ }
451
+
452
+ .material-icons{
453
+ $icon-sizes: 14, 18, 24, 28, 32;
454
+
455
+ font-size: 24px;
456
+ @each $size in $icon-sizes{
457
+ &.icon-#{$size} { font-size: #{$size}px; }
458
+ }
459
+ }
460
+ // icon ------------------------------------------
461
+
462
+
463
+ // button ------------------------------------------
464
+ .btn > *{
465
+ vertical-align: middle;
466
+ }
467
+
468
+ .btn-round-effect{
469
+ position: relative;
470
+ display: inline-flex;
471
+ align-items: center;
472
+ justify-content: center;
473
+ @include size(2em);
474
+ padding: 0;
475
+ text-decoration: none;
476
+ *{
477
+ z-index: 2;
478
+ }
479
+ &:before{
480
+ content: "";
481
+ display: block;
482
+ @include position-center();
483
+ border-radius: 50%;
484
+ background-color: var(--bs-link-color);
485
+ z-index: 1;
486
+ opacity: 0;
487
+ transform: scale(0);
488
+ transition: $transition-base;
489
+ }
490
+ &:hover:before{
491
+ opacity: .1;
492
+ transform: scale(1);
493
+ }
494
+ }
495
+
496
+ .btn-link-light-bg {
497
+ text-decoration: none;
498
+ &:hover {
499
+ color: var(--bs-btn-color);
500
+ background-color: rgba(var(--bs-link-color-rgb), .1);
501
+ }
502
+ }
503
+
504
+
505
+ @keyframes gradient-position {
506
+ 0% {
507
+ transform: translateX(0);
508
+ }
509
+ 50% {
510
+ transform: translateX(-50%);
511
+ }
512
+ 100% {
513
+ transform: translateX(0);
514
+ }
515
+ }
516
+ .btn-gradient-effect{
517
+ --bs-btn-color: #fff;
518
+ --bs-btn-hover-color: #fff;
519
+ --bs-btn-active-color: #fff;
520
+
521
+ position: relative;
522
+ overflow: hidden;
523
+ border: 0;
524
+
525
+ &:before{
526
+ content: "";
527
+ display: block;
528
+ position: absolute;
529
+ top: 0; left: 0;
530
+ width: 200%; height: 100%;
531
+ background: linear-gradient(110deg, $cyan 0%, $purple 50%, $cyan 100%);
532
+ animation: gradient-position 3s ease-in-out infinite;
533
+ animation-fill-mode: both;
534
+ z-index: 1;
535
+ transition: $transition-base;
536
+ }
537
+ &, &:hover, &:hover:active{
538
+ background-color: $primary;
539
+ }
540
+ &:hover:before{
541
+ opacity: .4;
542
+ }
543
+ &:focus{
544
+ box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
545
+ }
546
+ > *{
547
+ position: relative;
548
+ z-index: 2;
549
+ }
550
+ }
551
+ // button ------------------------------------------
552
+
553
+
554
+ // input ------------------------------------------
555
+ .form-group{
556
+ > label, .form-label{
557
+ margin-bottom: 0.25rem;
558
+ color: var(--gray-500);
559
+ font-size: $font-size-sm;
560
+ font-weight: $font-weight-bold;
561
+ }
562
+ }
563
+
564
+ .form-group-frame{
565
+ padding: 1rem;
566
+ border-bottom: $border-width solid $border-color;
567
+ }
568
+ // input ------------------------------------------
569
+
570
+
571
+ // image ------------------------------------------
572
+ .thumbnail-content{
573
+ $thumbnail-sizes: 32, 50, 100, 150;
574
+
575
+ @include size(50px);
576
+ background-color: $white;
577
+ background-position: 50% 50%;
578
+ background-size: cover;
579
+ border: $border-width solid var(--#{$prefix}border-color);
580
+ border-radius: 50%;
581
+ overflow: hidden;
582
+ @each $size in $thumbnail-sizes{
583
+ &.thumbnail-#{$size} { @include solid-size(#{$size}px); }
584
+ }
585
+ &.thumbnail-rwd{
586
+ @include rwd-square(100%);
587
+ }
588
+ }
589
+ // image ------------------------------------------
590
+
591
+
592
+ // dropdown ------------------------------------------
593
+ .dropdown-menu{
594
+ box-shadow: $box-shadow;
595
+ }
596
+ .dropdown-delete{
597
+ color: $danger;
598
+ &:hover{
599
+ --bs-dropdown-link-hover-bg: var(--bs-danger);
600
+ background-color: $danger;
601
+ }
602
+ }
603
+ .dropdown-menu{
604
+ --scrollbar-width: 8px;
605
+ --scrollbar-hover-color: rgba(var(--bs-link-color-rgb), 0.5);
606
+ overflow: auto;
607
+ overscroll-behavior: contain;
608
+ @include scrollbar();
609
+ }
610
+ // dropdown ------------------------------------------
611
+
612
+
613
+ // modal ------------------------------------------
614
+ .modal{
615
+ backdrop-filter: var(--backdrop-blur);
616
+ }
617
+
618
+ .modal-md{
619
+ min-width: 650px;
620
+ }
621
+
622
+ .modal-long-content .overflow-y-auto{
623
+ height: 75vh;
624
+ }
625
+ // modal ------------------------------------------
626
+
627
+
628
+ // offcanvas ------------------------------------------
629
+ .offcanvas-backdrop{
630
+ background-color: rgba($offcanvas-backdrop-bg, $offcanvas-backdrop-opacity);
631
+ &.show{
632
+ backdrop-filter: var(--backdrop-blur);
633
+ opacity: 1;
634
+ }
635
+ }
636
+ .offcanvas{
637
+ &-md-size{
638
+ --bs-offcanvas-width: 550px;
639
+ }
640
+ &-lg-size{
641
+ --bs-offcanvas-width: 800px;
642
+ }
643
+ &-xl-size{
644
+ --bs-offcanvas-width: 1000px;
645
+ }
646
+ }
647
+ // offcanvas ------------------------------------------
648
+
649
+
650
+ // navbar ------------------------------------------
651
+ $navbar-h: 60px;
652
+ .navbar-main{
653
+ &, .btn.btn-normal, .navbar-line-item {
654
+ min-height: $navbar-h;
655
+ }
656
+ .btn.btn-normal{
657
+ @include flex-center();
658
+ border-radius: 0;
659
+ color: var(--bs-nav-link-color);
660
+ &:hover{
661
+ color: var(--bs-link-color);
662
+ background-color: $primary-bg-light;
663
+ }
664
+ }
665
+ .btn-square{
666
+ @include size($navbar-h);
667
+ }
668
+ }
669
+ // navbar ------------------------------------------
670
+
671
+
672
+ // 側邊的清單 ------------------------------------------
673
+
674
+ $list-highlight-border-w: .4rem;
675
+
676
+ @mixin list-group-active(){
677
+ font-weight: $font-weight-medium;
678
+ border-left-color: currentColor;
679
+ --bs-list-group-active-color: var(--bs-link-color);
680
+ --bs-list-group-active-bg: transparent;
681
+ @include gradient-bg();
682
+ }
683
+
684
+ .list-group{
685
+ overflow: hidden;
686
+ &, > li{
687
+ list-style-type: none !important;
688
+ }
689
+ > li{
690
+ position: relative;
691
+ }
692
+ .material-icon-more{
693
+ transition: $transition-base;
694
+ }
695
+ }
696
+
697
+ // 一般選單 style
698
+ $list-item-padding-x: 1rem;
699
+
700
+ .list-group-aside{
701
+ border-radius: 0;
702
+ .list-group-item{
703
+ display: flex;
704
+ align-items: center;
705
+ padding: .8rem $list-item-padding-x;
706
+ border-right: 0;
707
+ border-color: transparent;
708
+ border-left: $list-highlight-border-w solid transparent;
709
+ background-color: var(--bs-body-bg);
710
+ cursor: pointer;
711
+ transition: $transition-base;
712
+ &:before{ content: ""; }
713
+ &.active{
714
+ @include list-group-active();
715
+ }
716
+ &:not(.active):hover{
717
+ border-top-color: var(--bs-body-bg);
718
+ border-bottom-color: rgba(var(--bs-link-color-rgb), .1);
719
+ border-left-color: $primary-sub-highlight;
720
+ --bs-list-group-action-hover-color: rgba(var(--bs-link-color-rgb), .8);
721
+ --bs-list-group-action-hover-bg: transparent;
722
+ @include gradient-bg-hover-to-show(.7);
723
+ }
724
+ &:hover .material-icon-more{
725
+ color: var(--bs-link-color);
726
+ }
727
+ }
728
+ }
729
+
730
+ // 子選單 style
731
+ .child-body, .child-container{
732
+ width: 100%;
733
+ }
734
+ .child-body{
735
+ background: var(--gray-100);
736
+ }
737
+ .child-container{
738
+ border-left: $list-highlight-border-w solid var(--gray-400);
739
+ }
740
+ .child-list-head{
741
+ padding: .25rem $list-item-padding-x;
742
+ color: var(--gray-500);
743
+ background-color: var(--gray-200);
744
+ font-weight: $font-weight-bold;
745
+ border-bottom: $border-width solid var(--gray-400);
746
+ }
747
+ a.child-list-item{
748
+ position: relative;
749
+ display: block;
750
+ padding: .5rem $list-item-padding-x;
751
+ font-size: $font-size-sm;
752
+
753
+ &:hover{
754
+ color: var(--bs-link-color);
755
+ }
756
+ &.active{
757
+ color: var(--bs-link-color);
758
+ @include gradient-bg();
759
+ }
760
+ &.disabled, &:disabled{
761
+ color: var(--bs-list-group-disabled-color);
762
+ pointer-events: none;
763
+ }
764
+ @include gradient-bg-hover-to-show(.7);
765
+ }
766
+
767
+
768
+ // 子選單開合
769
+ // https://stackoverflow.com/questions/3508605/how-can-i-transition-height-0-to-height-auto-using-css
770
+ $list-toogle-speed: .35s;
771
+ $list-toogle-in-background: $list-toogle-speed linear;
772
+
773
+ .list-group-haschild:hover ~ .child-body{
774
+ &:after{ will-change: height, max-height; }
775
+ > .child-container { will-change: max-height, margin-bottom; }
776
+ }
777
+
778
+ .child-body{
779
+ position: relative;
780
+ display: flex;
781
+ overflow: hidden;
782
+ &:after { content: ''; }
783
+ // 關閉 -----------------
784
+ &:after{
785
+ height: 0;
786
+ max-height: 50px;
787
+ transition: height $list-toogle-in-background;
788
+ }
789
+ > .child-container {
790
+ margin-bottom: -2000px;
791
+ visibility: hidden;
792
+ max-height: 0;
793
+ transition: margin-bottom $list-toogle-speed cubic-bezier(1, 0, 1, 1),
794
+ visibility 0s $list-toogle-speed,
795
+ max-height 0s $list-toogle-speed;
796
+ }
797
+ // 關閉 -----------------
798
+ }
799
+
800
+ .list-group-haschild-input:checked{
801
+ ~ .list-group-item{
802
+ @include list-group-active();
803
+ .material-icon-more{
804
+ transform: rotate(-180deg);
805
+ }
806
+ }
807
+ ~ .child-body{
808
+ // 打開 -----------------
809
+ &:after {
810
+ height: 50px;
811
+ transition: height $list-toogle-in-background,
812
+ max-height 0s $list-toogle-in-background;
813
+ max-height: 0px;
814
+ }
815
+ > .child-container{
816
+ transition: margin-bottom $list-toogle-speed cubic-bezier(0, 0, 0, 1);
817
+ margin-bottom: 0;
818
+ visibility: visible;
819
+ max-height: 1000000px;
820
+ }
821
+ // 打開 -----------------
822
+ }
823
+ }
824
+
825
+ // 側邊的清單 ------------------------------------------
826
+
827
+
828
+
829
+ // navbar ------------------------------------------
830
+ .nav-link.active{
831
+ font-weight: $font-weight-bold;
832
+ }
833
+ // navbar ------------------------------------------
834
+
835
+
836
+ // 有底線的 tab bar ------------------------------------------
837
+ .navbar-line{
838
+ &:hover .navbar-line-item{
839
+ &:before { will-change: width, left; }
840
+ ~ .navbar-line-item:before{ will-change: left; }
841
+ }
842
+ // LG 版本 (底線較粗)
843
+ &.navbar-line-lg .navbar-line-item:before{
844
+ border-bottom-width: 4px;
845
+ }
846
+ }
847
+
848
+ a.navbar-line-item{
849
+ --bs-link-color-rgb: 100, 122, 241;
850
+ }
851
+ .navbar-line-item{
852
+ position: relative;
853
+ @include flex-center();
854
+ --bs-navbar-nav-link-padding-x: 1.5rem;
855
+ color: var(--bs-nav-link-color);
856
+ &:before{
857
+ content: "";
858
+ position: absolute;
859
+ top: 0;
860
+ left: 100%;
861
+ width: 0;
862
+ height: 100%;
863
+ border-bottom: 2px solid var(--bs-link-color);
864
+ transition: $transition-base;
865
+ pointer-events: none;
866
+ z-index: 1;
867
+ }
868
+ &:hover{
869
+ background: $primary-bg-light;
870
+ &:before {
871
+ width: 100%;
872
+ left: 0;
873
+ }
874
+ ~ .navbar-line-item:before{
875
+ left: 0;
876
+ }
877
+ }
878
+ &:not(.active):hover:before{
879
+ border-color: $primary-sub-highlight;
880
+ }
881
+ &.active:before{
882
+ width: 100%;
883
+ left: 0;
884
+ }
885
+ }
886
+ // dropdown 版本
887
+ .navbar-line-item.dropdown{
888
+ padding: 0;
889
+ padding-left: 0 !important;
890
+ padding-right: 0 !important;
891
+ // (firefox 暫不支援)
892
+ &:has(.dropdown-toggle[aria-expanded="true"]){
893
+ background: $primary-bg-light;
894
+ &:before{
895
+ width: 100%;
896
+ left: 0;
897
+ border-bottom-color: $primary-sub-highlight;
898
+ }
899
+ }
900
+ &:not(.active) .dropdown-link{
901
+ color: var(--bs-nav-link-color);
902
+ }
903
+ .dropdown-link{
904
+ @include flex-center();
905
+ height: 100%;
906
+ padding: var(--bs-nav-link-padding-y) var(--bs-navbar-nav-link-padding-x);
907
+ }
908
+ .dropdown-toggle[aria-expanded="true"]{
909
+ color: $primary;
910
+ }
911
+ }
912
+
913
+
914
+ .navbar[data-bs-theme="dark"]{
915
+ --dark-theme-primary: #bec9ff;
916
+ .navbar-line-item.dropdown:not(.active) .dropdown-link{
917
+ color: var(--dark-theme-primary);
918
+ }
919
+ .navbar-nav .show > .nav-link, .navbar-nav .nav-link.active{
920
+ &, a{
921
+ color: $white;
922
+ }
923
+ }
924
+ .navbar-line-item:before{
925
+ border-bottom-color: var(--dark-theme-primary);
926
+ }
927
+ .navbar-line-item.dropdown:not(.active) .dropdown-link,
928
+ .navbar-line-item:before{
929
+ opacity: .9;
930
+ }
931
+ }
932
+ // 有底線的 tab bar ------------------------------------------
933
+
934
+
935
+
936
+ // 固定寬度 ------------------------------------------
937
+ .w-33{
938
+ width: 33.33%;
939
+ }
940
+ .w-66{
941
+ width: 66.66%;
942
+ }
943
+ @for $i from 1 through 25 {
944
+ .w-#{$i}rem {
945
+ width: #{$i}rem;
946
+ }
947
+ }
948
+
949
+ // 固定寬度 ------------------------------------------
950
+
951
+
952
+
953
+ // 無內容物 UI ------------------------------------------
954
+ .no-content{
955
+ padding-top: 10rem;
956
+ .content-img > .material-icons, p{
957
+ opacity: .7;
958
+ }
959
+ .content-img > .material-icons{
960
+ font-size: 6rem;
961
+ margin-bottom: 0.5rem;
962
+ opacity: .5;
963
+ }
964
+ p{
965
+ font-size: 1.25rem;
966
+ }
967
+ }
968
+ // 無內容物 UI ------------------------------------------
969
+
970
+
971
+
972
+ // 暫定:螢幕寬度小於 991px (含) 不可使用 ------------------------------------------
973
+ .mobile-forbidden{
974
+ display: none;
975
+ }
976
+ @media only screen and (max-width: 991px) {
977
+ body{
978
+ overflow: hidden;
979
+ }
980
+ .mobile-forbidden{
981
+ position: fixed;
982
+ top: 0;
983
+ left: 0;
984
+ right: 0;
985
+ bottom: 0;
986
+ margin: auto;
987
+ @include flex-center();
988
+ flex-direction: column;
989
+ padding: 2rem;
990
+ font-size: $font-size-lg;
991
+ text-align: center;
992
+ color: var(--gray-500);
993
+ background: $white $gradient-blue-light;
994
+ z-index: $zindex-max;
995
+ img {
996
+ width: 20rem;
997
+ }
998
+ }
999
+ }
1000
+ // 暫定:螢幕寬度小於 991px (含) 不可使用 ------------------------------------------
1001
+
1002
+
1003
+
1004
+ // sweet alert ------------------------------------------
1005
+ .swal2-container{
1006
+ &.swal2-backdrop-show, &.swal2-noanimation{
1007
+ backdrop-filter: var(--backdrop-blur);
1008
+ }
1009
+ }
1010
+
1011
+ div:where(.swal2-container){
1012
+ .swal2-html-container{
1013
+ font-size: 1rem !important;
1014
+ color: var(--bs-body-color) !important;
1015
+ }
1016
+ h2:where(.swal2-title){
1017
+ font-size: 1.5rem !important;
1018
+ color: var(--bs-emphasis-color) !important;
1019
+ }
1020
+ .swal2-actions{
1021
+ flex-direction: row-reverse;
1022
+ width: 100%;
1023
+ }
1024
+ button:where(.swal2-styled){
1025
+ margin-left: .5rem !important;
1026
+ margin-right: .5rem !important;
1027
+ }
1028
+
1029
+ button:where(.swal2-styled).swal2-cancel{
1030
+ background-color: $secondary !important;
1031
+ }
1032
+ }
1033
1033
  // sweet alert ------------------------------------------