@xunlie/vue-clickout 1.0.0

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.

Potentially problematic release.


This version of @xunlie/vue-clickout might be problematic. Click here for more details.

Files changed (36) hide show
  1. package/.babelrc +8 -0
  2. package/CHANGELOG.md +11 -0
  3. package/README.md +116 -0
  4. package/build/build.js +35 -0
  5. package/build/check-versions.js +48 -0
  6. package/build/dev-client.js +9 -0
  7. package/build/dev-server.js +89 -0
  8. package/build/utils.js +71 -0
  9. package/build/vue-loader.conf.js +12 -0
  10. package/build/webpack.base.conf.js +58 -0
  11. package/build/webpack.dev.conf.js +34 -0
  12. package/build/webpack.lib.conf.js +40 -0
  13. package/build/webpack.prod.conf.js +120 -0
  14. package/config/dev.env.js +6 -0
  15. package/config/index.js +38 -0
  16. package/config/prod.env.js +3 -0
  17. package/demo/App.vue +26 -0
  18. package/demo/assets/community.css +1067 -0
  19. package/demo/assets/logo.png +0 -0
  20. package/demo/assets/reset.css +6 -0
  21. package/demo/components/commentItem.vue +63 -0
  22. package/demo/dist/index.html +1 -0
  23. package/demo/dist/static/css/app.0a3bdcaaa6f3b802a0a4342127401472.css +1 -0
  24. package/demo/dist/static/css/app.0a3bdcaaa6f3b802a0a4342127401472.css.map +1 -0
  25. package/demo/dist/static/js/app.a9b3c4b5a878ec2640e8.js +7 -0
  26. package/demo/dist/static/js/app.a9b3c4b5a878ec2640e8.js.map +1 -0
  27. package/demo/dist/static/js/manifest.f0144ada13d39efdc013.js +2 -0
  28. package/demo/dist/static/js/manifest.f0144ada13d39efdc013.js.map +1 -0
  29. package/demo/dist/static/js/vendor.5646344e475ac845fb16.js +7 -0
  30. package/demo/dist/static/js/vendor.5646344e475ac845fb16.js.map +1 -0
  31. package/demo/index.html +12 -0
  32. package/demo/main.js +21 -0
  33. package/demo/router/index.js +15 -0
  34. package/dist/vue-clickout.js +152 -0
  35. package/package.json +20 -0
  36. package/src/vue-clickout.js +62 -0
@@ -0,0 +1,1067 @@
1
+ @charset "UTF-8";
2
+ :root {
3
+ --color-important:#ff4848;
4
+ --color-main: #69f;
5
+ --color-main-hover: #4b87ff;
6
+ --color-primary-gray-1: #999;
7
+ --color-primary-gray-2: #ccc;
8
+ --color-primary-gray-3: #f5f5f5;
9
+ }
10
+
11
+ .fc-important {
12
+ color: var(--color-important);
13
+ }
14
+
15
+ .quote .quote-content .text-quote {
16
+ color: #666;
17
+ }
18
+
19
+ .side-item .text-preview, .quote .quote-content, .quote .quote-content .user-name, .quote .quote-from .file-name {
20
+ color: #999;
21
+ }
22
+
23
+ .pic-module-blank, .pic-login {
24
+ background: url(../img/spr-pic.png) no-repeat;
25
+ background-size: 1000px auto;
26
+ }
27
+
28
+ .community {
29
+ display: flex;
30
+ justify-content: space-between;
31
+ height: 100vh;
32
+ color: #000;
33
+ overflow: hidden;
34
+ }
35
+
36
+ /* 侧边栏 */
37
+ .side {
38
+ width: 260px;
39
+ height: calc(100vh - 20px);
40
+ padding: 20px 0;
41
+ margin: 10px 0 10px 10px;
42
+ background: #ebecf2;
43
+ border-radius: 10px;
44
+ box-sizing: border-box;
45
+ }
46
+ .side-main {
47
+ height: calc(100vh - 70px);
48
+ overflow-y: auto;
49
+ }
50
+ .side-main:hover .side-list h2 {
51
+ background: linear-gradient(to right, rgba(68, 177, 255, 0.2), rgba(181, 224, 255, 0.2));
52
+ }
53
+
54
+ .side-list h2 {
55
+ padding-left: 15px;
56
+ margin-top: 5px;
57
+ color: #666;
58
+ font-size: 13px;
59
+ line-height: 30px;
60
+ cursor: default;
61
+ }
62
+ .side-list h2:hover {
63
+ color: var(--color-main);
64
+ }
65
+ .side-list .side-list-wrap {
66
+ height: 0;
67
+ overflow: hidden;
68
+ transition: .2s;
69
+ }
70
+ .side-list.is-active .side-list-wrap {
71
+ height: calc(100vh - 140px);
72
+ overflow-y: auto;
73
+ will-change: height;
74
+ }
75
+ .side-list.is-active h2 {
76
+ color: var(--color-main);
77
+ }
78
+
79
+ .community-search {
80
+ display: flex;
81
+ align-items: center;
82
+ height: 30px;
83
+ margin: -5px 14px 0;
84
+ line-height: 30px;
85
+ border: solid 1px #e6e6e6;
86
+ border-radius: 15px;
87
+ background: #fff;
88
+ box-sizing: border-box;
89
+ }
90
+ .community-search .ipt-search {
91
+ border: 0;
92
+ background: transparent;
93
+ height: 30px;
94
+ }
95
+ .community-search .ipt-search::-webkit-input-placeholder {
96
+ color: #666;
97
+ }
98
+
99
+ .side-item {
100
+ display: flex;
101
+ align-items: center;
102
+ position: relative;
103
+ height: 56px;
104
+ cursor: default;
105
+ }
106
+ .side-item:hover {
107
+ background: linear-gradient(to right, rgba(28, 20, 255, 0.05), rgba(169, 192, 248, 0.05));
108
+ }
109
+ .side-item.is-not-disturb .text-preview .num {
110
+ top: 4px;
111
+ width: 10px;
112
+ height: 10px;
113
+ text-indent: -999em;
114
+ overflow: hidden;
115
+ }
116
+ .side-item.is-not-disturb .icon-not-disturb {
117
+ position: absolute;
118
+ right: -4px;
119
+ bottom: -6px;
120
+ color: #b3b3b3;
121
+ text-shadow: -1px -1px #ebecf2,1px -1px #ebecf2;
122
+ }
123
+ .side-item.cur {
124
+ background: #cfd4e6;
125
+ }
126
+ .side-item.cur:hover {
127
+ background: #cfd4e6;
128
+ }
129
+ .side-item.cur .icon-not-disturb {
130
+ text-shadow: -1px -1px #cfd4e6,1px -1px #cfd4e6;
131
+ }
132
+ .side-item .round {
133
+ position: relative;
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ width: 40px;
138
+ height: 40px;
139
+ margin: 0 14px;
140
+ color: #fff;
141
+ border-radius: 50%;
142
+ background: #68a5ff;
143
+ }
144
+ .side-item .round.round-notice {
145
+ background: #ff9f3e;
146
+ }
147
+ .side-item .round img {
148
+ border-radius: 50%;
149
+ }
150
+ .side-item .item-des {
151
+ position: relative;
152
+ width: calc(100% - 76px);
153
+ }
154
+ .side-item .tit {
155
+ padding-right: 60px;
156
+ font-size: 13px;
157
+ white-space: nowrap;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ word-break: break-all;
161
+ }
162
+ .side-item .text-preview {
163
+ position: relative;
164
+ white-space: nowrap;
165
+ overflow: hidden;
166
+ text-overflow: ellipsis;
167
+ word-break: break-all;
168
+ padding-right: 15px;
169
+ }
170
+ .side-item .text-preview .num {
171
+ position: absolute;
172
+ top: 1px;
173
+ right: 0;
174
+ display: flex;
175
+ justify-content: center;
176
+ align-items: center;
177
+ width: 16px;
178
+ height: 16px;
179
+ font-size: 11px;
180
+ border-radius: 50%;
181
+ color: #fff;
182
+ background-color: var(--color-important);
183
+ }
184
+ .side-item .time {
185
+ position: absolute;
186
+ top: 0;
187
+ right: 0;
188
+ color: rgba(0, 0, 0, 0.4);
189
+ }
190
+
191
+ /* 右边内容 */
192
+ .content {
193
+ width: calc(100% - 270px);
194
+ overflow-y: auto;
195
+ }
196
+ .content::-webkit-scrollbar {
197
+ width: 10px;
198
+ }
199
+ .content::-webkit-scrollbar-thumb {
200
+ background: #ccc;
201
+ border-radius: 5px;
202
+ }
203
+
204
+ .main {
205
+ position: relative;
206
+ height: 100%;
207
+ }
208
+
209
+ .module-tit h1 {
210
+ font-size: 18px;
211
+ line-height: 1;
212
+ text-align: center;
213
+ padding: 22px 0 18px;
214
+ border-bottom: solid 1px #f0f1f5;
215
+ }
216
+
217
+ .user-pic {
218
+ display: block;
219
+ }
220
+ .user-pic img {
221
+ width: 100%;
222
+ height: 100%;
223
+ border-radius: 100%;
224
+ }
225
+
226
+ .module-wrap .time {
227
+ text-align: center;
228
+ color: #666;
229
+ line-height: 30px;
230
+ }
231
+ .module-item {
232
+ position: relative;
233
+ width: calc(100% - 150px);
234
+ max-width: 900px;
235
+ margin: 0 auto 20px;
236
+ padding: 30px;
237
+ background: #f5f6fa;
238
+ border-radius: 10px;
239
+ border: solid 1px #f2f2f2;
240
+ box-sizing: border-box;
241
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
242
+ /* 赞总数 */
243
+ }
244
+ .module-item:hover .link-delete {
245
+ display: block;
246
+ }
247
+ .module-item .link-delete {
248
+ display: none;
249
+ position: absolute;
250
+ right: 0;
251
+ top: 30px;
252
+ right: 30px;
253
+ }
254
+ .module-item .link-delete:hover .icon-delete {
255
+ color: var(--color-main);
256
+ }
257
+ .module-item .total {
258
+ display: flex;
259
+ align-items: center;
260
+ height: 24px;
261
+ line-height: 24px;
262
+ }
263
+ .module-item .total .user {
264
+ display: flex;
265
+ }
266
+ .module-item .total .user .user-pic {
267
+ width: 24px;
268
+ height: 24px;
269
+ margin-right: 2px;
270
+ }
271
+ .module-item .total .text-num {
272
+ margin-left: 5px;
273
+ font-size: 14px;
274
+ }
275
+ .module-item .total .text-num span {
276
+ font-size: 12px;
277
+ }
278
+ .module-item.item-comment {
279
+ padding-left: 90px;
280
+ }
281
+ .module-item.item-comment .comment-user {
282
+ position: relative;
283
+ }
284
+ .module-item.item-comment .comment-user .user-pic {
285
+ position: absolute;
286
+ left: -60px;
287
+ top: 0;
288
+ width: 40px;
289
+ height: 40px;
290
+ }
291
+ .module-item.item-comment .comment-user .user-name {
292
+ color: #999;
293
+ font-size: 14px;
294
+ }
295
+ .module-item.item-comment .comment-user .text-comment {
296
+ font-size: 15px;
297
+ overflow: hidden;
298
+ word-wrap: break-word;
299
+ }
300
+ .module-item.item-comment .reply {
301
+ display: flex;
302
+ justify-content: flex-end;
303
+ flex-wrap: wrap;
304
+ }
305
+ .module-item.item-comment .reply .link-reply {
306
+ display: inline-block;
307
+ margin-bottom: 8px;
308
+ color: #666;
309
+ transition: .2s;
310
+ }
311
+ .module-item.item-comment .reply .link-reply:hover {
312
+ color: var(--color-main);
313
+ }
314
+ .module-item.item-comment .reply .link-reply.is-done {
315
+ color: #ccc;
316
+ cursor: default;
317
+ }
318
+ .module-item.item-comment .reply .reply-area {
319
+ display: flex;
320
+ align-items: center;
321
+ justify-content: space-between;
322
+ position: relative;
323
+ width: 100%;
324
+ height: 30px;
325
+ box-sizing: border-box;
326
+ padding: 0 10px;
327
+ background: #fff;
328
+ border: solid 1px #e6e6e6;
329
+ border-radius: 4px;
330
+ }
331
+ .module-item.item-comment .reply .reply-area:after {
332
+ position: absolute;
333
+ top: -4px;
334
+ right: 8px;
335
+ width: 6px;
336
+ height: 6px;
337
+ background: #fff;
338
+ border-top: solid 1px #e6e6e6;
339
+ border-left: solid 1px #e6e6e6;
340
+ transform: rotate(45deg);
341
+ content: "";
342
+ }
343
+ .module-item.item-comment .reply .ipt-reply {
344
+ width: calc(100% - 60px);
345
+ height: 16px;
346
+ padding: 7px 0;
347
+ border: 0;
348
+ background: transparent;
349
+ }
350
+ .module-item.item-comment .reply .tag-num {
351
+ color: #999;
352
+ }
353
+ .module-item.item-comment .reply.reply-open .reply-area:before {
354
+ position: absolute;
355
+ bottom: 30px;
356
+ right: 8px;
357
+ content: "";
358
+ content: "";
359
+ position: absolute;
360
+ width: 0;
361
+ height: 0;
362
+ font-size: 0;
363
+ overflow: hidden;
364
+ border-style: dashed;
365
+ border-color: transparent;
366
+ border-width: 6px 4px;
367
+ border-bottom-color: #ecf3fb;
368
+ }
369
+ .module-item.item-notice {
370
+ display: flex;
371
+ min-height: 140px;
372
+ padding: 0;
373
+ }
374
+ .module-item.item-notice .tit-notice {
375
+ font-size: 16px;
376
+ transition: .2s;
377
+ }
378
+ .module-item.item-notice a.tit-notice:hover {
379
+ color: var(--color-main);
380
+ }
381
+ .module-item.item-notice .text-notice {
382
+ margin-top: 15px;
383
+ font-size: 13px;
384
+ color: rgba(0, 0, 0, 0.6);
385
+ }
386
+ .module-item.item-notice .text-notice a {
387
+ color: var(--color-main);
388
+ }
389
+ .module-item.item-notice .text-notice a:hover {
390
+ text-decoration: underline;
391
+ }
392
+ .module-item.item-notice .text-notice.is-limit {
393
+ -webkit-line-clamp: 2;
394
+ display: -webkit-box;
395
+ word-break: break-all;
396
+ overflow: hidden;
397
+ text-overflow: ellipsis;
398
+ -webkit-box-orient: vertical;
399
+ }
400
+ .module-item.item-notice .item-notice-banner {
401
+ width: 220px;
402
+ height: 140px;
403
+ }
404
+ .module-item.item-notice .item-notice-banner img {
405
+ width: 100%;
406
+ height: 100%;
407
+ border-top-left-radius: 10px;
408
+ border-bottom-left-radius: 10px;
409
+ object-fit: cover;
410
+ }
411
+ .module-item.item-notice .item-notice-content {
412
+ position: relative;
413
+ padding: 20px 30px;
414
+ flex: 1;
415
+ }
416
+ .module-item.item-notice .link-check {
417
+ display: flex;
418
+ align-items: center;
419
+ position: absolute;
420
+ right: 30px;
421
+ bottom: 15px;
422
+ color: var(--color-main);
423
+ }
424
+ .module-item.item-notice .link-check .icon-arrow {
425
+ position: relative;
426
+ width: 13px;
427
+ height: 1px;
428
+ margin-left: 6px;
429
+ background: var(--color-main);
430
+ }
431
+ .module-item.item-notice .link-check .icon-arrow:before {
432
+ content: "";
433
+ position: absolute;
434
+ right: 1px;
435
+ top: -3px;
436
+ width: 6px;
437
+ height: 6px;
438
+ border-top: solid 1px var(--color-main);
439
+ border-right: solid 1px var(--color-main);
440
+ transform: rotate(45deg);
441
+ }
442
+ .module-item.item-notice .link-check:hover {
443
+ text-decoration: underline;
444
+ }
445
+ .module-item.item-notice .link-check:hover .icon-arrow {
446
+ animation: arrowMove 1s infinite both;
447
+ }
448
+ @keyframes arrowMove {
449
+ 0% {
450
+ transform: translateX(-3px);
451
+ }
452
+ 100% {
453
+ transform: translateX(0);
454
+ }
455
+ }
456
+ .module-item.item-notice .link-delete {
457
+ top: 18px;
458
+ }
459
+
460
+ /* 引用 */
461
+ .quote {
462
+ margin-top: 20px;
463
+ padding-top: 8px;
464
+ border-top: solid 1px rgba(135, 182, 229, 0.2);
465
+ }
466
+ .quote .quote-content {
467
+ color: #666;
468
+ overflow: hidden;
469
+ word-wrap: break-word;
470
+ }
471
+ .quote .quote-content .user-name:before {
472
+ margin-right: 8px;
473
+ color: rgba(135, 182, 229, 0.38);
474
+ font-family: "iconfont" !important;
475
+ font-size: 14px;
476
+ content: "\e613";
477
+ }
478
+ .quote .quote-content .text-quote {
479
+ overflow: hidden;
480
+ word-wrap: break-word;
481
+ }
482
+ .quote .quote-from {
483
+ display: flex;
484
+ align-items: center;
485
+ margin-top: 5px;
486
+ }
487
+ .quote .quote-from:hover .file-name {
488
+ color: var(--color-main);
489
+ }
490
+ .quote .quote-from .file-name {
491
+ margin-left: 10px;
492
+ white-space: nowrap;
493
+ overflow: hidden;
494
+ text-overflow: ellipsis;
495
+ word-break: break-all;
496
+ }
497
+ .quote .quote-from.is-disabled {
498
+ cursor: default;
499
+ }
500
+ .quote .quote-from.is-disabled .file-name {
501
+ color: var(--color-primary-gray-1);
502
+ }
503
+
504
+ .module-more {
505
+ padding: 10px 0;
506
+ text-align: center;
507
+ }
508
+ .module-more a {
509
+ color: #999;
510
+ position: relative;
511
+ }
512
+ .module-more a:after {
513
+ display: inline-block;
514
+ margin: 0 0 2px 5px;
515
+ content: "";
516
+ width: 8px;
517
+ height: 8px;
518
+ border-right: solid 1px #999;
519
+ border-bottom: solid 1px #999;
520
+ transform: rotate(45deg);
521
+ }
522
+ .module-more a:hover {
523
+ color: var(--color-main);
524
+ }
525
+ .module-more a:hover:after {
526
+ border-color: var(--color-main);
527
+ }
528
+
529
+ .module-load {
530
+ padding: 10px 0;
531
+ text-align: center;
532
+ color: #ccc;
533
+ }
534
+ .module-load p {
535
+ display: flex;
536
+ justify-content: center;
537
+ align-items: center;
538
+ }
539
+
540
+ .module-blank {
541
+ width: 100%;
542
+ display: flex;
543
+ justify-content: center;
544
+ align-items: center;
545
+ height: 100vh;
546
+ }
547
+ .module-blank .module-blank-content {
548
+ margin-bottom: 40px;
549
+ font-size: 14px;
550
+ color: #999;
551
+ text-align: center;
552
+ }
553
+ .module-blank .module-blank-content .text-blank {
554
+ margin-top: 10px;
555
+ }
556
+ .module-blank .module-blank-content .text-blank a {
557
+ margin-left: 5px;
558
+ color: var(--color-main);
559
+ }
560
+ .module-blank .module-blank-content .text-blank a:hover {
561
+ color: var(--color-main-hover);
562
+ }
563
+ .pic-module-blank {
564
+ display: block;
565
+ width: 200px;
566
+ height: 150px;
567
+ }
568
+ .pic-module-blank.blank-comment {
569
+ background-position: -200px 0;
570
+ }
571
+ .pic-module-blank.blank-praise {
572
+ background-position: -400px 0;
573
+ }
574
+ .pic-module-blank.blank-error {
575
+ background-position: -800px 0;
576
+ }
577
+
578
+ .module-end {
579
+ font-size: 14px;
580
+ line-height: 50px;
581
+ color: #ccc;
582
+ text-align: center;
583
+ }
584
+
585
+ .login {
586
+ display: flex;
587
+ justify-content: center;
588
+ align-items: center;
589
+ width: 100%;
590
+ height: 100vh;
591
+ }
592
+ .login-content {
593
+ text-align: center;
594
+ font-size: 16px;
595
+ }
596
+ .login-content p {
597
+ color: #b7c6e5;
598
+ line-height: 60px;
599
+ font-weight: lighter;
600
+ }
601
+ .login-content .pic-login {
602
+ display: block;
603
+ width: 200px;
604
+ height: 150px;
605
+ margin: 0 auto;
606
+ background-position: -600px 0;
607
+ }
608
+ .login-content .btn-login {
609
+ display: block;
610
+ width: 160px;
611
+ height: 40px;
612
+ color: #fff;
613
+ text-align: center;
614
+ border-radius: 4px;
615
+ margin: 0 auto;
616
+ line-height: 40px;
617
+ background: #69f;
618
+ transition: .2s;
619
+ }
620
+ .login-content .btn-login:hover {
621
+ background: #4b87ff;
622
+ }
623
+
624
+ .btn-normal {
625
+ display: block;
626
+ color: #fff;
627
+ text-align: center;
628
+ font-size: 14px;
629
+ border-radius: 4px;
630
+ background: var(--color-main);
631
+ transition: .2s;
632
+ }
633
+ .btn-normal:hover {
634
+ background: var(--color-main-hover);
635
+ }
636
+
637
+ .user-name {
638
+ white-space: nowrap;
639
+ }
640
+ .user-name.is-vip {
641
+ color: #ff4848;
642
+ }
643
+
644
+ @font-face {
645
+ font-family: "iconfont";
646
+ src: url("../font/iconfont.ttf?t=1520924433403") format("truetype");
647
+ }
648
+ .icon {
649
+ font-family: "iconfont" !important;
650
+ font-size: 16px;
651
+ -webkit-font-smoothing: antialiased;
652
+ }
653
+
654
+ .icon-send {
655
+ font-size: 16px;
656
+ color: #87B6E5;
657
+ transition: .2s;
658
+ }
659
+ .icon-send:hover {
660
+ color: var(--color-main);
661
+ }
662
+
663
+ .icon-article {
664
+ color: #FFD268;
665
+ }
666
+
667
+ .icon-quote {
668
+ font-size: 14px;
669
+ color: rgba(135, 182, 229, 0.38);
670
+ }
671
+
672
+ .icon-down {
673
+ color: #66B2FF;
674
+ font-size: 16px;
675
+ }
676
+
677
+ .icon-delete {
678
+ color: #999;
679
+ }
680
+
681
+ .icon-video {
682
+ color: #55cbff;
683
+ }
684
+
685
+ .icon-face-end {
686
+ color: #ccc;
687
+ }
688
+
689
+ .icon-load {
690
+ margin-right: 5px;
691
+ color: #ccc;
692
+ animation: round 3s both infinite linear;
693
+ }
694
+ @keyframes round {
695
+ 0% {
696
+ transform: rotate(0);
697
+ }
698
+ 100% {
699
+ transform: rotate(360deg);
700
+ }
701
+ }
702
+ .icon-search {
703
+ color: #707070;
704
+ margin: 1px 5px 0 10px;
705
+ }
706
+
707
+ .icon-home {
708
+ color: #999;
709
+ font-size: 24px;
710
+ }
711
+
712
+ .icon-setting {
713
+ color: #707070;
714
+ font-size: 24px;
715
+ }
716
+
717
+ .icon-fail {
718
+ color: #ff4848;
719
+ }
720
+
721
+ .icon-face {
722
+ color: #999;
723
+ }
724
+
725
+ .icon-shield {
726
+ position: absolute;
727
+ right: 0;
728
+ bottom: 0;
729
+ display: flex;
730
+ align-items: center;
731
+ width: 9px;
732
+ height: 9px;
733
+ background: #fff;
734
+ border: solid 1px #ff4848;
735
+ border-radius: 50%;
736
+ }
737
+ .icon-shield:after {
738
+ display: block;
739
+ width: 100%;
740
+ height: 1px;
741
+ background: #ff4848;
742
+ transform: rotate(45deg);
743
+ content: "";
744
+ }
745
+
746
+ .icon-not-disturb:before {
747
+ content: "\e688";
748
+ }
749
+
750
+ .icon-girl {
751
+ color: #ff7cb6;
752
+ }
753
+
754
+ .icon-boy {
755
+ color: #69f;
756
+ }
757
+
758
+ .icon-notice:before {
759
+ content: "\e60d";
760
+ }
761
+
762
+ .icon-send:before {
763
+ content: "\e60e";
764
+ }
765
+
766
+ .icon-down:before {
767
+ content: "\e60f";
768
+ }
769
+
770
+
771
+
772
+ .message {
773
+ display: flex;
774
+ flex-direction: column;
775
+ align-items: stretch;
776
+ width: 100%;
777
+ height: 100vh;
778
+ }
779
+ .message .message-main {
780
+ width: 100%;
781
+ flex: 1;
782
+ }
783
+
784
+ .message-header {
785
+ position: relative;
786
+ z-index: 10;
787
+ height: 60px;
788
+ border-bottom: solid 1px #f0f1f5;
789
+ box-sizing: border-box;
790
+ }
791
+ .message-header h2 {
792
+ font-size: 18px;
793
+ text-align: center;
794
+ line-height: 60px;
795
+ }
796
+ .message-operate {
797
+ display: flex;
798
+ position: absolute;
799
+ top: 0;
800
+ right: 10px;
801
+ height: 100%;
802
+ }
803
+
804
+ .message-personal {
805
+ display: flex;
806
+ align-items: center;
807
+ width: 24px;
808
+ margin-left: 20px;
809
+ }
810
+ .message-personal:hover .icon-home {
811
+ color: var(--color-main);
812
+ }
813
+
814
+ .operate-setting {
815
+ position: relative;
816
+ display: flex;
817
+ align-items: center;
818
+ }
819
+ .operate-setting .icon-setting {
820
+ transform: rotate(90deg);
821
+ }
822
+ .operate-setting:hover .icon-setting {
823
+ color: var(--color-main);
824
+ }
825
+ .drop-setting {
826
+ position: absolute;
827
+ right: 0;
828
+ top: 40px;
829
+ z-index: 10;
830
+ width: 70px;
831
+ padding: 10px 0;
832
+ background-color: #fff;
833
+ border-radius: 4px;
834
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
835
+ }
836
+ .drop-setting a {
837
+ display: block;
838
+ padding-left: 10px;
839
+ line-height: 28px;
840
+ }
841
+ .drop-setting a:hover {
842
+ color: #fff;
843
+ background: var(--color-main);
844
+ }
845
+
846
+ .message-content {
847
+ display: flex;
848
+ flex: 1;
849
+ }
850
+
851
+ .message-wrap {
852
+ flex: 1;
853
+ position: relative;
854
+ height: calc(100vh - 222px);
855
+ padding: 0 20px;
856
+ overflow-y: auto;
857
+ }
858
+ .message-wrap .message-time {
859
+ line-height: 36px;
860
+ color: #666;
861
+ text-align: center;
862
+ }
863
+ .message-tips {
864
+ position: relative;
865
+ width: 50%;
866
+ padding: 7px 20px;
867
+ margin: 20px auto;
868
+ text-align: center;
869
+ line-height: 24px;
870
+ background: rgba(255, 255, 255, 0.9);
871
+ border-radius: 10px;
872
+ box-sizing: border-box;
873
+ }
874
+ .message-tips.is-fixed {
875
+ position: fixed;
876
+ z-index: 9;
877
+ top: 40px;
878
+ left: 270px;
879
+ width: calc(100% - 270px);
880
+ padding: 12px 20px;
881
+ border-radius: 0;
882
+ }
883
+ .message-tips .message-tips-title {
884
+ color: rgba(102, 102, 102, 0.5);
885
+ }
886
+ .message-tips .message-tips-content {
887
+ white-space: nowrap;
888
+ overflow: hidden;
889
+ text-overflow: ellipsis;
890
+ word-break: break-all;
891
+ }
892
+ .message-tips .icon-shield {
893
+ position: relative;
894
+ display: inline-flex;
895
+ width: 12px;
896
+ height: 12px;
897
+ vertical-align: 3px;
898
+ margin-right: 8px;
899
+ border-width: 2px;
900
+ }
901
+ .message-tips .icon-shield:after {
902
+ height: 2px;
903
+ }
904
+ .message-tips .link-shield {
905
+ color: var(--color-main);
906
+ margin-left: 2px;
907
+ transition: .2s;
908
+ }
909
+ .message-tips .link-shield:hover {
910
+ color: var(--color-main-hover);
911
+ }
912
+
913
+ .message-box {
914
+ position: relative;
915
+ min-height: 40px;
916
+ padding: 0 56px;
917
+ margin-bottom: 40px;
918
+ }
919
+ .message-box .user-pic {
920
+ position: absolute;
921
+ top: 0;
922
+ left: 0;
923
+ width: 40px;
924
+ height: 40px;
925
+ }
926
+ .message-box .message-bubble {
927
+ position: relative;
928
+ display: inline-block;
929
+ max-width: 61.8%;
930
+ font-size: 14px;
931
+ line-height: 26px;
932
+ text-align: left;
933
+ background: #f5f6fA;
934
+ border: solid 1px #f2f2f2;
935
+ border-radius: 4px;
936
+ }
937
+ .message-box .message-bubble:before, .message-box .message-bubble:after {
938
+ position: absolute;
939
+ content: "";
940
+ }
941
+ .message-box .message-bubble:before {
942
+ left: -7px;
943
+ top: 17px;
944
+ width: 14px;
945
+ height: 6px;
946
+ background: #f2f2f2;
947
+ clip-path: polygon(0 0, 7px 6px, 7px 0);
948
+ }
949
+ .message-box .message-bubble:after {
950
+ left: -5px;
951
+ top: 18px;
952
+ width: 12px;
953
+ height: 5px;
954
+ background: #f5f6fa;
955
+ clip-path: polygon(0 0, 6px 5px, 6px 0);
956
+ }
957
+ .message-box .message-bubble.is-file {
958
+ width: 350px;
959
+ max-width: 350px;
960
+ }
961
+ .message-box .message-bubble .text-message-bubble {
962
+ padding: 8px 20px;
963
+ box-sizing: border-box;
964
+ word-wrap: break-word;
965
+ white-space: pre-wrap;
966
+ }
967
+ .message-box .message-fail {
968
+ position: relative;
969
+ height: 30px;
970
+ display: inline-block;
971
+ margin-right: 10px;
972
+ vertical-align: top;
973
+ }
974
+ .message-box .message-fail:hover .drop-message-fail {
975
+ display: block;
976
+ }
977
+ .message-box .message-fail .drop-message-fail {
978
+ display: none;
979
+ position: absolute;
980
+ top: 24px;
981
+ right: 0;
982
+ width: 95px;
983
+ text-align: center;
984
+ line-height: 30px;
985
+ background: #fff;
986
+ border-radius: 4px;
987
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
988
+ }
989
+ .message-box .message-fail .link {
990
+ color: #000;
991
+ }
992
+ .message-box.is-self {
993
+ text-align: right;
994
+ }
995
+ .message-box.is-self .user-pic {
996
+ left: auto;
997
+ right: 0;
998
+ }
999
+ .message-box.is-self .message-bubble {
1000
+ border-color: #dbe3f2;
1001
+ background: #d9e6ff;
1002
+ }
1003
+ .message-box.is-self .message-bubble:before {
1004
+ left: auto;
1005
+ right: -7px;
1006
+ background: #dbe3f2;
1007
+ clip-path: polygon(7px 0, 7px 6px, 14px 0);
1008
+ }
1009
+ .message-box.is-self .message-bubble:after {
1010
+ left: auto;
1011
+ right: -6px;
1012
+ background: #d9e6ff;
1013
+ clip-path: polygon(6px 0, 6px 5px, 12px 0);
1014
+ }
1015
+
1016
+ .message-input {
1017
+ height: 160px;
1018
+ background: #fff;
1019
+ border-top: solid 1px #f0f1f5;
1020
+ }
1021
+ .message-input .message-toolbar {
1022
+ display: flex;
1023
+ align-items: center;
1024
+ height: 40px;
1025
+ padding: 0 24px;
1026
+ }
1027
+
1028
+ .textarea-message {
1029
+ display: block;
1030
+ width: calc(100% - 48px);
1031
+ height: 66px;
1032
+ margin: 0 auto;
1033
+ font-size: 14px;
1034
+ background: transparent;
1035
+ border: 0;
1036
+ resize: none;
1037
+ }
1038
+
1039
+ .message-bottom {
1040
+ display: flex;
1041
+ justify-content: flex-end;
1042
+ padding: 0 20px;
1043
+ }
1044
+ .message-bottom .btn-send {
1045
+ display: block;
1046
+ width: 100px;
1047
+ height: 32px;
1048
+ font-size: 14px;
1049
+ color: #fff;
1050
+ line-height: 32px;
1051
+ text-align: center;
1052
+ border-radius: 4px;
1053
+ background: var(--color-main);
1054
+ transition: .2s;
1055
+ }
1056
+ .message-bottom .btn-send:hover {
1057
+ background: var(--color-main-hover);
1058
+ }
1059
+ .message-bottom .btn-send.is-disabled {
1060
+ cursor: default;
1061
+ background: var(--color-primary-gray-3);
1062
+ color: var(--color-primary-gray-1);
1063
+ }
1064
+
1065
+
1066
+
1067
+ /*# sourceMappingURL=community.css.map */