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