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