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