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