]>
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 | |
cf117aaa C |
8 | img { |
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; |
54a932e8 | 51 | |
6304df89 | 52 | // Mentions |
e8cb4409 | 53 | /deep/ a { |
e8cb4409 | 54 | |
e8cb4409 | 55 | &:not(.linkified-url) { |
6304df89 C |
56 | @include disable-default-a-behaviour; |
57 | ||
66467298 | 58 | color: var(--mainForegroundColor); |
6304df89 | 59 | |
e8cb4409 C |
60 | font-weight: $font-semibold; |
61 | } | |
6304df89 | 62 | |
2890b615 C |
63 | } |
64 | } | |
65 | ||
cf117aaa C |
66 | .comment-actions { |
67 | margin: 10px 0; | |
4cb6d457 | 68 | display: flex; |
4635f59d | 69 | |
6304df89 C |
70 | .comment-action-reply, |
71 | .comment-action-delete { | |
457bb213 | 72 | color: $grey-foreground-color; |
cf117aaa | 73 | cursor: pointer; |
4cb6d457 C |
74 | margin-right: 10px; |
75 | ||
76 | &:hover { | |
66467298 | 77 | color: var(--mainForegroundColor); |
4cb6d457 | 78 | } |
cf117aaa C |
79 | } |
80 | } | |
4635f59d C |
81 | } |
82 | } | |
c9ffd532 C |
83 | |
84 | // Decrease the space of child comments on small screens | |
85 | @media screen and (max-width: 1600px) { | |
86 | .children { | |
87 | margin-left: -20px; | |
88 | } | |
89 | } | |
90 | ||
91 | @media screen and (max-width: 1200px) { | |
92 | .children { | |
93 | margin-left: -30px; | |
94 | } | |
95 | } | |
96 | ||
97 | @media screen and (max-width: 600px) { | |
98 | .children { | |
6304df89 | 99 | margin-left: -35px; |
c9ffd532 C |
100 | } |
101 | ||
102 | .root-comment { | |
103 | img { margin-right: 10px; } | |
104 | } | |
f7ecffa4 | 105 | } |
93ea9c47 C |
106 | |
107 | @media screen and (max-width: 450px) { | |
108 | .root-comment { | |
109 | font-size: 14px; | |
110 | } | |
457bb213 | 111 | } |