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