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