]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment.component.scss
Implement remote interaction
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment.component.scss
CommitLineData
4635f59d
C
1@import '_variables';
2@import '_mixins';
3
cf117aaa 4.root-comment {
4635f59d 5 font-size: 15px;
cf117aaa 6 display: flex;
4635f59d 7
fc641ded
C
8 .left {
9 display: flex;
10 flex-direction: column;
11 align-items: center;
12 margin-right: 10px;
13
14 .vertical-border {
15 width: 2px;
16 height: 100%;
17 background-color: rgba(0, 0, 0, 0.05);
c5c09c1e 18 margin: 10px calc(1rem + 1px);
fc641ded
C
19 }
20 }
21
88adad2d
RK
22 .right {
23 width: 100%;
24 }
25
69222afa 26 .comment-avatar {
cf117aaa 27 @include avatar(36px);
4635f59d
C
28 }
29
cf117aaa
C
30 .comment {
31 flex-grow: 1;
c9ffd532
C
32 // Fix word-wrap with flex
33 min-width: 1px;
cf117aaa 34
1263fc4e
C
35 .highlighted-comment {
36 display: inline-block;
37 background-color: #F5F5F5;
38 color: #3d3d3d;
39 padding: 0 5px;
40 font-size: 13px;
41 margin-bottom: 5px;
42 font-weight: $font-semibold;
43 border-radius: 3px;
44 }
45
cf117aaa
C
46 .comment-account-date {
47 display: flex;
48 margin-bottom: 4px;
4635f59d 49
ae05c991
RK
50 .video-author {
51 height: 20px;
52 background-color: #888888;
53 border-radius: 12px;
54 margin-bottom: 2px;
55 max-width: 100%;
56 box-sizing: border-box;
57 flex-direction: row;
58 align-items: center;
59 display: inline-flex;
60 padding-right: 6px;
61 padding-left: 6px;
62 color: white !important;
63 }
64
cf117aaa 65 .comment-account {
93ea9c47 66 word-break: break-all;
5dfb7c1d 67 font-weight: 600;
ae05c991 68 font-size: 90%;
5dfb7c1d 69
83e9886e
C
70 a {
71 @include disable-default-a-behaviour;
72
e66883b3 73 color: pvar(--mainForegroundColor);
d07b2944
C
74
75 &:hover {
76 text-decoration: underline;
77 }
83e9886e
C
78 }
79
5dfb7c1d
RK
80 .comment-account-fid {
81 opacity: .6;
82 }
cf117aaa
C
83 }
84
85 .comment-date {
ae05c991 86 font-size: 90%;
e66883b3 87 color: pvar(--greyForegroundColor);
ae05c991
RK
88 margin-left: 5px;
89 text-decoration: none;
d07b2944
C
90
91 &:hover {
92 text-decoration: underline;
93 }
cf117aaa 94 }
4635f59d 95 }
4635f59d 96
2890b615 97 .comment-html {
7a14004b 98 @include peertube-word-wrap;
54a932e8 99
6304df89 100 // Mentions
03652b31 101 ::ng-deep a {
e8cb4409 102
e8cb4409 103 &:not(.linkified-url) {
6304df89
C
104 @include disable-default-a-behaviour;
105
e66883b3 106 color: pvar(--mainForegroundColor);
6304df89 107
e8cb4409
C
108 font-weight: $font-semibold;
109 }
6304df89 110
2890b615 111 }
69222afa 112
5dfb7c1d
RK
113 // Paragraphs
114 ::ng-deep p {
115 margin-bottom: .3rem;
116 }
117
69222afa 118 &.comment-html-deleted {
e66883b3 119 color: pvar(--greyForegroundColor);
c5c09c1e 120 margin-bottom: 1rem;
69222afa 121 }
2890b615
C
122 }
123
cf117aaa 124 .comment-actions {
69222afa 125 margin-bottom: 10px;
4cb6d457 126 display: flex;
4635f59d 127
edf1a4e5 128 ::ng-deep .dropdown-toggle,
45ae994a 129 .comment-action-reply {
e66883b3 130 color: pvar(--greyForegroundColor);
cf117aaa 131 cursor: pointer;
4cb6d457
C
132 margin-right: 10px;
133
45ae994a 134 &:hover, &:active, &:focus, &:focus-visible {
e66883b3 135 color: pvar(--mainForegroundColor);
4cb6d457 136 }
cf117aaa 137 }
edf1a4e5
RK
138
139 ::ng-deep .action-button {
140 background-color: transparent;
141 padding: 0;
142 font-weight: unset;
143 }
cf117aaa 144 }
9d45db29
RK
145
146 my-video-comment-add {
147 ::ng-deep form {
148 margin-top: 1rem;
149 margin-bottom: 0;
150 }
151 }
4635f59d 152 }
c9ffd532 153
c9ffd532 154 .children {
fc641ded
C
155 // Reduce avatars size for replies
156 .comment-avatar {
157 @include avatar(25px);
158 }
159
160 .left {
161 margin-right: 6px;
162 }
c9ffd532
C
163 }
164}
165
166@media screen and (max-width: 1200px) {
167 .children {
fc641ded 168 margin-left: -10px;
c9ffd532
C
169 }
170}
171
172@media screen and (max-width: 600px) {
c9ffd532 173 .root-comment {
fc641ded
C
174 .children {
175 margin-left: -20px;
93ea9c47 176
fc641ded
C
177 .left {
178 align-items: flex-start;
179
180 .vertical-border {
181 margin-left: 2px;
182 }
183 }
184 }
185
186 .comment {
187 .comment-account-date {
188 flex-direction: column;
189
190 .comment-date {
191 margin-left: 0;
192 }
193 }
194 }
93ea9c47 195 }
457bb213 196}