]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
fd206f0b | 3 | |
482fa503 RK |
4 | $form-base-input-width: 340px; |
5 | ||
482fa503 RK |
6 | form { |
7 | padding-bottom: 1.5rem; | |
ccc00cb2 C |
8 | } |
9 | ||
9bc36223 C |
10 | my-markdown-textarea { |
11 | display: block; | |
12 | max-width: 500px; | |
13 | } | |
27bc9586 | 14 | |
9bc36223 | 15 | .homepage my-markdown-textarea { |
fd206f0b | 16 | display: block; |
9bc36223 C |
17 | max-width: 90%; |
18 | ||
19 | ::ng-deep textarea { | |
20 | height: 300px !important; | |
21 | } | |
fd206f0b C |
22 | } |
23 | ||
9bc36223 | 24 | input[type=text], |
e40afb5b | 25 | input[type=number] { |
c9bc850e C |
26 | @include peertube-input-text($form-base-input-width); |
27 | ||
e40afb5b RK |
28 | display: block; |
29 | } | |
30 | ||
c5dcdab3 RK |
31 | .number-with-unit { |
32 | position: relative; | |
21d8979f | 33 | width: fit-content; |
c5dcdab3 RK |
34 | |
35 | input[type=number] + span { | |
36 | position: absolute; | |
5b0ec7cd | 37 | top: 0.2em; |
c5dcdab3 | 38 | right: 2.5rem; |
85edcb56 C |
39 | |
40 | @media screen and (max-width: $mobile-view) { | |
41 | display: none; | |
42 | } | |
c5dcdab3 | 43 | } |
8d8a037e JB |
44 | |
45 | input[disabled] { | |
46 | background-color: #f9f9f9; | |
47 | pointer-events: none; | |
48 | } | |
c5dcdab3 RK |
49 | } |
50 | ||
fd206f0b C |
51 | input[type=checkbox] { |
52 | @include peertube-checkbox(1px); | |
53 | } | |
54 | ||
55 | .peertube-select-container { | |
482fa503 | 56 | @include peertube-select-container($form-base-input-width); |
fd206f0b C |
57 | } |
58 | ||
ead64cdf C |
59 | my-select-options, |
60 | my-select-custom-value, | |
52c4976f | 61 | my-select-checkbox { |
48586fe0 C |
62 | @include responsive-width($form-base-input-width); |
63 | ||
64 | display: block; | |
52c4976f C |
65 | } |
66 | ||
fd206f0b C |
67 | input[type=submit] { |
68 | @include peertube-button; | |
69 | @include orange-button; | |
27bc9586 | 70 | @include margin-left(auto); |
fd206f0b | 71 | |
482fa503 | 72 | display: flex; |
5b7c47a7 | 73 | |
931d3430 | 74 | + .form-error { |
27bc9586 C |
75 | @include margin-left(5px); |
76 | ||
5b7c47a7 | 77 | display: inline; |
5b7c47a7 | 78 | } |
fd206f0b C |
79 | } |
80 | ||
81 | .inner-form-title { | |
482fa503 | 82 | @include settings-big-title; |
fd206f0b | 83 | } |
00b5556c | 84 | |
5b0ec7cd C |
85 | .inner-form-description { |
86 | font-size: 15px; | |
21d8979f | 87 | margin-bottom: 15px; |
5b0ec7cd C |
88 | } |
89 | ||
00b5556c C |
90 | textarea { |
91 | @include peertube-textarea(500px, 150px); | |
92 | ||
76314386 | 93 | max-width: 100%; |
00b5556c | 94 | display: block; |
2e3a0215 | 95 | |
8ae03c37 C |
96 | &.small { |
97 | height: 75px; | |
2e3a0215 | 98 | } |
00b5556c | 99 | } |
ccc00cb2 C |
100 | |
101 | .label-small-info { | |
102 | font-style: italic; | |
103 | margin-bottom: 10px; | |
5b0ec7cd | 104 | font-size: 14px; |
ccc00cb2 | 105 | } |
96a4a7c3 RK |
106 | |
107 | .disabled-checkbox-extra { | |
931d3430 C |
108 | &, |
109 | ::ng-deep label { | |
5fb2e288 C |
110 | opacity: .5; |
111 | pointer-events: none; | |
112 | } | |
96a4a7c3 | 113 | } |
482fa503 | 114 | |
8d8a037e JB |
115 | input[disabled] { |
116 | opacity: 0.5; | |
117 | } | |
118 | ||
482fa503 RK |
119 | ngb-tabset:not(.previews) ::ng-deep { |
120 | .nav-link { | |
121 | font-size: 105%; | |
122 | } | |
72c33e71 C |
123 | } |
124 | ||
125 | .submit-error { | |
126 | margin-bottom: 20px; | |
127 | } | |
16a173bb C |
128 | |
129 | .alert-signup { | |
130 | width: fit-content; | |
131 | margin-top: 10px; | |
132 | } | |
ea5cdc11 RK |
133 | |
134 | .callout-container { | |
135 | position: absolute; | |
136 | display: flex; | |
137 | height: 0; | |
138 | width: 100%; | |
139 | justify-content: right; | |
140 | ||
141 | .callout-link { | |
142 | @include peertube-button-link; | |
143 | ||
144 | position: relative; | |
145 | right: 3.3em; | |
146 | top: .3em; | |
147 | font-size: 90%; | |
148 | color: pvar(--mainColor); | |
149 | background-color: pvar(--mainBackgroundColor); | |
150 | padding: 0 .3em; | |
151 | } | |
152 | } |