]>
Commit | Line | Data |
---|---|---|
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 { |
4cb6d457 C |
66 | @include disable-default-a-behaviour; |
67 | ||
93ea9c47 | 68 | word-break: break-all; |
9a0fc840 | 69 | color: var(--mainForegroundColor); |
5dfb7c1d | 70 | font-weight: 600; |
ae05c991 | 71 | font-size: 90%; |
5dfb7c1d RK |
72 | |
73 | .comment-account-fid { | |
74 | opacity: .6; | |
75 | } | |
cf117aaa C |
76 | } |
77 | ||
78 | .comment-date { | |
ae05c991 | 79 | font-size: 90%; |
457bb213 | 80 | color: $grey-foreground-color; |
ae05c991 RK |
81 | margin-left: 5px; |
82 | text-decoration: none; | |
cf117aaa | 83 | } |
4635f59d | 84 | } |
4635f59d | 85 | |
2890b615 | 86 | .comment-html { |
7a14004b | 87 | @include peertube-word-wrap; |
54a932e8 | 88 | |
6304df89 | 89 | // Mentions |
03652b31 | 90 | ::ng-deep a { |
e8cb4409 | 91 | |
e8cb4409 | 92 | &:not(.linkified-url) { |
6304df89 C |
93 | @include disable-default-a-behaviour; |
94 | ||
66467298 | 95 | color: var(--mainForegroundColor); |
6304df89 | 96 | |
e8cb4409 C |
97 | font-weight: $font-semibold; |
98 | } | |
6304df89 | 99 | |
2890b615 | 100 | } |
69222afa | 101 | |
5dfb7c1d RK |
102 | // Paragraphs |
103 | ::ng-deep p { | |
104 | margin-bottom: .3rem; | |
105 | } | |
106 | ||
69222afa JM |
107 | &.comment-html-deleted { |
108 | color: $grey-foreground-color; | |
c5c09c1e | 109 | margin-bottom: 1rem; |
69222afa | 110 | } |
2890b615 C |
111 | } |
112 | ||
cf117aaa | 113 | .comment-actions { |
69222afa | 114 | margin-bottom: 10px; |
4cb6d457 | 115 | display: flex; |
4635f59d | 116 | |
edf1a4e5 | 117 | ::ng-deep .dropdown-toggle, |
6304df89 C |
118 | .comment-action-reply, |
119 | .comment-action-delete { | |
457bb213 | 120 | color: $grey-foreground-color; |
cf117aaa | 121 | cursor: pointer; |
4cb6d457 C |
122 | margin-right: 10px; |
123 | ||
124 | &:hover { | |
66467298 | 125 | color: var(--mainForegroundColor); |
4cb6d457 | 126 | } |
cf117aaa | 127 | } |
edf1a4e5 RK |
128 | |
129 | ::ng-deep .action-button { | |
130 | background-color: transparent; | |
131 | padding: 0; | |
132 | font-weight: unset; | |
133 | } | |
cf117aaa | 134 | } |
9d45db29 RK |
135 | |
136 | my-video-comment-add { | |
137 | ::ng-deep form { | |
138 | margin-top: 1rem; | |
139 | margin-bottom: 0; | |
140 | } | |
141 | } | |
4635f59d | 142 | } |
c9ffd532 | 143 | |
c9ffd532 | 144 | .children { |
fc641ded C |
145 | // Reduce avatars size for replies |
146 | .comment-avatar { | |
147 | @include avatar(25px); | |
148 | } | |
149 | ||
150 | .left { | |
151 | margin-right: 6px; | |
152 | } | |
c9ffd532 C |
153 | } |
154 | } | |
155 | ||
156 | @media screen and (max-width: 1200px) { | |
157 | .children { | |
fc641ded | 158 | margin-left: -10px; |
c9ffd532 C |
159 | } |
160 | } | |
161 | ||
162 | @media screen and (max-width: 600px) { | |
c9ffd532 | 163 | .root-comment { |
fc641ded C |
164 | .children { |
165 | margin-left: -20px; | |
93ea9c47 | 166 | |
fc641ded C |
167 | .left { |
168 | align-items: flex-start; | |
169 | ||
170 | .vertical-border { | |
171 | margin-left: 2px; | |
172 | } | |
173 | } | |
174 | } | |
175 | ||
176 | .comment { | |
177 | .comment-account-date { | |
178 | flex-direction: column; | |
179 | ||
180 | .comment-date { | |
181 | margin-left: 0; | |
182 | } | |
183 | } | |
184 | } | |
93ea9c47 | 185 | } |
457bb213 | 186 | } |