]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/comment/video-comment.component.scss
Add user moderation dropdown to comments
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 .root-comment {
5 font-size: 15px;
6 display: flex;
7
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);
18 margin: 10px calc(1rem + 1px);
19 }
20 }
21
22 .right {
23 width: 100%;
24 }
25
26 .comment-avatar {
27 @include avatar(36px);
28 }
29
30 .comment {
31 flex-grow: 1;
32 // Fix word-wrap with flex
33 min-width: 1px;
34
35 .highlighted-comment {
36 display: inline-block;
37 background-color: #F5F5F5;
38 color: #3d3d3d;
39 padding: 0 5px;
40 font-size: 13px;
41 margin-bottom: 5px;
42 font-weight: $font-semibold;
43 border-radius: 3px;
44 }
45
46 .comment-account-date {
47 display: flex;
48 margin-bottom: 4px;
49
50 .video-author {
51 height: 20px;
52 background-color: #888888;
53 border-radius: 12px;
54 margin-bottom: 2px;
55 max-width: 100%;
56 box-sizing: border-box;
57 flex-direction: row;
58 align-items: center;
59 display: inline-flex;
60 padding-right: 6px;
61 padding-left: 6px;
62 color: white !important;
63 }
64
65 .comment-account {
66 @include disable-default-a-behaviour;
67
68 word-break: break-all;
69 color: var(--mainForegroundColor);
70 font-weight: 600;
71 font-size: 90%;
72
73 .comment-account-fid {
74 opacity: .6;
75 }
76 }
77
78 .comment-date {
79 font-size: 90%;
80 color: $grey-foreground-color;
81 margin-left: 5px;
82 text-decoration: none;
83 }
84 }
85
86 .comment-html {
87 @include peertube-word-wrap;
88
89 // Mentions
90 ::ng-deep a {
91
92 &:not(.linkified-url) {
93 @include disable-default-a-behaviour;
94
95 color: var(--mainForegroundColor);
96
97 font-weight: $font-semibold;
98 }
99
100 }
101
102 // Paragraphs
103 ::ng-deep p {
104 margin-bottom: .3rem;
105 }
106
107 &.comment-html-deleted {
108 color: $grey-foreground-color;
109 margin-bottom: 1rem;
110 }
111 }
112
113 .comment-actions {
114 margin-bottom: 10px;
115 display: flex;
116
117 ::ng-deep .dropdown-toggle,
118 .comment-action-reply,
119 .comment-action-delete {
120 color: $grey-foreground-color;
121 cursor: pointer;
122 margin-right: 10px;
123
124 &:hover {
125 color: var(--mainForegroundColor);
126 }
127 }
128
129 ::ng-deep .action-button {
130 background-color: transparent;
131 padding: 0;
132 font-weight: unset;
133 }
134 }
135 }
136
137 .children {
138 // Reduce avatars size for replies
139 .comment-avatar {
140 @include avatar(25px);
141 }
142
143 .left {
144 margin-right: 6px;
145 }
146 }
147 }
148
149 @media screen and (max-width: 1200px) {
150 .children {
151 margin-left: -10px;
152 }
153 }
154
155 @media screen and (max-width: 600px) {
156 .root-comment {
157 .children {
158 margin-left: -20px;
159
160 .left {
161 align-items: flex-start;
162
163 .vertical-border {
164 margin-left: 2px;
165 }
166 }
167 }
168
169 .comment {
170 .comment-account-date {
171 flex-direction: column;
172
173 .comment-date {
174 margin-left: 0;
175 }
176 }
177 }
178 }
179 }