]>
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 | |
69222afa | 8 | .comment-avatar { |
cf117aaa | 9 | @include avatar(36px); |
4635f59d | 10 | |
cf117aaa C |
11 | margin-top: 5px; |
12 | margin-right: 20px; | |
4635f59d C |
13 | } |
14 | ||
cf117aaa C |
15 | .comment { |
16 | flex-grow: 1; | |
c9ffd532 C |
17 | // Fix word-wrap with flex |
18 | min-width: 1px; | |
cf117aaa | 19 | |
1263fc4e C |
20 | .highlighted-comment { |
21 | display: inline-block; | |
22 | background-color: #F5F5F5; | |
23 | color: #3d3d3d; | |
24 | padding: 0 5px; | |
25 | font-size: 13px; | |
26 | margin-bottom: 5px; | |
27 | font-weight: $font-semibold; | |
28 | border-radius: 3px; | |
29 | } | |
30 | ||
cf117aaa C |
31 | .comment-account-date { |
32 | display: flex; | |
33 | margin-bottom: 4px; | |
4635f59d | 34 | |
cf117aaa | 35 | .comment-account { |
4cb6d457 C |
36 | @include disable-default-a-behaviour; |
37 | ||
93ea9c47 | 38 | word-break: break-all; |
9a0fc840 | 39 | color: var(--mainForegroundColor); |
cf117aaa C |
40 | font-weight: $font-bold; |
41 | } | |
42 | ||
43 | .comment-date { | |
457bb213 | 44 | color: $grey-foreground-color; |
cf117aaa C |
45 | margin-left: 10px; |
46 | } | |
4635f59d | 47 | } |
4635f59d | 48 | |
2890b615 | 49 | .comment-html { |
7a14004b | 50 | @include peertube-word-wrap; |
69222afa | 51 | margin-bottom: 10px; |
54a932e8 | 52 | |
6304df89 | 53 | // Mentions |
03652b31 | 54 | ::ng-deep a { |
e8cb4409 | 55 | |
e8cb4409 | 56 | &:not(.linkified-url) { |
6304df89 C |
57 | @include disable-default-a-behaviour; |
58 | ||
66467298 | 59 | color: var(--mainForegroundColor); |
6304df89 | 60 | |
e8cb4409 C |
61 | font-weight: $font-semibold; |
62 | } | |
6304df89 | 63 | |
2890b615 | 64 | } |
69222afa JM |
65 | |
66 | &.comment-html-deleted { | |
67 | color: $grey-foreground-color; | |
68 | } | |
2890b615 C |
69 | } |
70 | ||
cf117aaa | 71 | .comment-actions { |
69222afa | 72 | margin-bottom: 10px; |
4cb6d457 | 73 | display: flex; |
4635f59d | 74 | |
6304df89 C |
75 | .comment-action-reply, |
76 | .comment-action-delete { | |
457bb213 | 77 | color: $grey-foreground-color; |
cf117aaa | 78 | cursor: pointer; |
4cb6d457 C |
79 | margin-right: 10px; |
80 | ||
81 | &:hover { | |
66467298 | 82 | color: var(--mainForegroundColor); |
4cb6d457 | 83 | } |
cf117aaa C |
84 | } |
85 | } | |
4635f59d C |
86 | } |
87 | } | |
c9ffd532 C |
88 | |
89 | // Decrease the space of child comments on small screens | |
90 | @media screen and (max-width: 1600px) { | |
91 | .children { | |
92 | margin-left: -20px; | |
93 | } | |
94 | } | |
95 | ||
96 | @media screen and (max-width: 1200px) { | |
97 | .children { | |
98 | margin-left: -30px; | |
99 | } | |
100 | } | |
101 | ||
102 | @media screen and (max-width: 600px) { | |
103 | .children { | |
6304df89 | 104 | margin-left: -35px; |
c9ffd532 C |
105 | } |
106 | ||
107 | .root-comment { | |
69222afa | 108 | .comment-avatar { margin-right: 10px; } |
c9ffd532 | 109 | } |
f7ecffa4 | 110 | } |
93ea9c47 C |
111 | |
112 | @media screen and (max-width: 450px) { | |
113 | .root-comment { | |
114 | font-size: 14px; | |
115 | } | |
457bb213 | 116 | } |