]>
Commit | Line | Data |
---|---|---|
4635f59d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
93ef8a9d C |
4 | form { |
5 | margin-bottom: 30px; | |
6 | } | |
7 | ||
cf117aaa C |
8 | .avatar-and-textarea { |
9 | display: flex; | |
4635f59d | 10 | margin-bottom: 10px; |
4635f59d | 11 | |
cf117aaa | 12 | img { |
fc641ded | 13 | @include avatar(25px); |
cf117aaa C |
14 | |
15 | vertical-align: top; | |
fc641ded | 16 | margin-right: 10px; |
cf117aaa C |
17 | } |
18 | ||
19 | .form-group { | |
20 | flex-grow: 1; | |
21 | margin: 0; | |
3c176894 | 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 | left: 4px; | |
32 | ||
33 | @media screen and (max-width: 600px) { | |
34 | left: 0; | |
35 | } | |
36 | ||
37 | ::ng-deep .help-tooltip-button { | |
38 | my-global-icon { | |
39 | height: $markdown-icon-height; | |
40 | width: $markdown-icon-width; | |
41 | ||
42 | svg { | |
43 | opacity: 0.5; | |
44 | } | |
45 | } | |
46 | ||
47 | &:focus, &:active, &:hover { | |
48 | my-global-icon svg { | |
49 | opacity: 1; | |
50 | } | |
51 | } | |
52 | } | |
53 | } | |
cf117aaa C |
54 | |
55 | textarea { | |
3c176894 | 56 | @include peertube-textarea(100%, $peertube-textarea-height); |
f63c03fb | 57 | @include button-focus(pvar(--mainColorLightest)); |
2d9fea16 | 58 | |
3c176894 | 59 | text-indent: $markdown-icon-width; |
60 | ||
61 | @media screen and (max-width: 600px) { | |
62 | text-indent: $markdown-icon-width + 5px; | |
63 | } | |
64 | ||
2d9fea16 RK |
65 | &:focus::placeholder { |
66 | opacity: 0; | |
67 | } | |
cf117aaa C |
68 | } |
69 | } | |
4635f59d C |
70 | } |
71 | ||
88adad2d | 72 | .comment-buttons { |
4635f59d | 73 | display: flex; |
bf079b7b | 74 | justify-content: flex-end; |
4635f59d C |
75 | |
76 | button { | |
77 | @include peertube-button; | |
b7e21681 RK |
78 | @include disable-outline; |
79 | @include disable-default-a-behaviour; | |
80 | ||
81 | &:not(:last-child) { | |
82 | margin-right: .5rem; | |
83 | } | |
88adad2d RK |
84 | |
85 | &:last-child { | |
86 | @include orange-button; | |
87 | } | |
4635f59d | 88 | } |
79671021 RK |
89 | |
90 | .cancel-button { | |
91 | @include tertiary-button; | |
92 | ||
93 | font-weight: $font-semibold; | |
94 | display: inline-block; | |
95 | padding: 0 10px 0 10px; | |
96 | white-space: nowrap; | |
97 | background: transparent; | |
98 | } | |
4635f59d | 99 | } |
93ea9c47 | 100 | |
fc641ded | 101 | @media screen and (max-width: 600px) { |
88adad2d | 102 | textarea, .comment-buttons button { |
93ea9c47 C |
103 | font-size: 14px !important; |
104 | } | |
fc641ded C |
105 | |
106 | textarea { | |
107 | padding: 5px !important; | |
108 | } | |
660d11e9 RK |
109 | } |
110 | ||
111 | .modal-body { | |
112 | .btn { | |
113 | @include peertube-button; | |
114 | @include orange-button; | |
115 | } | |
116 | ||
117 | span { | |
118 | float: left; | |
119 | margin-bottom: 20px; | |
120 | } | |
fc641ded | 121 | } |