]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/shared/comment/video-comment.component.scss
Replace all glyphicon icons
[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 {
4635f59d 5 font-size: 15px;
cf117aaa 6 display: flex;
4635f59d 7
fc641ded 8 .left {
27bc9586
C
9 @include margin-right(10px);
10
fc641ded
C
11 display: flex;
12 flex-direction: column;
13 align-items: center;
fc641ded
C
14
15 .vertical-border {
16 width: 2px;
17 height: 100%;
18 background-color: rgba(0, 0, 0, 0.05);
c5c09c1e 19 margin: 10px calc(1rem + 1px);
fc641ded
C
20 }
21 }
22
88adad2d
RK
23 .right {
24 width: 100%;
25 }
fe88ca69 26}
88adad2d 27
fe88ca69
C
28.comment {
29 flex-grow: 1;
30 // Fix word-wrap with flex
31 min-width: 1px;
32}
ae05c991 33
fe88ca69
C
34.highlighted-comment {
35 display: inline-block;
36 background-color: #F5F5F5;
37 color: #3d3d3d;
38 padding: 0 5px;
39 font-size: 13px;
40 margin-bottom: 5px;
41 font-weight: $font-semibold;
42 border-radius: 3px;
43}
5dfb7c1d 44
fe88ca69
C
45.comment-account-date {
46 display: flex;
47 margin-bottom: 4px;
48}
83e9886e 49
fe88ca69 50.video-author {
27bc9586
C
51 @include padding-right(6px);
52 @include padding-left(6px);
53
fe88ca69
C
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;
931d3430 63 color: #fff !important;
fe88ca69 64}
d07b2944 65
fe88ca69
C
66.comment-account {
67 word-break: break-all;
68 font-weight: 600;
69 font-size: 90%;
83e9886e 70
fe88ca69
C
71 a {
72 @include disable-default-a-behaviour;
cf117aaa 73
fe88ca69 74 color: pvar(--mainForegroundColor);
d07b2944 75
fe88ca69
C
76 &:hover {
77 text-decoration: underline;
4635f59d 78 }
fe88ca69 79 }
4635f59d 80
fe88ca69
C
81 .comment-account-fid {
82 opacity: .6;
83 }
84}
54a932e8 85
fe88ca69 86.comment-date {
27bc9586
C
87 @include margin-left(5px);
88
fe88ca69
C
89 font-size: 90%;
90 color: pvar(--greyForegroundColor);
fe88ca69 91 text-decoration: none;
e8cb4409 92
fe88ca69
C
93 &:hover {
94 text-decoration: underline;
95 }
96}
6304df89 97
fe88ca69
C
98.comment-html {
99 @include peertube-word-wrap;
6304df89 100
fe88ca69
C
101 // Mentions
102 ::ng-deep a {
6304df89 103
fe88ca69
C
104 &:not(.linkified-url) {
105 @include disable-default-a-behaviour;
69222afa 106
fe88ca69 107 color: pvar(--mainForegroundColor);
5dfb7c1d 108
fe88ca69 109 font-weight: $font-semibold;
2890b615
C
110 }
111
fe88ca69 112 }
4635f59d 113
fe88ca69
C
114 // Paragraphs
115 ::ng-deep p {
116 margin-bottom: .3rem;
117 }
4cb6d457 118
fe88ca69
C
119 &.comment-html-deleted {
120 color: pvar(--greyForegroundColor);
121 margin-bottom: 1rem;
122 }
123}
edf1a4e5 124
fe88ca69
C
125.comment-actions {
126 margin-bottom: 10px;
127 display: flex;
9d45db29 128
fe88ca69
C
129 ::ng-deep .dropdown-toggle,
130 .comment-action-reply {
27bc9586
C
131 @include margin-right(10px);
132
fe88ca69
C
133 color: pvar(--greyForegroundColor);
134 cursor: pointer;
fe88ca69 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 .left {
27bc9586 160 @include margin-right(6px);
c9ffd532
C
161 }
162}
163
164@media screen and (max-width: 1200px) {
165 .children {
27bc9586 166 @include margin-left(-10px);
c9ffd532
C
167 }
168}
169
170@media screen and (max-width: 600px) {
fe88ca69 171 .children {
27bc9586 172 @include margin-left(-20px);
93ea9c47 173
fe88ca69
C
174 .left {
175 align-items: flex-start;
fc641ded 176
fe88ca69 177 .vertical-border {
27bc9586 178 @include margin-left(2px);
fc641ded
C
179 }
180 }
fe88ca69 181 }
fc641ded 182
fe88ca69
C
183 .comment-account-date {
184 flex-direction: column;
fc641ded 185
fe88ca69 186 .comment-date {
27bc9586 187 @include margin-left(0);
fc641ded 188 }
93ea9c47 189 }
457bb213 190}