]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment.component.scss
Avoid too large cert error messages
[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);
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;
cf117aaa 86 }
4635f59d 87 }
4635f59d 88
2890b615 89 .comment-html {
7a14004b 90 @include peertube-word-wrap;
54a932e8 91
6304df89 92 // Mentions
03652b31 93 ::ng-deep a {
e8cb4409 94
e8cb4409 95 &:not(.linkified-url) {
6304df89
C
96 @include disable-default-a-behaviour;
97
e66883b3 98 color: pvar(--mainForegroundColor);
6304df89 99
e8cb4409
C
100 font-weight: $font-semibold;
101 }
6304df89 102
2890b615 103 }
69222afa 104
5dfb7c1d
RK
105 // Paragraphs
106 ::ng-deep p {
107 margin-bottom: .3rem;
108 }
109
69222afa 110 &.comment-html-deleted {
e66883b3 111 color: pvar(--greyForegroundColor);
c5c09c1e 112 margin-bottom: 1rem;
69222afa 113 }
2890b615
C
114 }
115
cf117aaa 116 .comment-actions {
69222afa 117 margin-bottom: 10px;
4cb6d457 118 display: flex;
4635f59d 119
edf1a4e5 120 ::ng-deep .dropdown-toggle,
45ae994a 121 .comment-action-reply {
e66883b3 122 color: pvar(--greyForegroundColor);
cf117aaa 123 cursor: pointer;
4cb6d457
C
124 margin-right: 10px;
125
45ae994a 126 &:hover, &:active, &:focus, &:focus-visible {
e66883b3 127 color: pvar(--mainForegroundColor);
4cb6d457 128 }
cf117aaa 129 }
edf1a4e5
RK
130
131 ::ng-deep .action-button {
132 background-color: transparent;
133 padding: 0;
134 font-weight: unset;
135 }
cf117aaa 136 }
9d45db29
RK
137
138 my-video-comment-add {
139 ::ng-deep form {
140 margin-top: 1rem;
141 margin-bottom: 0;
142 }
143 }
4635f59d 144 }
c9ffd532 145
c9ffd532 146 .children {
fc641ded
C
147 // Reduce avatars size for replies
148 .comment-avatar {
149 @include avatar(25px);
150 }
151
152 .left {
153 margin-right: 6px;
154 }
c9ffd532
C
155 }
156}
157
158@media screen and (max-width: 1200px) {
159 .children {
fc641ded 160 margin-left: -10px;
c9ffd532
C
161 }
162}
163
164@media screen and (max-width: 600px) {
c9ffd532 165 .root-comment {
fc641ded
C
166 .children {
167 margin-left: -20px;
93ea9c47 168
fc641ded
C
169 .left {
170 align-items: flex-start;
171
172 .vertical-border {
173 margin-left: 2px;
174 }
175 }
176 }
177
178 .comment {
179 .comment-account-date {
180 flex-direction: column;
181
182 .comment-date {
183 margin-left: 0;
184 }
185 }
186 }
93ea9c47 187 }
457bb213 188}