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

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