]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
54e61eac458df591058d46ee7fdbf536210f39e4
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment-add.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 $markdown-icon-height: 18px;
5 $markdown-icon-width: 30px;
6 $peertube-textarea-height: 60px;
7
8 form {
9 margin-bottom: 30px;
10 }
11
12 .avatar-and-textarea {
13 display: flex;
14 margin-bottom: 10px;
15
16 my-actor-avatar {
17 margin-right: 10px;
18 }
19
20 .form-group {
21 flex-grow: 1;
22 margin: 0;
23 position: relative;
24 }
25
26 textarea {
27 @include peertube-textarea(100%, $peertube-textarea-height);
28 @include button-focus(pvar(--mainColorLightest));
29
30 min-height: calc(#{$peertube-textarea-height} - 15px * 2);
31 padding-right: $markdown-icon-width + 15px !important;
32
33 @media screen and (max-width: 600px) {
34 padding-right: $markdown-icon-width + 19px !important;
35 }
36
37 &:focus::placeholder {
38 opacity: 0;
39 }
40 }
41 }
42
43 .markdown-guide {
44 position: absolute;
45 top: 5px;
46 right: 9px;
47
48 ::ng-deep .help-tooltip-button {
49 my-global-icon {
50 height: $markdown-icon-height;
51 width: $markdown-icon-width;
52
53 svg {
54 color: #C6C6C6;
55 fill: #C6C6C6;
56 border-radius: 3px;
57 }
58 }
59
60 &:focus, &:active, &:hover {
61 my-global-icon svg {
62 background-color: #C6C6C6;
63 color: pvar(--mainBackgroundColor);
64 fill: pvar(--mainBackgroundColor);
65 }
66 }
67 }
68 }
69
70 .comment-buttons {
71 display: flex;
72 justify-content: flex-end;
73 }
74
75 .emoji-flex {
76 display: flex;
77 flex-flow: row wrap;
78 align-items: center;
79
80 .emoji-flex-item {
81 text-align: left;
82 margin: auto;
83 min-width: 227px;
84 flex: 1;
85
86 code {
87 display: inline-block;
88 vertical-align: middle;
89 margin-left: 5px;
90 }
91 }
92 }
93
94 @media screen and (max-width: 600px) {
95 textarea,
96 .comment-buttons button {
97 font-size: 14px !important;
98 }
99
100 textarea {
101 padding: 5px !important;
102 }
103 }
104
105 .modal-body {
106 > span {
107 float: left;
108 margin-bottom: 20px;
109 }
110 }