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