]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
daaf337c8608178800fd4e097104fce354d1d2aa
[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 @media screen and (max-width: 600px) {
103 textarea, .comment-buttons button {
104 font-size: 14px !important;
105 }
106
107 textarea {
108 padding: 5px !important;
109 }
110 }
111
112 .modal-body {
113 .btn {
114 @include peertube-button;
115 @include orange-button;
116 }
117
118 span {
119 float: left;
120 margin-bottom: 20px;
121 }
122 }