jobdone-shared-files 0.0.1-beta.80 → 0.0.1-beta.81

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