]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
Add emoji list to markdown infos
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment-add.component.scss
CommitLineData
4635f59d
C
1@import '_variables';
2@import '_mixins';
3
93ef8a9d
C
4form {
5 margin-bottom: 30px;
6}
7
cf117aaa
C
8.avatar-and-textarea {
9 display: flex;
4635f59d 10 margin-bottom: 10px;
4635f59d 11
cf117aaa 12 img {
fc641ded 13 @include avatar(25px);
cf117aaa
C
14
15 vertical-align: top;
fc641ded 16 margin-right: 10px;
cf117aaa
C
17 }
18
19 .form-group {
20 flex-grow: 1;
21 margin: 0;
3c176894 22 position: relative;
23
24 $peertube-textarea-height: 60px;
25 $markdown-icon-height: 18px;
26 $markdown-icon-width: 30px;
27
28 .markdown-guide {
29 position: absolute;
30 top: 5px;
438c256b 31 right: 9px;
3c176894 32
33 ::ng-deep .help-tooltip-button {
34 my-global-icon {
35 height: $markdown-icon-height;
36 width: $markdown-icon-width;
37
38 svg {
438c256b 39 color: #C6C6C6;
40 fill: #C6C6C6;
41 border-radius: 3px;
3c176894 42 }
43 }
44
45 &:focus, &:active, &:hover {
46 my-global-icon svg {
438c256b 47 background-color: #C6C6C6;
48 color: pvar(--mainBackgroundColor);
49 fill: pvar(--mainBackgroundColor);
3c176894 50 }
51 }
52 }
53 }
cf117aaa
C
54
55 textarea {
3c176894 56 @include peertube-textarea(100%, $peertube-textarea-height);
f63c03fb 57 @include button-focus(pvar(--mainColorLightest));
2d9fea16 58
438c256b 59 min-height: calc(#{$peertube-textarea-height} - 15px * 2);
60 padding-right: $markdown-icon-width + 15px !important;
3c176894 61
62 @media screen and (max-width: 600px) {
438c256b 63 padding-right: $markdown-icon-width + 19px !important;
3c176894 64 }
65
2d9fea16
RK
66 &:focus::placeholder {
67 opacity: 0;
68 }
cf117aaa
C
69 }
70 }
4635f59d
C
71}
72
88adad2d 73.comment-buttons {
4635f59d 74 display: flex;
bf079b7b 75 justify-content: flex-end;
4635f59d
C
76
77 button {
78 @include peertube-button;
b7e21681
RK
79 @include disable-outline;
80 @include disable-default-a-behaviour;
81
82 &:not(:last-child) {
83 margin-right: .5rem;
84 }
88adad2d
RK
85
86 &:last-child {
87 @include orange-button;
88 }
4635f59d 89 }
79671021
RK
90
91 .cancel-button {
92 @include tertiary-button;
93
94 font-weight: $font-semibold;
95 display: inline-block;
96 padding: 0 10px 0 10px;
97 white-space: nowrap;
98 background: transparent;
99 }
4635f59d 100}
93ea9c47 101
ee3bd9db 102.table-emoji {
103 td {
104 &:first-child {
105 width: 20px;
106 }
107
108 vertical-align: top;
109 }
110}
111
fc641ded 112@media screen and (max-width: 600px) {
88adad2d 113 textarea, .comment-buttons button {
93ea9c47
C
114 font-size: 14px !important;
115 }
fc641ded
C
116
117 textarea {
118 padding: 5px !important;
119 }
660d11e9
RK
120}
121
122.modal-body {
123 .btn {
124 @include peertube-button;
125 @include orange-button;
126 }
127
128 span {
129 float: left;
130 margin-bottom: 20px;
131 }
fc641ded 132}