]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
Move to stylelint
[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,
61 &:active,
62 &:hover {
63 my-global-icon svg {
64 background-color: #C6C6C6;
65 color: pvar(--mainBackgroundColor);
66 fill: pvar(--mainBackgroundColor);
67 }
68 }
69 }
70 }
71
72 .comment-buttons {
73 display: flex;
74 justify-content: flex-end;
75 }
76
77 .emoji-flex {
78 display: flex;
79 flex-flow: row wrap;
80 align-items: center;
81
82 .emoji-flex-item {
83 text-align: left;
84 margin: auto;
85 min-width: 227px;
86 flex: 1;
87
88 code {
89 display: inline-block;
90 vertical-align: middle;
91 margin-left: 5px;
92 }
93 }
94 }
95
96 @media screen and (max-width: 600px) {
97 textarea,
98 .comment-buttons button {
99 font-size: 14px !important;
100 }
101
102 textarea {
103 padding: 5px !important;
104 }
105 }
106
107 .modal-body {
108 > span {
109 float: left;
110 margin-bottom: 20px;
111 }
112 }