]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment.component.scss
Move to stylelint
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment.component.scss
CommitLineData
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 }
fe88ca69 25}
88adad2d 26
746018f6
C
27my-actor-avatar {
28 @include actor-avatar-size(36px);
29}
30
fe88ca69
C
31.comment {
32 flex-grow: 1;
33 // Fix word-wrap with flex
34 min-width: 1px;
35}
ae05c991 36
fe88ca69
C
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}
5dfb7c1d 47
fe88ca69
C
48.comment-account-date {
49 display: flex;
50 margin-bottom: 4px;
51}
83e9886e 52
fe88ca69
C
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;
931d3430 65 color: #fff !important;
fe88ca69 66}
d07b2944 67
fe88ca69
C
68.comment-account {
69 word-break: break-all;
70 font-weight: 600;
71 font-size: 90%;
83e9886e 72
fe88ca69
C
73 a {
74 @include disable-default-a-behaviour;
cf117aaa 75
fe88ca69 76 color: pvar(--mainForegroundColor);
d07b2944 77
fe88ca69
C
78 &:hover {
79 text-decoration: underline;
4635f59d 80 }
fe88ca69 81 }
4635f59d 82
fe88ca69
C
83 .comment-account-fid {
84 opacity: .6;
85 }
86}
54a932e8 87
fe88ca69
C
88.comment-date {
89 font-size: 90%;
90 color: pvar(--greyForegroundColor);
91 margin-left: 5px;
92 text-decoration: none;
e8cb4409 93
fe88ca69
C
94 &:hover {
95 text-decoration: underline;
96 }
97}
6304df89 98
fe88ca69
C
99.comment-html {
100 @include peertube-word-wrap;
6304df89 101
fe88ca69
C
102 // Mentions
103 ::ng-deep a {
6304df89 104
fe88ca69
C
105 &:not(.linkified-url) {
106 @include disable-default-a-behaviour;
69222afa 107
fe88ca69 108 color: pvar(--mainForegroundColor);
5dfb7c1d 109
fe88ca69 110 font-weight: $font-semibold;
2890b615
C
111 }
112
fe88ca69 113 }
4635f59d 114
fe88ca69
C
115 // Paragraphs
116 ::ng-deep p {
117 margin-bottom: .3rem;
118 }
4cb6d457 119
fe88ca69
C
120 &.comment-html-deleted {
121 color: pvar(--greyForegroundColor);
122 margin-bottom: 1rem;
123 }
124}
edf1a4e5 125
fe88ca69
C
126.comment-actions {
127 margin-bottom: 10px;
128 display: flex;
9d45db29 129
fe88ca69
C
130 ::ng-deep .dropdown-toggle,
131 .comment-action-reply {
132 color: pvar(--greyForegroundColor);
133 cursor: pointer;
134 margin-right: 10px;
135
931d3430
C
136 &:hover,
137 &:active,
138 &:focus,
139 &:focus-visible {
fe88ca69 140 color: pvar(--mainForegroundColor);
9d45db29 141 }
4635f59d 142 }
c9ffd532 143
fe88ca69
C
144 ::ng-deep .action-button {
145 background-color: transparent;
146 padding: 0;
147 font-weight: unset;
148 }
149}
fc641ded 150
fe88ca69
C
151my-video-comment-add {
152 ::ng-deep form {
153 margin-top: 1rem;
154 margin-bottom: 0;
155 }
156}
157
746018f6 158.is-child {
fe88ca69 159 // Reduce avatars size for replies
746018f6
C
160 my-actor-avatar {
161 @include actor-avatar-size(25px);
fe88ca69
C
162 }
163
164 .left {
165 margin-right: 6px;
c9ffd532
C
166 }
167}
168
169@media screen and (max-width: 1200px) {
170 .children {
fc641ded 171 margin-left: -10px;
c9ffd532
C
172 }
173}
174
175@media screen and (max-width: 600px) {
fe88ca69
C
176 .children {
177 margin-left: -20px;
93ea9c47 178
fe88ca69
C
179 .left {
180 align-items: flex-start;
fc641ded 181
fe88ca69
C
182 .vertical-border {
183 margin-left: 2px;
fc641ded
C
184 }
185 }
fe88ca69 186 }
fc641ded 187
fe88ca69
C
188 .comment-account-date {
189 flex-direction: column;
fc641ded 190
fe88ca69
C
191 .comment-date {
192 margin-left: 0;
fc641ded 193 }
93ea9c47 194 }
457bb213 195}