status.scss 12 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
8
  position: relative;
  margin: 10px 0;
  padding: 0 12px;
ncls7615's avatar
ncls7615 committed
9
10
11
12
  font-size: 15px;
  line-height: 20px;
  word-wrap: break-word;
  font-weight: 400;
ncls7615's avatar
ncls7615 committed
13
14
  overflow: visible;
  padding-top: 5px;
ncls7615's avatar
ncls7615 committed
15
16
17
18
19
20
21
22
23
24
25
26
27

  &:focus {
    outline: 0;
  }

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

  p {
    margin-bottom: 20px;
kibi!'s avatar
kibi! committed
28
    white-space: pre-wrap;
ncls7615's avatar
ncls7615 committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

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

  a {
    color: $ui-secondary-color;
    text-decoration: none;

    &:hover {
      text-decoration: underline;

      .fa {
        color: lighten($ui-base-color, 40%);
      }
    }

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

        span {
          text-decoration: underline;
        }
      }
    }

    .fa {
      color: lighten($ui-base-color, 30%);
    }
  }

ncls7615's avatar
ncls7615 committed
62
  .status__content__spoiler {
kibi!'s avatar
kibi! committed
63
64
65
66
    display: none;

    &.status__content__spoiler--visible {
      display: block;
ncls7615's avatar
ncls7615 committed
67
68
69
    }
  }

ncls7615's avatar
ncls7615 committed
70
71
72
73
74
75
76
77
78
79
80
81
82
  .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
83
84
  background: lighten($ui-base-color, 30%);
  border: none;
ncls7615's avatar
ncls7615 committed
85
86
87
  color: lighten($ui-base-color, 8%);
  font-weight: 500;
  font-size: 11px;
ncls7615's avatar
ncls7615 committed
88
  padding: 0 5px;
ncls7615's avatar
ncls7615 committed
89
90
91
  text-transform: uppercase;
  line-height: inherit;
  cursor: pointer;
ncls7615's avatar
ncls7615 committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
  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
113
114
115
}

.status__prepend-icon-wrapper {
ncls7615's avatar
ncls7615 committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
  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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
}

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

    .status.status-direct {
      background: lighten($ui-base-color, 12%);

      &.muted {
        background: transparent;
      }
    }

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

.status {
  padding: 8px 10px;
  position: relative;
ncls7615's avatar
ncls7615 committed
156
  height: auto;
ncls7615's avatar
ncls7615 committed
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
  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.
    padding-right: 26px; // 10px + 16px
  }

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

  opacity: 1;
  animation: fade 150ms linear;

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

  &.status-direct {
    background: lighten($ui-base-color, 8%);

    .icon-button.disabled {
      color: lighten($ui-base-color, 16%);
    }
  }

  &.light {
    .status__relative-time {
      color: $ui-primary-color;
    }

    .status__display-name {
      color: $ui-base-color;
    }

    .display-name {
      strong {
        color: $ui-base-color;
      }

      span {
        color: $ui-primary-color;
      }
    }

    .status__content {
      color: $ui-base-color;

      a {
        color: $ui-highlight-color;
      }

      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
221
  }
ncls7615's avatar
ncls7615 committed
222

ncls7615's avatar
ncls7615 committed
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
  &.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));
      content: "";
    }

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

    .status__content {
      height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
247
248
      margin: 0;
      padding-top: 0;
ncls7615's avatar
ncls7615 committed
249
250

      a:hover {
ncls7615's avatar
ncls7615 committed
251
252
253
        text-decoration: none;
      }
    }
254
255
256
257
258
259
260
261

    .notification__message {
      margin-bottom: 0;
    }

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

ncls7615's avatar
ncls7615 committed
264
  .notification__message {
265
    margin: -10px 0px 10px 0;
ncls7615's avatar
ncls7615 committed
266
267
268
269
270
271
272
273
274
275
276
277
278
279
  }
}

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

    .icon-button.disabled {
      color: lighten($ui-base-color, 13%);
    }
  }
}

.status__relative-time {
ncls7615's avatar
ncls7615 committed
280
281
282
283
  display: inline-block;
  margin-left: auto;
  padding-left: 18px;
  width: 120px;
ncls7615's avatar
ncls7615 committed
284
285
  color: $ui-base-lighter-color;
  font-size: 14px;
ncls7615's avatar
ncls7615 committed
286
287
288
289
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
ncls7615's avatar
ncls7615 committed
290
291
292
}

.status__display-name {
ncls7615's avatar
ncls7615 committed
293
  margin: 0 auto 0 0;
ncls7615's avatar
ncls7615 committed
294
  color: $ui-base-lighter-color;
ncls7615's avatar
ncls7615 committed
295
  overflow: hidden;
ncls7615's avatar
ncls7615 committed
296
297
}

298
.status__info__account .status__display-name {
ncls7615's avatar
ncls7615 committed
299
300
301
302
303
  display: block;
  max-width: 100%;
}

.status__info {
304
  display: flex;
ncls7615's avatar
ncls7615 committed
305
  font-size: 15px;
Ash Lea's avatar
Ash Lea committed
306
307

  > span {
308
    text-overflow: ellipsis;
Ash Lea's avatar
Ash Lea committed
309
310
    overflow: hidden;
  }
311
312
313
314

  .notification__message > span {
    word-wrap: break-word;
  }
ncls7615's avatar
ncls7615 committed
315
316
317
}

.status__info__icons {
318
  margin-left: auto;
Ash Lea's avatar
Ash Lea committed
319
  display: flex;
320
321
  align-items: center;
  height: 1em;
ncls7615's avatar
ncls7615 committed
322
323
324
325
326
  color: lighten($ui-base-color, 26%);

  .status__visibility-icon {
    padding-left: 6px;
  }
ncls7615's avatar
ncls7615 committed
327
328
}

329
330
331
332
.status__info__account {
  display: flex;
}

ncls7615's avatar
ncls7615 committed
333
334
335
336
.status-check-box {
  border-bottom: 1px solid $ui-secondary-color;
  display: flex;

Thibaut Girka's avatar
Thibaut Girka committed
337
338
339
340
341
342
343
  .status-check-box__status {
    margin: 10px 0 10px 10px;
    flex: 1;

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

    .status__content {
Thibaut Girka's avatar
Thibaut Girka committed
346
347
348
349
350
351
352
353
354
355
356
      padding: 0;
      white-space: normal;
    }

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

    .media-gallery__item-thumbnail {
      cursor: default;
ncls7615's avatar
ncls7615 committed
357
    }
ncls7615's avatar
ncls7615 committed
358
359
360
361
362
363
364
365
366
367
368
369
  }
}

.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
370
  margin: -10px -10px 10px;
ncls7615's avatar
ncls7615 committed
371
  color: $ui-base-lighter-color;
ncls7615's avatar
ncls7615 committed
372
  padding: 8px 10px 0 68px;
ncls7615's avatar
ncls7615 committed
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
  font-size: 14px;
  position: relative;

  .status__display-name strong {
    color: $ui-base-lighter-color;
  }

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

.status__action-bar {
  align-items: center;
  display: flex;
  margin-top: 8px;
}

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

.status__action-bar-dropdown {
  float: left;
  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;

  .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;
  color: $ui-base-lighter-color;
  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;
  }
}

.status__display-name,
.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 {
  color: $ui-secondary-color;
  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
529
530
  flex: none;
  margin: 0 10px 0 0;
ncls7615's avatar
ncls7615 committed
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
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
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
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
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
  height: 48px;
  width: 48px;
}

.muted {
  .status__content p,
  .status__content a {
    color: $ui-base-lighter-color;
  }

  .status__display-name strong {
    color: $ui-base-lighter-color;
  }

  .status__avatar {
    opacity: 0.5;
  }

  a.status__content__spoiler-link {
    background: $ui-base-lighter-color;
    color: lighten($ui-base-color, 4%);

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

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

.status-card {
  display: flex;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid lighten($ui-base-color, 8%);
  border-radius: 4px;
  color: $ui-base-lighter-color;
  margin-top: 14px;
  text-decoration: none;
  overflow: hidden;

  &:hover {
    background: lighten($ui-base-color, 8%);
  }
}

.status-card-video,
.status-card-rich,
.status-card-photo {
  margin-top: 14px;
  overflow: hidden;

  iframe {
    width: 100%;
    height: auto;
  }
}

.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;
  color: $ui-primary-color;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.status-card__description {
  color: $ui-primary-color;
}

.status-card__host {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

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

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

.status-card__image-image {
  border-radius: 4px 0 0 4px;
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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%;
  object-fit: cover;
  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;
}