]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/comment/video-comment.component.scss
Speedup embed first paint
[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 0;
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: $font-bold;
71 font-size: 90%;
72 }
73
74 .comment-date {
75 font-size: 90%;
76 color: $grey-foreground-color;
77 margin-left: 5px;
78 text-decoration: none;
79 }
80 }
81
82 .comment-html {
83 @include peertube-word-wrap;
84 margin-bottom: 10px;
85
86 // Mentions
87 ::ng-deep a {
88
89 &:not(.linkified-url) {
90 @include disable-default-a-behaviour;
91
92 color: var(--mainForegroundColor);
93
94 font-weight: $font-semibold;
95 }
96
97 }
98
99 &.comment-html-deleted {
100 color: $grey-foreground-color;
101 }
102 }
103
104 .comment-actions {
105 margin-bottom: 10px;
106 display: flex;
107
108 .comment-action-reply,
109 .comment-action-delete {
110 color: $grey-foreground-color;
111 cursor: pointer;
112 margin-right: 10px;
113
114 &:hover {
115 color: var(--mainForegroundColor);
116 }
117 }
118 }
119 }
120
121 .children {
122 // Reduce avatars size for replies
123 .comment-avatar {
124 @include avatar(25px);
125 }
126
127 .left {
128 margin-right: 6px;
129 }
130 }
131 }
132
133 @media screen and (max-width: 1200px) {
134 .children {
135 margin-left: -10px;
136 }
137 }
138
139 @media screen and (max-width: 600px) {
140 .root-comment {
141 .children {
142 margin-left: -20px;
143
144 .left {
145 align-items: flex-start;
146
147 .vertical-border {
148 margin-left: 2px;
149 }
150 }
151 }
152
153 .comment {
154 .comment-account-date {
155 flex-direction: column;
156
157 .comment-date {
158 margin-left: 0;
159 }
160 }
161 }
162 }
163 }