aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment.component.scss
blob: 84da5727e6d534c8949efca2b1b9b4dcd2505774 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@import '_variables';
@import '_mixins';

.root-comment {
  font-size: 15px;
  display: flex;

  img {
    @include avatar(36px);

    margin-top: 5px;
    margin-right: 20px;
  }

  .comment {
    flex-grow: 1;
    // Fix word-wrap with flex
    min-width: 1px;

    .highlighted-comment {
      display: inline-block;
      background-color: #F5F5F5;
      color: #3d3d3d;
      padding: 0 5px;
      font-size: 13px;
      margin-bottom: 5px;
      font-weight: $font-semibold;
      border-radius: 3px;
    }

    .comment-account-date {
      display: flex;
      margin-bottom: 4px;

      .comment-account {
        @include disable-default-a-behaviour;

        word-break: break-all;
        color: var(--mainForegroundColor);
        font-weight: $font-bold;
      }

      .comment-date {
        color: #585858;
        margin-left: 10px;
      }
    }

    .comment-html {
      @include peertube-word-wrap;

      // Mentions
      /deep/ a {

        &:not(.linkified-url) {
          @include disable-default-a-behaviour;

          color: var(--mainForegroundColor);

          font-weight: $font-semibold;
        }

      }
    }

    .comment-actions {
      margin: 10px 0;
      display: flex;

      .comment-action-reply,
      .comment-action-delete {
        color: #585858;
        cursor: pointer;
        margin-right: 10px;

        &:hover {
          color: var(--mainForegroundColor);
        }
      }
    }
  }
}

// Decrease the space of child comments on small screens
@media screen and (max-width: 1600px) {
  .children {
    margin-left: -20px;
  }
}

@media screen and (max-width: 1200px) {
  .children {
    margin-left: -30px;
  }
}

@media screen and (max-width: 600px) {
  .children {
    margin-left: -35px;
  }

  .root-comment {
    img { margin-right: 10px; }
  }
}

@media screen and (max-width: 450px) {
  .root-comment {
    font-size: 14px;
  }
}