status.scss 17.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@keyframes spring-flip-in {
  0% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(-242.4deg);
  }

  60% {
    transform: rotate(-158.35deg);
  }

  90% {
    transform: rotate(-187.5deg);
  }

  100% {
    transform: rotate(-180deg);
  }
}

@keyframes spring-flip-out {
  0% {
    transform: rotate(-180deg);
  }

  30% {
    transform: rotate(62.4deg);
  }

  60% {
    transform: rotate(-21.635deg);
  }

  90% {
    transform: rotate(7.5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

ncls7615's avatar
ncls7615 committed
45
46
47
48
49
.status__content--with-action {
  cursor: pointer;
}

.status__content {
ncls7615's avatar
ncls7615 committed
50
51
  position: relative;
  margin: 10px 0;
ncls7615's avatar
ncls7615 committed
52
53
54
55
  font-size: 15px;
  line-height: 20px;
  word-wrap: break-word;
  font-weight: 400;
ncls7615's avatar
ncls7615 committed
56
57
  overflow: visible;
  padding-top: 5px;
ncls7615's avatar
ncls7615 committed
58
59
60
61
62
63
64
65
66
67
68

  &:focus {
    outline: 0;
  }

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

69
  p, pre, blockquote {
ncls7615's avatar
ncls7615 committed
70
    margin-bottom: 20px;
kibi!'s avatar
kibi! committed
71
    white-space: pre-wrap;
ncls7615's avatar
ncls7615 committed
72
73
74
75
76
77

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

78
79
  .status__content__text,
  .e-content {
80
    overflow: hidden;
81
82
83
84
85
86

    & > ul,
    & > ol {
      margin-bottom: 20px;
    }

87
88
89
90
    h1, h2, h3, h4, h5 {
      margin-top: 20px;
      margin-bottom: 20px;
    }
91

92
    h1, h2 {
93
      font-weight: 700;
94
      font-size: 1.2em;
95
    }
96

97
    h2 {
98
      font-size: 1.1em;
99
    }
100

101
102
103
104
    h3, h4, h5 {
      font-weight: 500;
    }

105
    blockquote {
Thibaut Girka's avatar
Thibaut Girka committed
106
107
108
109
      padding-left: 10px;
      border-left: 3px solid $darker-text-color;
      color: $darker-text-color;
      white-space: normal;
110
111
112
113

      p:last-child {
        margin-bottom: 0;
      }
114
    }
115

116
    b, strong {
Thibaut Girka's avatar
Thibaut Girka committed
117
      font-weight: 700;
118
    }
119

120
121
122
    em, i {
      font-style: italic;
    }
123

124
125
126
127
128
    sub {
      font-size: smaller;
      text-align: sub;
    }

129
130
    sup {
      font-size: smaller;
ThibG's avatar
ThibG committed
131
      vertical-align: super;
132
133
    }

134
135
    ul, ol {
      margin-left: 1em;
136
137
138
139

      p {
        margin: 0;
      }
140
141
142
143
144
145
146
147
148
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }
149
150
  }

ncls7615's avatar
ncls7615 committed
151
  a {
152
    color: $secondary-text-color;
ncls7615's avatar
ncls7615 committed
153
154
155
156
157
158
    text-decoration: none;

    &:hover {
      text-decoration: underline;

      .fa {
159
        color: lighten($dark-text-color, 7%);
ncls7615's avatar
ncls7615 committed
160
161
162
163
164
165
166
167
168
169
170
171
172
173
      }
    }

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

        span {
          text-decoration: underline;
        }
      }
    }

    .fa {
174
      color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
175
176
177
    }
  }

ncls7615's avatar
ncls7615 committed
178
  .status__content__spoiler {
kibi!'s avatar
kibi! committed
179
180
181
182
    display: none;

    &.status__content__spoiler--visible {
      display: block;
ncls7615's avatar
ncls7615 committed
183
184
185
    }
  }

186
187
  a.unhandled-link {
    color: lighten($ui-highlight-color, 8%);
188
189
190

    .link-origin-tag {
      color: $gold-star;
191
      font-size: 0.8em;
192
    }
193
194
  }

ncls7615's avatar
ncls7615 committed
195
196
197
198
199
200
201
202
203
204
205
206
207
  .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
208
209
  background: lighten($ui-base-color, 30%);
  border: none;
210
  color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
211
212
  font-weight: 500;
  font-size: 11px;
ncls7615's avatar
ncls7615 committed
213
  padding: 0 5px;
ncls7615's avatar
ncls7615 committed
214
215
216
  text-transform: uppercase;
  line-height: inherit;
  cursor: pointer;
ncls7615's avatar
ncls7615 committed
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  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
238
239
}

240
241
242
243
244
245
246
247
248
249
250
251
252
253
.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
254
.status__prepend-icon-wrapper {
255
256
  left: -26px;
  position: absolute;
ncls7615's avatar
ncls7615 committed
257
258
259
260
261
262
263
264
265
266
267
}

.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
268
269
270
271
272
273
274
}

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

275
    &.status.status-direct:not(.read) {
ncls7615's avatar
ncls7615 committed
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
      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
291
  padding: 10px 14px;
ncls7615's avatar
ncls7615 committed
292
  position: relative;
ncls7615's avatar
ncls7615 committed
293
  height: auto;
ncls7615's avatar
ncls7615 committed
294
295
296
297
298
299
  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
300
    padding-right: 28px; // 12px + 16px
ncls7615's avatar
ncls7615 committed
301
302
303
304
305
306
307
308
309
310
  }

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

  opacity: 1;
  animation: fade 150ms linear;

Eugen Rochko's avatar
Eugen Rochko committed
311
312
  .video-player,
  .audio-player {
ncls7615's avatar
ncls7615 committed
313
314
315
    margin-top: 8px;
  }

316
  &.status-direct:not(.read) {
ncls7615's avatar
ncls7615 committed
317
    background: lighten($ui-base-color, 8%);
318
    border-bottom-color: lighten($ui-base-color, 12%);
ncls7615's avatar
ncls7615 committed
319
320
321
322
  }

  &.light {
    .status__relative-time {
323
      color: $lighter-text-color;
ncls7615's avatar
ncls7615 committed
324
325
326
    }

    .status__display-name {
327
      color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
328
329
330
331
    }

    .display-name {
      strong {
332
        color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
333
334
335
      }

      span {
336
        color: $lighter-text-color;
ncls7615's avatar
ncls7615 committed
337
338
339
340
      }
    }

    .status__content {
341
      color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
342
343

      a {
344
        color: $highlight-text-color;
ncls7615's avatar
ncls7615 committed
345
346
347
348
349
350
351
352
353
354
355
      }

      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
356
  }
ncls7615's avatar
ncls7615 committed
357

ncls7615's avatar
ncls7615 committed
358
359
360
361
362
363
364
365
366
367
368
369
370
  &.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));
371
      pointer-events: none;
ncls7615's avatar
ncls7615 committed
372
373
374
375
376
377
378
379
380
381
382
      content: "";
    }

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

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

385
386
387
388
389
390
391
392
393
      &: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
394
      a:hover {
ncls7615's avatar
ncls7615 committed
395
396
397
        text-decoration: none;
      }
    }
398
399
400
    &:focus > .status__content:after {
      background: linear-gradient(rgba(lighten($ui-base-color, 4%), 0), rgba(lighten($ui-base-color, 4%), 1));
    }
401
    &.status-direct:not(.read)> .status__content:after {
402
403
      background: linear-gradient(rgba(lighten($ui-base-color, 8%), 0), rgba(lighten($ui-base-color, 8%), 1));
    }
404
405
406
407
408
409
410
411

    .notification__message {
      margin-bottom: 0;
    }

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

ncls7615's avatar
ncls7615 committed
414
  .notification__message {
415
    margin: -10px 0px 10px 0;
ncls7615's avatar
ncls7615 committed
416
417
418
419
420
421
422
423
  }
}

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

    .icon-button.disabled {
424
      color: lighten($action-button-color, 13%);
ncls7615's avatar
ncls7615 committed
425
426
427
428
429
    }
  }
}

.status__relative-time {
ncls7615's avatar
ncls7615 committed
430
  display: inline-block;
Thibaut Girka's avatar
Thibaut Girka committed
431
  flex-grow: 1;
432
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
433
  font-size: 14px;
ncls7615's avatar
ncls7615 committed
434
435
436
437
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
ncls7615's avatar
ncls7615 committed
438
439
440
}

.status__display-name {
441
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
442
  overflow: hidden;
ncls7615's avatar
ncls7615 committed
443
444
}

445
.status__info__account .status__display-name {
ncls7615's avatar
ncls7615 committed
446
447
448
449
450
  display: block;
  max-width: 100%;
}

.status__info {
451
  display: flex;
Thibaut Girka's avatar
Thibaut Girka committed
452
  justify-content: space-between;
ncls7615's avatar
ncls7615 committed
453
  font-size: 15px;
Ash Lea's avatar
Ash Lea committed
454
455

  > span {
456
    text-overflow: ellipsis;
Ash Lea's avatar
Ash Lea committed
457
458
    overflow: hidden;
  }
459
460
461
462

  .notification__message > span {
    word-wrap: break-word;
  }
ncls7615's avatar
ncls7615 committed
463
464
465
}

.status__info__icons {
Ash Lea's avatar
Ash Lea committed
466
  display: flex;
467
468
  align-items: center;
  height: 1em;
469
  color: $action-button-color;
ncls7615's avatar
ncls7615 committed
470

Thibaut Girka's avatar
Thibaut Girka committed
471
472
473
474
475
  .status__media-icon,
  .status__visibility-icon,
  .status__reply-icon {
    padding-left: 2px;
    padding-right: 2px;
ncls7615's avatar
ncls7615 committed
476
  }
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494

  .status__collapse-button.active > .fa-angle-double-up {
    transform: rotate(-180deg);
  }
}

.no-reduce-motion .status__collapse-button {
  &.activate {
    & > .fa-angle-double-up {
      animation: spring-flip-in 1s linear;
    }
  }

  &.deactivate {
    & > .fa-angle-double-up {
      animation: spring-flip-out 1s linear;
    }
  }
ncls7615's avatar
ncls7615 committed
495
496
}

497
498
.status__info__account {
  display: flex;
499
  align-items: center;
Thibaut Girka's avatar
Thibaut Girka committed
500
  justify-content: flex-start;
501
502
}

ncls7615's avatar
ncls7615 committed
503
504
505
506
.status-check-box {
  border-bottom: 1px solid $ui-secondary-color;
  display: flex;

Thibaut Girka's avatar
Thibaut Girka committed
507
508
509
510
511
512
513
  .status-check-box__status {
    margin: 10px 0 10px 10px;
    flex: 1;

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

    .status__content {
Thibaut Girka's avatar
Thibaut Girka committed
516
517
518
519
      padding: 0;
      white-space: normal;
    }

Eugen Rochko's avatar
Eugen Rochko committed
520
521
    .video-player,
    .audio-player {
Thibaut Girka's avatar
Thibaut Girka committed
522
523
524
525
526
527
      margin-top: 8px;
      max-width: 250px;
    }

    .media-gallery__item-thumbnail {
      cursor: default;
ncls7615's avatar
ncls7615 committed
528
    }
ncls7615's avatar
ncls7615 committed
529
530
531
532
533
534
535
536
537
538
539
540
  }
}

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

.status__prepend {
Thibaut Girka's avatar
Fixups    
Thibaut Girka committed
541
542
543
  margin-top: -10px;
  margin-bottom: 10px;
  margin-left: 58px;
544
  color: $dark-text-color;
545
546
  padding: 8px 0;
  padding-bottom: 2px;
ncls7615's avatar
ncls7615 committed
547
548
549
550
  font-size: 14px;
  position: relative;

  .status__display-name strong {
551
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
552
553
554
555
556
557
558
559
560
561
562
563
564
  }

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

.status__action-bar {
  align-items: center;
  display: flex;
  margin-top: 8px;
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582

  &__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
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
}

.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;

606
607
608
609
610
611
612
613
614
615
616
617
  &--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
618
619
620
621
622
623
624
625
626
627
628
  .status__content {
    font-size: 19px;
    line-height: 24px;

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

Eugen Rochko's avatar
Eugen Rochko committed
629
630
  .video-player,
  .audio-player {
ncls7615's avatar
ncls7615 committed
631
632
633
634
635
636
    margin-top: 8px;
  }
}

.detailed-status__meta {
  margin-top: 15px;
637
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
  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;
  }
}

686
a.status__display-name,
ncls7615's avatar
ncls7615 committed
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
.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;
}

706
707
708
709
.detailed-status .button.logo-button {
  margin-bottom: 15px;
}

ncls7615's avatar
ncls7615 committed
710
.detailed-status__display-name {
711
  color: $secondary-text-color;
ncls7615's avatar
ncls7615 committed
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
  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
736
737
  flex: none;
  margin: 0 10px 0 0;
ncls7615's avatar
ncls7615 committed
738
739
740
741
742
  height: 48px;
  width: 48px;
}

.muted {
743
  .status__content,
ncls7615's avatar
ncls7615 committed
744
  .status__content p,
745
  .status__content a,
746
  .status__content__text {
747
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
748
749
750
  }

  .status__display-name strong {
751
    color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
752
753
754
755
756
757
758
759
  }

  .status__avatar {
    opacity: 0.5;
  }

  a.status__content__spoiler-link {
    background: $ui-base-lighter-color;
760
    color: $inverted-text-color;
ncls7615's avatar
ncls7615 committed
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780

    &: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;
781
  color: $dark-text-color;
ncls7615's avatar
ncls7615 committed
782
783
784
785
  margin-top: 14px;
  text-decoration: none;
  overflow: hidden;

786
787
788
789
790
791
792
793
794
795
796
797
  &__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
798
      border-radius: 8px;
799
800
801
802
803
804
805
806
807
808
      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
809
      color: $secondary-text-color;
810
811
      background: transparent;
      border: 0;
Eugen Rochko's avatar
Eugen Rochko committed
812
      padding: 0 8px;
813
814
815
816
817
818
819
      text-decoration: none;
      font-size: 18px;
      line-height: 18px;

      &:hover,
      &:active,
      &:focus {
Eugen Rochko's avatar
Eugen Rochko committed
820
        color: $primary-text-color;
821
822
823
824
825
826
827
828
      }
    }

    a {
      font-size: 19px;
      position: relative;
      bottom: -1px;
    }
829
830
831
832

    a .fa, a:hover .fa {
      color: inherit;
    }
ncls7615's avatar
ncls7615 committed
833
834
835
  }
}

836
837
a.status-card {
  cursor: pointer;
ncls7615's avatar
ncls7615 committed
838

839
840
  &:hover {
    background: lighten($ui-base-color, 8%);
ncls7615's avatar
ncls7615 committed
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
  }
}

.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;
864
  color: $darker-text-color;
ncls7615's avatar
ncls7615 committed
865
866
867
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
868
  text-decoration: none;
ncls7615's avatar
ncls7615 committed
869
870
871
872
873
874
875
876
877
}

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

.status-card__description {
878
  color: $darker-text-color;
ncls7615's avatar
ncls7615 committed
879
880
881
882
883
884
}

.status-card__host {
  display: block;
  margin-top: 5px;
  font-size: 13px;
885
886
887
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
ncls7615's avatar
ncls7615 committed
888
889
890
891
892
}

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

895
  & > .fa {
896
897
898
899
900
901
902
    font-size: 21px;
    position: absolute;
    transform-origin: 50% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
ncls7615's avatar
ncls7615 committed
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
}

.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;
  }
}

921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
.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
946
947
948
949
950
951
952
.status-card__image-image {
  border-radius: 4px 0 0 4px;
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
953
954
  background-size: cover;
  background-position: center center;
ncls7615's avatar
ncls7615 committed
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
993
994
995
996
997
998
999
1000
.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 {
For faster browsing, not all history is shown. View entire blame