]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
Fix lint
[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
f34cc2a4
K
102.emoji-flex {
103 display: flex;
104 flex-flow: row wrap;
105 align-items: center;
106
107 .emoji-flex-item {
108 text-align: left;
109 margin: auto;
110 min-width: 227px;
111 flex: 1;
112
113 code {
114 display: inline-block;
115 vertical-align: middle;
116 margin-left: 5px;
ee3bd9db 117 }
ee3bd9db 118 }
119}
120
fc641ded 121@media screen and (max-width: 600px) {
88adad2d 122 textarea, .comment-buttons button {
93ea9c47
C
123 font-size: 14px !important;
124 }
fc641ded
C
125
126 textarea {
127 padding: 5px !important;
128 }
660d11e9
RK
129}
130
131.modal-body {
132 .btn {
133 @include peertube-button;
134 @include orange-button;
135 }
136
137 span {
138 float: left;
139 margin-bottom: 20px;
140 }
fc641ded 141}