]>
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); | |
18 | margin: 10px 0; | |
19 | } | |
20 | } | |
21 | ||
69222afa | 22 | .comment-avatar { |
cf117aaa | 23 | @include avatar(36px); |
4635f59d | 24 | |
cf117aaa | 25 | margin-top: 5px; |
4635f59d C |
26 | } |
27 | ||
cf117aaa C |
28 | .comment { |
29 | flex-grow: 1; | |
c9ffd532 C |
30 | // Fix word-wrap with flex |
31 | min-width: 1px; | |
cf117aaa | 32 | |
1263fc4e C |
33 | .highlighted-comment { |
34 | display: inline-block; | |
35 | background-color: #F5F5F5; | |
36 | color: #3d3d3d; | |
37 | padding: 0 5px; | |
38 | font-size: 13px; | |
39 | margin-bottom: 5px; | |
40 | font-weight: $font-semibold; | |
41 | border-radius: 3px; | |
42 | } | |
43 | ||
cf117aaa C |
44 | .comment-account-date { |
45 | display: flex; | |
46 | margin-bottom: 4px; | |
4635f59d | 47 | |
cf117aaa | 48 | .comment-account { |
4cb6d457 C |
49 | @include disable-default-a-behaviour; |
50 | ||
93ea9c47 | 51 | word-break: break-all; |
9a0fc840 | 52 | color: var(--mainForegroundColor); |
cf117aaa C |
53 | font-weight: $font-bold; |
54 | } | |
55 | ||
56 | .comment-date { | |
457bb213 | 57 | color: $grey-foreground-color; |
cf117aaa C |
58 | margin-left: 10px; |
59 | } | |
4635f59d | 60 | } |
4635f59d | 61 | |
2890b615 | 62 | .comment-html { |
7a14004b | 63 | @include peertube-word-wrap; |
69222afa | 64 | margin-bottom: 10px; |
54a932e8 | 65 | |
6304df89 | 66 | // Mentions |
03652b31 | 67 | ::ng-deep a { |
e8cb4409 | 68 | |
e8cb4409 | 69 | &:not(.linkified-url) { |
6304df89 C |
70 | @include disable-default-a-behaviour; |
71 | ||
66467298 | 72 | color: var(--mainForegroundColor); |
6304df89 | 73 | |
e8cb4409 C |
74 | font-weight: $font-semibold; |
75 | } | |
6304df89 | 76 | |
2890b615 | 77 | } |
69222afa JM |
78 | |
79 | &.comment-html-deleted { | |
80 | color: $grey-foreground-color; | |
81 | } | |
2890b615 C |
82 | } |
83 | ||
cf117aaa | 84 | .comment-actions { |
69222afa | 85 | margin-bottom: 10px; |
4cb6d457 | 86 | display: flex; |
4635f59d | 87 | |
6304df89 C |
88 | .comment-action-reply, |
89 | .comment-action-delete { | |
457bb213 | 90 | color: $grey-foreground-color; |
cf117aaa | 91 | cursor: pointer; |
4cb6d457 C |
92 | margin-right: 10px; |
93 | ||
94 | &:hover { | |
66467298 | 95 | color: var(--mainForegroundColor); |
4cb6d457 | 96 | } |
cf117aaa C |
97 | } |
98 | } | |
4635f59d | 99 | } |
c9ffd532 | 100 | |
c9ffd532 | 101 | .children { |
fc641ded C |
102 | // Reduce avatars size for replies |
103 | .comment-avatar { | |
104 | @include avatar(25px); | |
105 | } | |
106 | ||
107 | .left { | |
108 | margin-right: 6px; | |
109 | } | |
c9ffd532 C |
110 | } |
111 | } | |
112 | ||
113 | @media screen and (max-width: 1200px) { | |
114 | .children { | |
fc641ded | 115 | margin-left: -10px; |
c9ffd532 C |
116 | } |
117 | } | |
118 | ||
119 | @media screen and (max-width: 600px) { | |
c9ffd532 | 120 | .root-comment { |
fc641ded C |
121 | .children { |
122 | margin-left: -20px; | |
93ea9c47 | 123 | |
fc641ded C |
124 | .left { |
125 | align-items: flex-start; | |
126 | ||
127 | .vertical-border { | |
128 | margin-left: 2px; | |
129 | } | |
130 | } | |
131 | } | |
132 | ||
133 | .comment { | |
134 | .comment-account-date { | |
135 | flex-direction: column; | |
136 | ||
137 | .comment-date { | |
138 | margin-left: 0; | |
139 | } | |
140 | } | |
141 | } | |
93ea9c47 | 142 | } |
457bb213 | 143 | } |