]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment.component.scss
improve comment form: cancel button and full width
[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);
18 margin: 10px 0;
19 }
20 }
21
88adad2d
RK
22 .right {
23 width: 100%;
24 }
25
69222afa 26 .comment-avatar {
cf117aaa 27 @include avatar(36px);
4635f59d 28
cf117aaa 29 margin-top: 5px;
4635f59d
C
30 }
31
cf117aaa
C
32 .comment {
33 flex-grow: 1;
c9ffd532
C
34 // Fix word-wrap with flex
35 min-width: 1px;
cf117aaa 36
1263fc4e
C
37 .highlighted-comment {
38 display: inline-block;
39 background-color: #F5F5F5;
40 color: #3d3d3d;
41 padding: 0 5px;
42 font-size: 13px;
43 margin-bottom: 5px;
44 font-weight: $font-semibold;
45 border-radius: 3px;
46 }
47
cf117aaa
C
48 .comment-account-date {
49 display: flex;
50 margin-bottom: 4px;
4635f59d 51
cf117aaa 52 .comment-account {
4cb6d457
C
53 @include disable-default-a-behaviour;
54
93ea9c47 55 word-break: break-all;
9a0fc840 56 color: var(--mainForegroundColor);
cf117aaa
C
57 font-weight: $font-bold;
58 }
59
60 .comment-date {
457bb213 61 color: $grey-foreground-color;
cf117aaa
C
62 margin-left: 10px;
63 }
4635f59d 64 }
4635f59d 65
2890b615 66 .comment-html {
7a14004b 67 @include peertube-word-wrap;
69222afa 68 margin-bottom: 10px;
54a932e8 69
6304df89 70 // Mentions
03652b31 71 ::ng-deep a {
e8cb4409 72
e8cb4409 73 &:not(.linkified-url) {
6304df89
C
74 @include disable-default-a-behaviour;
75
66467298 76 color: var(--mainForegroundColor);
6304df89 77
e8cb4409
C
78 font-weight: $font-semibold;
79 }
6304df89 80
2890b615 81 }
69222afa
JM
82
83 &.comment-html-deleted {
84 color: $grey-foreground-color;
85 }
2890b615
C
86 }
87
cf117aaa 88 .comment-actions {
69222afa 89 margin-bottom: 10px;
4cb6d457 90 display: flex;
4635f59d 91
6304df89
C
92 .comment-action-reply,
93 .comment-action-delete {
457bb213 94 color: $grey-foreground-color;
cf117aaa 95 cursor: pointer;
4cb6d457
C
96 margin-right: 10px;
97
98 &:hover {
66467298 99 color: var(--mainForegroundColor);
4cb6d457 100 }
cf117aaa
C
101 }
102 }
4635f59d 103 }
c9ffd532 104
c9ffd532 105 .children {
fc641ded
C
106 // Reduce avatars size for replies
107 .comment-avatar {
108 @include avatar(25px);
109 }
110
111 .left {
112 margin-right: 6px;
113 }
c9ffd532
C
114 }
115}
116
117@media screen and (max-width: 1200px) {
118 .children {
fc641ded 119 margin-left: -10px;
c9ffd532
C
120 }
121}
122
123@media screen and (max-width: 600px) {
c9ffd532 124 .root-comment {
fc641ded
C
125 .children {
126 margin-left: -20px;
93ea9c47 127
fc641ded
C
128 .left {
129 align-items: flex-start;
130
131 .vertical-border {
132 margin-left: 2px;
133 }
134 }
135 }
136
137 .comment {
138 .comment-account-date {
139 flex-direction: column;
140
141 .comment-date {
142 margin-left: 0;
143 }
144 }
145 }
93ea9c47 146 }
457bb213 147}