]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - 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
1 @import '_variables';
2 @import '_mixins';
3
4 form {
5 margin-bottom: 30px;
6 }
7
8 .avatar-and-textarea {
9 display: flex;
10 margin-bottom: 10px;
11
12 img {
13 @include avatar(25px);
14
15 vertical-align: top;
16 margin-right: 10px;
17 }
18
19 .form-group {
20 flex-grow: 1;
21 margin: 0;
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;
31 right: 9px;
32
33 ::ng-deep .help-tooltip-button {
34 my-global-icon {
35 height: $markdown-icon-height;
36 width: $markdown-icon-width;
37
38 svg {
39 color: #C6C6C6;
40 fill: #C6C6C6;
41 border-radius: 3px;
42 }
43 }
44
45 &:focus, &:active, &:hover {
46 my-global-icon svg {
47 background-color: #C6C6C6;
48 color: pvar(--mainBackgroundColor);
49 fill: pvar(--mainBackgroundColor);
50 }
51 }
52 }
53 }
54
55 textarea {
56 @include peertube-textarea(100%, $peertube-textarea-height);
57 @include button-focus(pvar(--mainColorLightest));
58
59 min-height: calc(#{$peertube-textarea-height} - 15px * 2);
60 padding-right: $markdown-icon-width + 15px !important;
61
62 @media screen and (max-width: 600px) {
63 padding-right: $markdown-icon-width + 19px !important;
64 }
65
66 &:focus::placeholder {
67 opacity: 0;
68 }
69 }
70 }
71 }
72
73 .comment-buttons {
74 display: flex;
75 justify-content: flex-end;
76
77 button {
78 @include peertube-button;
79 @include disable-outline;
80 @include disable-default-a-behaviour;
81
82 &:not(:last-child) {
83 margin-right: .5rem;
84 }
85
86 &:last-child {
87 @include orange-button;
88 }
89 }
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 }
100 }
101
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;
117 }
118 }
119 }
120
121 @media screen and (max-width: 600px) {
122 textarea, .comment-buttons button {
123 font-size: 14px !important;
124 }
125
126 textarea {
127 padding: 5px !important;
128 }
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 }
141 }