status.scss 16.7 KB
Newer Older
ncls7615's avatar
ncls7615 committed
1
2
3
4
5
.status__content--with-action {
  cursor: pointer;
}

.status__content {
ncls7615's avatar
ncls7615 committed
6
7
  position: relative;
  margin: 10px 0;
ncls7615's avatar
ncls7615 committed
8
9
10
11
  font-size: 15px;
  line-height: 20px;
  word-wrap: break-word;
  font-weight: 400;
ncls7615's avatar
ncls7615 committed
12
13
  overflow: visible;
  padding-top: 5px;
ncls7615's avatar
ncls7615 committed
14
15
16
17
18
19
20
21
22
23
24

  &:focus {
    outline: 0;
  }

  .emojione {
    width: 20px;
    height: 20px;
    margin: -3px 0 0;
  }

25
  p, pre, blockquote {
ncls7615's avatar
ncls7615 committed
26
    margin-bottom: 20px;
kibi!'s avatar
kibi! committed
27
    white-space: pre-wrap;
ncls7615's avatar
ncls7615 committed
28
29
30
31
32
33

    &:last-child {
      margin-bottom: 0;
    }
  }

34
35
  .status__content__text,
  .e-content {
36
37
38
39
    h1, h2, h3, h4, h5 {
      margin-top: 20px;
      margin-bottom: 20px;
    }
40

41
    h1, h2 {
42
      font-weight: 700;
43
      font-size: 1.2em;
44
    }
45

46
    h2 {
47
      font-size: 1.1em;
48
    }
49

50
51
52
53
    h3, h4, h5 {
      font-weight: 500;
    }

54
    blockquote {
Thibaut Girka's avatar
Thibaut Girka committed
55
56
57
58
      padding-left: 10px;
      border-left: 3px solid $darker-text-color;
      color: $darker-text-color;
      white-space: normal;
59
60
61
62

      p:last-child {
        margin-bottom: 0;
      }
63
    }
64

65
    b, strong {
Thibaut Girka's avatar
Thibaut Girka committed
66
      font-weight: 700;
67
    }
68

69
70
71
    em, i {
      font-style: italic;
    }
72

73
74
75
76
77
    sub {
      font-size: smaller;
      text-align: sub;
    }

78
79
    ul, ol {
      margin-left: 1em;
80
81
82
83

      p {
        margin: 0;
      }
84
85
86
87
88
89
90
91
92
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }
93
94
  }

ncls7615's avatar
ncls7615 committed
95
  a {
96
    color: $secondary-text-color;
ncls7615's avatar
ncls7615 committed
97
98
99
100
101
102
    text-decoration: none;

    &:hover {
      text-decoration: underline;

      .fa {
103
        color: lighten($dark-text-color, 7%);
ncls7615's avatar
ncls7615 committed
104
105
106
107
108
109
110
111
112
113
114
115
116
117
      }
    }

    &.mention {
      &:hover {
        text-decoration: none;

        span {
          text-decoration: underline;
        }
      }
    }

    .fa {
118
      color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
119
120
121
    }
  }

ncls7615's avatar
ncls7615 committed
122
  .status__content__spoiler {
kibi!'s avatar
kibi! committed
123
124
125
126
    display: none;

    &.status__content__spoiler--visible {
      display: block;
ncls7615's avatar
ncls7615 committed
127
128
129
    }
  }

ncls7615's avatar
ncls7615 committed
130
131
132
133
134
135
136
137
138
139
140
141
142
  .status__content__spoiler-link {
    background: lighten($ui-base-color, 30%);

    &:hover {
      background: lighten($ui-base-color, 33%);
      text-decoration: none;
    }
  }
}

.status__content__spoiler-link {
  display: inline-block;
  border-radius: 2px;
ncls7615's avatar
ncls7615 committed
143
144
  background: lighten($ui-base-color, 30%);
  border: none;
145
  color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
146
147
  font-weight: 500;
  font-size: 11px;
ncls7615's avatar
ncls7615 committed
148
  padding: 0 5px;
ncls7615's avatar
ncls7615 committed
149
150
151
  text-transform: uppercase;
  line-height: inherit;
  cursor: pointer;
ncls7615's avatar
ncls7615 committed
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
  vertical-align: bottom;

  &:hover {
    background: lighten($ui-base-color, 33%);
    text-decoration: none;
  }

  .status__content__spoiler-icon {
    display: inline-block;
    margin: 0 0 0 5px;
    border-left: 1px solid currentColor;
    padding: 0 0 0 4px;
    font-size: 16px;
    vertical-align: -2px;
  }
}

.notif-cleaning {
  .status, .notification-follow {
    padding-right: ($dismiss-overlay-width + 0.5rem);
  }
ncls7615's avatar
ncls7615 committed
173
174
}

175
176
177
178
179
180
181
182
183
184
185
186
187
188
.status__wrapper--filtered {
  color: $dark-text-color;
  border: 0;
  font-size: inherit;
  text-align: center;
  line-height: inherit;
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
  width: 100%;
  clear: both;
  border-bottom: 1px solid lighten($ui-base-color, 8%);
}

ncls7615's avatar
ncls7615 committed
189
.status__prepend-icon-wrapper {
ncls7615's avatar
ncls7615 committed
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
  float: left;
  margin: 0 10px 0 -58px;
  width: 48px;
  text-align: right;
}

.notification-follow {
  position: relative;

  // same like Status
  border-bottom: 1px solid lighten($ui-base-color, 8%);

  .account {
    border-bottom: 0 none;
  }
ncls7615's avatar
ncls7615 committed
205
206
207
208
209
210
211
}

.focusable {
  &:focus {
    outline: 0;
    background: lighten($ui-base-color, 4%);

212
    &.status.status-direct:not(.read) {
ncls7615's avatar
ncls7615 committed
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
      background: lighten($ui-base-color, 12%);

      &.muted {
        background: transparent;
      }
    }

    .detailed-status,
    .detailed-status__action-bar {
      background: lighten($ui-base-color, 8%);
    }
  }
}

.status {
Thibaut Girka's avatar
Thibaut Girka committed
228
  padding: 10px 14px;
ncls7615's avatar
ncls7615 committed
229
  position: relative;
ncls7615's avatar
ncls7615 committed
230
  height: auto;
ncls7615's avatar
ncls7615 committed
231
232
233
234
235
236
  border-bottom: 1px solid lighten($ui-base-color, 8%);
  cursor: default;

  @supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
    // Add margin to avoid Edge auto-hiding scrollbar appearing over content.
    // On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
Thibaut Girka's avatar
Thibaut Girka committed
237
    padding-right: 28px; // 12px + 16px
ncls7615's avatar
ncls7615 committed
238
239
240
241
242
243
244
245
246
247
248
249
250
251
  }

  @keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  opacity: 1;
  animation: fade 150ms linear;

  .video-player {
    margin-top: 8px;
  }

252
  &.status-direct:not(.read) {
ncls7615's avatar
ncls7615 committed
253
    background: lighten($ui-base-color, 8%);
254
    border-bottom-color: lighten($ui-base-color, 12%);
ncls7615's avatar
ncls7615 committed
255
256
257
258
  }

  &.light {
    .status__relative-time {
259
      color: $lighter-text-color;
ncls7615's avatar
ncls7615 committed
260
261
262
    }

    .status__display-name {
263
      color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
264
265
266
267
    }

    .display-name {
      strong {
268
        color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
269
270
271
      }

      span {
272
        color: $lighter-text-color;
ncls7615's avatar
ncls7615 committed
273
274
275
276
      }
    }

    .status__content {
277
      color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
278
279

      a {
280
        color: $highlight-text-color;
ncls7615's avatar
ncls7615 committed
281
282
283
284
285
286
287
288
289
290
291
      }

      a.status__content__spoiler-link {
        color: $primary-text-color;
        background: $ui-primary-color;

        &:hover {
          background: lighten($ui-primary-color, 8%);
        }
      }
    }
ncls7615's avatar
ncls7615 committed
292
  }
ncls7615's avatar
ncls7615 committed
293

ncls7615's avatar
ncls7615 committed
294
295
296
297
298
299
300
301
302
303
304
305
306
  &.collapsed {
    background-position: center;
    background-size: cover;
    user-select: none;

    &.has-background::before {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background-image: linear-gradient(to bottom, rgba($base-shadow-color, .75), rgba($base-shadow-color, .65) 24px, rgba($base-shadow-color, .8));
307
      pointer-events: none;
ncls7615's avatar
ncls7615 committed
308
309
310
311
312
313
314
315
316
317
318
      content: "";
    }

    .display-name:hover .display-name__html {
      text-decoration: none;
    }

    .status__content {
      height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
319
      padding-top: 0;
ncls7615's avatar
ncls7615 committed
320

321
322
323
324
325
326
327
328
329
      &:after {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        left: 0; right: 0;
        background: linear-gradient(rgba($ui-base-color, 0), rgba($ui-base-color, 1));
        pointer-events: none;
      }
      
ncls7615's avatar
ncls7615 committed
330
      a:hover {
ncls7615's avatar
ncls7615 committed
331
332
333
        text-decoration: none;
      }
    }
334
335
336
    &:focus > .status__content:after {
      background: linear-gradient(rgba(lighten($ui-base-color, 4%), 0), rgba(lighten($ui-base-color, 4%), 1));
    }
337
    &.status-direct:not(.read)> .status__content:after {
338
339
      background: linear-gradient(rgba(lighten($ui-base-color, 8%), 0), rgba(lighten($ui-base-color, 8%), 1));
    }
340
341
342
343
344
345
346
347

    .notification__message {
      margin-bottom: 0;
    }

    .status__info .notification__message > span {
      white-space: nowrap;
    }
ncls7615's avatar
ncls7615 committed
348
  }
ncls7615's avatar
ncls7615 committed
349

ncls7615's avatar
ncls7615 committed
350
  .notification__message {
351
    margin: -10px 0px 10px 0;
ncls7615's avatar
ncls7615 committed
352
353
354
355
356
357
358
359
  }
}

.notification-favourite {
  .status.status-direct {
    background: transparent;

    .icon-button.disabled {
360
      color: lighten($action-button-color, 13%);
ncls7615's avatar
ncls7615 committed
361
362
363
364
365
    }
  }
}

.status__relative-time {
ncls7615's avatar
ncls7615 committed
366
367
368
369
  display: inline-block;
  margin-left: auto;
  padding-left: 18px;
  width: 120px;
370
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
371
  font-size: 14px;
ncls7615's avatar
ncls7615 committed
372
373
374
375
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
ncls7615's avatar
ncls7615 committed
376
377
378
}

.status__display-name {
ncls7615's avatar
ncls7615 committed
379
  margin: 0 auto 0 0;
380
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
381
  overflow: hidden;
ncls7615's avatar
ncls7615 committed
382
383
}

384
.status__info__account .status__display-name {
ncls7615's avatar
ncls7615 committed
385
386
387
388
389
  display: block;
  max-width: 100%;
}

.status__info {
390
  display: flex;
ncls7615's avatar
ncls7615 committed
391
  font-size: 15px;
Ash Lea's avatar
Ash Lea committed
392
393

  > span {
394
    text-overflow: ellipsis;
Ash Lea's avatar
Ash Lea committed
395
396
    overflow: hidden;
  }
397
398
399
400

  .notification__message > span {
    word-wrap: break-word;
  }
ncls7615's avatar
ncls7615 committed
401
402
403
}

.status__info__icons {
404
  margin-left: auto;
Ash Lea's avatar
Ash Lea committed
405
  display: flex;
406
407
  align-items: center;
  height: 1em;
408
  color: $action-button-color;
ncls7615's avatar
ncls7615 committed
409

410
  .status__media-icon {
ncls7615's avatar
ncls7615 committed
411
    padding-left: 6px;
412
413
414
415
416
    padding-right: 1px;
  }

  .status__visibility-icon {
    padding-left: 4px;
ncls7615's avatar
ncls7615 committed
417
  }
ncls7615's avatar
ncls7615 committed
418
419
}

420
421
.status__info__account {
  display: flex;
422
  align-items: center;
423
424
}

ncls7615's avatar
ncls7615 committed
425
426
427
428
.status-check-box {
  border-bottom: 1px solid $ui-secondary-color;
  display: flex;

Thibaut Girka's avatar
Thibaut Girka committed
429
430
431
432
433
434
435
  .status-check-box__status {
    margin: 10px 0 10px 10px;
    flex: 1;

    .media-gallery {
      max-width: 250px;
    }
ncls7615's avatar
ncls7615 committed
436
437

    .status__content {
Thibaut Girka's avatar
Thibaut Girka committed
438
439
440
441
442
443
444
445
446
447
448
      padding: 0;
      white-space: normal;
    }

    .video-player {
      margin-top: 8px;
      max-width: 250px;
    }

    .media-gallery__item-thumbnail {
      cursor: default;
ncls7615's avatar
ncls7615 committed
449
    }
ncls7615's avatar
ncls7615 committed
450
451
452
453
454
455
456
457
458
459
460
461
  }
}

.status-check-box-toggle {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 10px;
}

.status__prepend {
ncls7615's avatar
ncls7615 committed
462
  margin: -10px -10px 10px;
463
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
464
  padding: 8px 10px 0 68px;
ncls7615's avatar
ncls7615 committed
465
466
467
468
  font-size: 14px;
  position: relative;

  .status__display-name strong {
469
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
470
471
472
473
474
475
476
477
478
479
480
481
482
  }

  > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.status__action-bar {
  align-items: center;
  display: flex;
  margin-top: 8px;
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500

  &__counter {
    display: inline-flex;
    margin-right: 11px;
    align-items: center;

    .status__action-bar-button {
      margin-right: 4px;
    }

    &__label {
      display: inline-block;
      width: 14px;
      font-size: 12px;
      font-weight: 500;
      color: $action-button-color;
    }
  }
ncls7615's avatar
ncls7615 committed
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
}

.status__action-bar-button {
  margin-right: 18px;
}

.status__action-bar-dropdown {
  height: 23.15px;
  width: 23.15px;
}

.detailed-status__action-bar-dropdown {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detailed-status {
  background: lighten($ui-base-color, 4%);
  padding: 14px 10px;

524
525
526
527
528
529
530
531
532
533
534
535
  &--flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;

    .status__content,
    .detailed-status__meta {
      flex: 100%;
    }
  }

ncls7615's avatar
ncls7615 committed
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
  .status__content {
    font-size: 19px;
    line-height: 24px;

    .emojione {
      width: 24px;
      height: 24px;
      margin: -1px 0 0;
    }
  }

  .video-player {
    margin-top: 8px;
  }
}

.detailed-status__meta {
  margin-top: 15px;
554
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
  font-size: 14px;
  line-height: 18px;
}

.detailed-status__action-bar {
  background: lighten($ui-base-color, 4%);
  border-top: 1px solid lighten($ui-base-color, 8%);
  border-bottom: 1px solid lighten($ui-base-color, 8%);
  display: flex;
  flex-direction: row;
  padding: 10px 0;
}

.detailed-status__link {
  color: inherit;
  text-decoration: none;
}

.detailed-status__favorites,
.detailed-status__reblogs {
  display: inline-block;
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
}

.status__display-name,
.status__relative-time,
.detailed-status__display-name,
.detailed-status__datetime,
.detailed-status__application,
.account__display-name {
  text-decoration: none;
}

.status__display-name,
.account__display-name {
  strong {
    color: $primary-text-color;
  }
}

.muted {
  .emojione {
    opacity: 0.5;
  }
}

603
a.status__display-name,
ncls7615's avatar
ncls7615 committed
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
.reply-indicator__display-name,
.detailed-status__display-name,
.account__display-name {
  &:hover strong {
    text-decoration: underline;
  }
}

.account__display-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detailed-status__application,
.detailed-status__datetime {
  color: inherit;
}

.detailed-status__display-name {
624
  color: $secondary-text-color;
ncls7615's avatar
ncls7615 committed
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
  display: block;
  line-height: 24px;
  margin-bottom: 15px;
  overflow: hidden;

  strong,
  span {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  strong {
    font-size: 16px;
    color: $primary-text-color;
  }
}

.detailed-status__display-avatar {
  float: left;
  margin-right: 10px;
}

.status__avatar {
ncls7615's avatar
ncls7615 committed
649
650
  flex: none;
  margin: 0 10px 0 0;
ncls7615's avatar
ncls7615 committed
651
652
653
654
655
656
  height: 48px;
  width: 48px;
}

.muted {
  .status__content p,
657
  .status__content a,
658
  .status__content__text {
659
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
660
661
662
  }

  .status__display-name strong {
663
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
664
665
666
667
668
669
670
671
  }

  .status__avatar {
    opacity: 0.5;
  }

  a.status__content__spoiler-link {
    background: $ui-base-lighter-color;
672
    color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692

    &:hover {
      background: lighten($ui-base-color, 29%);
      text-decoration: none;
    }
  }
}

.status__relative-time,
.detailed-status__datetime {
  &:hover {
    text-decoration: underline;
  }
}

.status-card {
  display: flex;
  font-size: 14px;
  border: 1px solid lighten($ui-base-color, 8%);
  border-radius: 4px;
693
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
694
695
696
697
  margin-top: 14px;
  text-decoration: none;
  overflow: hidden;

698
699
700
701
702
703
704
705
706
707
708
709
  &__actions {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    & > div {
      background: rgba($base-shadow-color, 0.6);
Eugen Rochko's avatar
Eugen Rochko committed
710
      border-radius: 8px;
711
712
713
714
715
716
717
718
719
720
      padding: 12px 9px;
      flex: 0 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    button,
    a {
      display: inline;
Eugen Rochko's avatar
Eugen Rochko committed
721
      color: $secondary-text-color;
722
723
      background: transparent;
      border: 0;
Eugen Rochko's avatar
Eugen Rochko committed
724
      padding: 0 8px;
725
726
727
728
729
730
731
      text-decoration: none;
      font-size: 18px;
      line-height: 18px;

      &:hover,
      &:active,
      &:focus {
Eugen Rochko's avatar
Eugen Rochko committed
732
        color: $primary-text-color;
733
734
735
736
737
738
739
740
      }
    }

    a {
      font-size: 19px;
      position: relative;
      bottom: -1px;
    }
741
742
743
744

    a .fa, a:hover .fa {
      color: inherit;
    }
ncls7615's avatar
ncls7615 committed
745
746
747
  }
}

748
749
a.status-card {
  cursor: pointer;
ncls7615's avatar
ncls7615 committed
750

751
752
  &:hover {
    background: lighten($ui-base-color, 8%);
ncls7615's avatar
ncls7615 committed
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
  }
}

.status-card-photo {
  cursor: zoom-in;
  display: block;
  text-decoration: none;
    width: 100%;
    height: auto;
    margin: 0;
}

.status-card-video {
  iframe {
    width: 100%;
    height: 100%;
  }
}

.status-card__title {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
776
  color: $darker-text-color;
ncls7615's avatar
ncls7615 committed
777
778
779
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
780
  text-decoration: none;
ncls7615's avatar
ncls7615 committed
781
782
783
784
785
786
787
788
789
}

.status-card__content {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 14px 14px 14px 8px;
}

.status-card__description {
790
  color: $darker-text-color;
ncls7615's avatar
ncls7615 committed
791
792
793
794
795
796
}

.status-card__host {
  display: block;
  margin-top: 5px;
  font-size: 13px;
797
798
799
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
ncls7615's avatar
ncls7615 committed
800
801
802
803
804
}

.status-card__image {
  flex: 0 0 100px;
  background: lighten($ui-base-color, 8%);
805
  position: relative;
806

807
  & > .fa {
808
809
810
811
812
813
814
    font-size: 21px;
    position: absolute;
    transform-origin: 50% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
ncls7615's avatar
ncls7615 committed
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
}

.status-card.horizontal {
  display: block;

  .status-card__image {
    width: 100%;
  }

  .status-card__image-image {
    border-radius: 4px 4px 0 0;
  }

  .status-card__title {
    white-space: inherit;
  }
}

833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
.status-card.compact {
  border-color: lighten($ui-base-color, 4%);

  &.interactive {
    border: 0;
  }

  .status-card__content {
    padding: 8px;
    padding-top: 10px;
  }

  .status-card__title {
    white-space: nowrap;
  }

  .status-card__image {
    flex: 0 0 60px;
  }
}

a.status-card.compact:hover {
  background-color: lighten($ui-base-color, 4%);
}

ncls7615's avatar
ncls7615 committed
858
859
860
861
862
863
864
.status-card__image-image {
  border-radius: 4px 0 0 4px;
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
865
866
  background-size: cover;
  background-position: center center;
ncls7615's avatar
ncls7615 committed
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
}

.status__video-player {
  display: flex;
  align-items: center;
  background: $base-shadow-color;
  box-sizing: border-box;
  cursor: default; /* May not be needed */
  margin-top: 8px;
  overflow: hidden;
  position: relative;

  @include fullwidth-gallery;
}

.status__video-player-video {
  height: 100%;
Thibaut Girka's avatar
Thibaut Girka committed
884
  object-fit: contain;
ncls7615's avatar
ncls7615 committed
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 1;

  &:not(.letterbox) {
    height: 100%;
    object-fit: cover;
  }
}

.status__video-player-expand,
.status__video-player-mute {
  color: $primary-text-color;
  opacity: 0.8;
  position: absolute;
  right: 4px;
  text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
}

.status__video-player-spoiler {
  display: none;
  color: $primary-text-color;
  left: 4px;
  position: absolute;
  text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  top: 4px;
  z-index: 100;

  &.status__video-player-spoiler--visible {
    display: block;
  }
}

.status__video-player-expand {
  bottom: 4px;
  z-index: 100;
}

.status__video-player-mute {
  top: 4px;
  z-index: 5;
}
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992

.attachment-list {
  display: flex;
  font-size: 14px;
  border: 1px solid lighten($ui-base-color, 8%);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;

  &__icon {
    flex: 0 0 auto;
    color: $dark-text-color;
    padding: 8px 18px;
    cursor: default;
    border-right: 1px solid lighten($ui-base-color, 8%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 26px;

    .fa {
      display: block;
    }
  }

  &__list {
    list-style: none;
    padding: 4px 0;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    li {
      display: block;
      padding: 4px 0;
    }

    a {
      text-decoration: none;
      color: $dark-text-color;
      font-weight: 500;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  &.compact {
    border: 0;
    margin-top: 4px;

    .attachment-list__list {
      padding: 0;
      display: block;
    }

    .fa {
      color: $dark-text-color;
    }
  }
}