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