jobdone-shared-files 1.1.19 → 1.1.20-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,377 @@
1
+ #ModalFileRepository {
2
+ .btn>* {
3
+ vertical-align: middle;
4
+ }
5
+
6
+ .btn-link {
7
+ text-decoration: none;
8
+
9
+ }
10
+ .material-icons {
11
+ font-size: inherit;
12
+ }
13
+
14
+ &.modal.sub-modal {
15
+ backdrop-filter: none;
16
+ background-color: rgba(#000000, 0.1);
17
+
18
+
19
+ .modal-content {
20
+ box-shadow: var(--bs-box-shadow-lg);
21
+ }
22
+
23
+ >.modal-dialog:not(.modal-fullscreen) {
24
+ max-height: calc(100% - 100px);
25
+ margin-top: 60px;
26
+ margin-bottom: 40px;
27
+
28
+ @each $key,
29
+ $breakpoint in $grid-breakpoints {
30
+ @media (max-width: $breakpoint) {
31
+ &.modal-fullscreen-#{$key}-down {
32
+ max-height: 100%;
33
+ margin-top: 0;
34
+ margin-bottom: 0;
35
+ }
36
+ }
37
+
38
+ }
39
+ }
40
+ }
41
+
42
+ .the-month-content {
43
+ margin-bottom: 2rem;
44
+
45
+
46
+ .the-month-content-header {
47
+ font-size: 1.25rem;
48
+ border-bottom: 1px solid var(--gray-300);
49
+ padding-top: .75rem;
50
+ padding-bottom: .5rem;
51
+ margin-bottom: .5rem;
52
+ position: sticky;
53
+ top: 0;
54
+ backdrop-filter: blur(2px);
55
+ background-color: rgba(white, .8);
56
+ z-index: 10;
57
+ }
58
+
59
+ .the-month-content-body {
60
+ display: grid;
61
+ gap: .25rem;
62
+ grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
63
+ }
64
+
65
+ .the-date-content {
66
+ display: flex;
67
+ justify-content: flex-end;
68
+ flex-direction: column;
69
+ position: relative;
70
+
71
+ .the-date-content-header {
72
+ margin-bottom: 0.25rem;
73
+ font-size: 0.875rem;
74
+ display: grid;
75
+ grid-template-columns: 3px auto 1fr;
76
+ gap: 0.5rem;
77
+ line-height: 1.25rem;
78
+ color: var(--gray-800);
79
+ padding-top: 0.5rem;
80
+ padding-bottom: .5rem;
81
+ margin-bottom: auto;
82
+
83
+ &::before {
84
+ display: block;
85
+ content: " ";
86
+ width: 3px;
87
+ background-color: var(--bs-primary);
88
+ border-radius: 99px;
89
+ }
90
+ }
91
+
92
+ .the-date-content-body {
93
+ position: relative;
94
+ padding: 0;
95
+ transition: .1s ease-out;
96
+
97
+ &:has(.is-selected) {
98
+ border: 3px solid rgba(var(--bs-primary-rgb), 0.8);
99
+ border-radius: calc(var(--bs-border-radius) + 3px);
100
+ background-color: #fff;
101
+ transform: scale(.95);
102
+
103
+ .multimedia-preview-content {
104
+ transform: scale(.95);
105
+ }
106
+ }
107
+ }
108
+
109
+ .the-date-content-footer {
110
+ opacity: 0;
111
+ position: absolute;
112
+ transition: .3s ease-out;
113
+ bottom: 0;
114
+ z-index: 10;
115
+ padding: 0.5rem;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: flex-end;
119
+ width: 100%;
120
+ gap: .5rem;
121
+ background: linear-gradient(#00000000, #000000b0);
122
+ border-bottom-left-radius: var(--bs-border-radius);
123
+ border-bottom-right-radius: var(--bs-border-radius);
124
+
125
+ .save-file,
126
+ .more-info {
127
+ width: 1.5rem;
128
+ height: 1.5rem;
129
+ background-color: transparent;
130
+ z-index: 10;
131
+ margin: 0;
132
+ font-size: 0.5rem;
133
+ display: flex;
134
+ border: none;
135
+ align-items: center;
136
+ justify-content: center;
137
+ color: #fff;
138
+ transition: 0.3s ease-out;
139
+
140
+ &::before {
141
+ transition: 0.3s ease-out;
142
+ font-size: 1.25rem;
143
+ }
144
+
145
+ &:hover::before {
146
+ color: var(--blue-500);
147
+ }
148
+ }
149
+
150
+ .save-file {
151
+ &::before {
152
+ content: "file_download";
153
+ font-family: "Material Icons";
154
+ }
155
+
156
+ &:hover {
157
+ cursor: pointer;
158
+ }
159
+ }
160
+
161
+ .more-info {
162
+ &::before {
163
+ content: "info";
164
+ font-family: "Material Icons";
165
+ }
166
+
167
+ &:hover {
168
+ cursor: pointer;
169
+ }
170
+
171
+ }
172
+ }
173
+
174
+ &:hover,
175
+ &.batch-operating {
176
+
177
+ .the-date-content-footer,
178
+ .select-control {
179
+ opacity: 1;
180
+ }
181
+
182
+ .multimedia-preview-content.is-video::before {
183
+ transform: scale(1.1);
184
+ }
185
+ }
186
+
187
+ &:hover {
188
+ cursor: pointer;
189
+
190
+ img {
191
+ transform: scale(1.05);
192
+ }
193
+ }
194
+ }
195
+
196
+ .multimedia-select-content {
197
+ position: absolute;
198
+ width: 100%;
199
+ width: -webkit-fill-available;
200
+
201
+ .select-control {
202
+ border: 0;
203
+ background-color: transparent;
204
+ top: 0;
205
+ right: 0;
206
+ padding: 0.5rem;
207
+ z-index: 10;
208
+ margin: 0;
209
+ position: absolute;
210
+ user-select: none;
211
+ // opacity: 0;
212
+ transition: opacity 0.2s ease-out;
213
+
214
+ &::before {
215
+ content: "check";
216
+ display: block;
217
+ position: absolute;
218
+ margin: auto;
219
+ color: #fff;
220
+ font-size: 1rem;
221
+ line-height: 1rem;
222
+ opacity: .5;
223
+ font-family: "Material Icons";
224
+ z-index: 10;
225
+ width: 1rem;
226
+ height: 1rem;
227
+ left: calc(50% - 0.5rem);
228
+ top: calc(50% - 0.5rem);
229
+ transform: translateY(-1px);
230
+ transition: opacity 0.2s ease-out;
231
+ }
232
+
233
+ &::after {
234
+ opacity: .8;
235
+ border: 2px solid;
236
+ border-color: #ffffff85;
237
+ content: " ";
238
+ display: block;
239
+ width: 1.75rem;
240
+ height: 1.75rem;
241
+ background-color: rgba(#000, 0.2);
242
+ border-radius: var(--bs-border-radius);
243
+ backdrop-filter: blur(2px);
244
+ transition: 0.2s ease-out;
245
+ }
246
+
247
+ &:hover {
248
+ cursor: pointer;
249
+
250
+ &::before {
251
+ opacity: 1;
252
+ }
253
+
254
+ &::after {
255
+ // background-color: rgba(100, 122, 241, 0);
256
+ }
257
+ }
258
+
259
+ &.is-selected {
260
+ opacity: 1;
261
+
262
+ &::before {
263
+ opacity: 1;
264
+ }
265
+
266
+ &::after {
267
+ opacity: 1;
268
+ background-color: var(--bs-primary);
269
+ border-color: #fff;
270
+ }
271
+ }
272
+ }
273
+ }
274
+
275
+ .multimedia-preview-content {
276
+ position: relative;
277
+ display: block;
278
+ border: 0;
279
+ background-color: transparent;
280
+ width: 100%;
281
+ padding-top: 100%;
282
+ overflow: hidden;
283
+ background-color: var(--purple-100);
284
+ border-radius: var(--bs-border-radius);
285
+
286
+ img {
287
+ transition: 0.3s ease-out;
288
+ border-radius: var(--bs-border-radius);
289
+ width: 100%;
290
+ height: 100%;
291
+ object-fit: cover;
292
+ position: absolute;
293
+ top: 0;
294
+ left: 0;
295
+ /* 確保圖片覆蓋整個方形區域 */
296
+ }
297
+
298
+
299
+
300
+ &.is-video::before {
301
+ position: absolute;
302
+ transition: 0.3s ease-out;
303
+ background-color: rgba(#000, 0.4);
304
+ color: #fff;
305
+ backdrop-filter: blur(2px);
306
+ display: flex;
307
+ justify-content: center;
308
+ align-items: center;
309
+ width: 2.8rem;
310
+ height: 2.8rem;
311
+ top: calc(50% - 1.4rem);
312
+ left: calc(50% - 1.4rem);
313
+ box-shadow: 0 0px 12px 4px #c3c3c396;
314
+ z-index: 100;
315
+ font-family: "Material Icons";
316
+ content: "play_arrow";
317
+ font-size: 1.5rem;
318
+ border-radius: 99px;
319
+ }
320
+ }
321
+
322
+
323
+ }
324
+
325
+ .is-unselectable {
326
+ user-select: none;
327
+ }
328
+
329
+ .top-header {
330
+ display: flex;
331
+ align-items: center;
332
+ border-bottom: 1px solid var(--gray-300);
333
+ background-color: var(--gray-100);
334
+
335
+ >* {
336
+ padding: .5rem 1rem;
337
+ }
338
+
339
+ p {
340
+ color: var(--gray-500);
341
+ margin-bottom: 0;
342
+ margin-right: auto;
343
+ }
344
+ }
345
+
346
+ .the-date-content-multiple-tag {
347
+ position: absolute;
348
+ z-index: 2;
349
+ top: 0;
350
+ left: 0;
351
+ border: none;
352
+ background-color: transparent;
353
+ padding: 0;
354
+ margin: 0;
355
+
356
+
357
+
358
+ &::before {
359
+ height: 1.875rem;
360
+ width: 2rem;
361
+ content: "insert_link";
362
+ font-family: "Material Icons";
363
+ font-size: 1rem;
364
+ line-height: 1rem;
365
+ display: flex;
366
+ align-items: center;
367
+ justify-content: center;
368
+ background-color: rgba(var(--green-500-rgb), .9);
369
+ color: #fff;
370
+ border-top-left-radius: var(--bs-border-radius);
371
+ border-bottom-right-radius: var(--bs-border-radius);
372
+ top: 0;
373
+ left: 0;
374
+ transition: .1s ease-out;
375
+ }
376
+ }
377
+ }