]>
Commit | Line | Data |
---|---|---|
f72c78b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
3 | @use '_badges' as *; | |
4 | @use '_icons' as *; | |
72cd9f30 | 5 | @use '_fonts' as *; |
f72c78b2 | 6 | |
6f03f944 C |
7 | .link-orange { |
8 | color: pvar(--mainForegroundColor); | |
4c8a0991 C |
9 | font-weight: $font-semibold; |
10 | border-bottom: 0.18em solid pvar(--mainColor); | |
5b0ec7cd | 11 | display: inline-block; |
4c8a0991 | 12 | line-height: 1.1; |
6f03f944 C |
13 | |
14 | &:hover { | |
15 | color: pvar(--mainForegroundColor); | |
16 | opacity: 0.8; | |
17 | } | |
18 | } | |
19 | ||
20 | .underline-orange { | |
21 | display: inline-block; | |
5b0ec7cd | 22 | border-bottom: 0.19em solid pvar(--mainColor); |
6f03f944 C |
23 | } |
24 | ||
25 | // --------------------------------------------------------------------------- | |
26 | ||
f72c78b2 C |
27 | .peertube-button { |
28 | @include peertube-button; | |
29 | } | |
30 | ||
c0e3d9ff C |
31 | .peertube-button-big { |
32 | @include peertube-button-big; | |
33 | } | |
34 | ||
f72c78b2 C |
35 | .peertube-button-link { |
36 | @include peertube-button-link; | |
37 | } | |
38 | ||
c0e3d9ff C |
39 | .peertube-button-big-link { |
40 | @include peertube-button-big-link; | |
41 | } | |
42 | ||
f72c78b2 C |
43 | .orange-button { |
44 | @include orange-button; | |
45 | } | |
46 | ||
47 | .orange-button-inverted { | |
48 | @include orange-button-inverted; | |
49 | } | |
50 | ||
51 | .grey-button { | |
52 | @include grey-button; | |
53 | } | |
54 | ||
55 | .tertiary-button { | |
56 | @include tertiary-button; | |
57 | } | |
58 | ||
59 | .peertube-radio-container { | |
60 | @include peertube-radio-container; | |
61 | } | |
62 | ||
63 | // --------------------------------------------------------------------------- | |
64 | ||
65 | .muted { | |
72cd9f30 | 66 | @include muted; |
f72c78b2 C |
67 | } |
68 | ||
69 | // --------------------------------------------------------------------------- | |
70 | ||
71 | .pt-badge { | |
72 | @include peertube-badge; | |
73 | } | |
74 | ||
75 | // --------------------------------------------------------------------------- | |
76 | ||
77 | .form-group { | |
78 | margin-bottom: 1rem; | |
79 | } | |
80 | ||
17680620 | 81 | .input-error:not(:focus) { |
9bc36223 | 82 | &, |
a3d15b64 C |
83 | + .nav-preview, // Markdown textarea |
84 | + * + .tab-content { | |
9bc36223 C |
85 | border-color: $red !important; |
86 | } | |
17680620 C |
87 | } |
88 | ||
75084782 C |
89 | .input-group .input-error { |
90 | z-index: 3; | |
91 | } | |
92 | ||
f72c78b2 C |
93 | .form-error, |
94 | .form-warning { | |
95 | display: block; | |
96 | margin-top: 5px; | |
a3d15b64 | 97 | font-size: 0.9em; |
f72c78b2 C |
98 | } |
99 | ||
100 | .form-error { | |
101 | color: $red; | |
102 | } | |
103 | ||
75084782 C |
104 | // Disable red error on input focus |
105 | .input-error:focus, | |
106 | .input-group:focus-within { | |
a3d15b64 C |
107 | + .form-error, |
108 | + * + .form-error, // Markdown textarea | |
109 | + * + * + .form-error { | |
9bc36223 C |
110 | color: pvar(--mainForegroundColor); |
111 | } | |
f72c78b2 C |
112 | } |
113 | ||
114 | .form-group-description { | |
72cd9f30 | 115 | @include muted; |
f72c78b2 | 116 | |
5b0ec7cd | 117 | font-size: 14px; |
f72c78b2 C |
118 | margin-top: 10px; |
119 | } | |
120 | ||
6f03f944 C |
121 | label + .form-group-description { |
122 | margin-bottom: 10px; | |
123 | margin-top: 0; | |
124 | } | |
125 | ||
f72c78b2 C |
126 | // --------------------------------------------------------------------------- |
127 | ||
128 | ||
c4a05171 | 129 | .sub-menu-entry { |
f72c78b2 C |
130 | @include disable-default-a-behaviour; |
131 | @include margin-right(55px); | |
132 | ||
3d2078d6 | 133 | opacity: 0.7; |
f72c78b2 | 134 | color: pvar(--mainForegroundColor); |
f72c78b2 C |
135 | display: inline-block; |
136 | font-weight: $font-semibold; | |
137 | border-bottom: 2px solid transparent; | |
c4a05171 C |
138 | white-space: nowrap; |
139 | font-size: 1rem; | |
f72c78b2 C |
140 | |
141 | &.active { | |
142 | border-bottom-color: pvar(--mainColor); | |
143 | } | |
144 | ||
f72c78b2 C |
145 | &:hover, |
146 | &:active, | |
147 | &:focus { | |
148 | color: pvar(--mainForegroundColor); | |
149 | } | |
150 | ||
151 | &.active, | |
152 | &:hover, | |
153 | &:active, | |
c4a05171 | 154 | &:focus { |
f72c78b2 C |
155 | opacity: 1; |
156 | outline: 0 hidden !important; | |
157 | } | |
158 | ||
159 | @media screen and (max-width: $mobile-view) { | |
160 | @include margin-left(15px); | |
161 | } | |
162 | } | |
163 | ||
11056966 C |
164 | .title-page-v2 { |
165 | font-weight: normal; | |
166 | font-size: 15px; | |
167 | padding: 35px 25px; | |
168 | } | |
169 | ||
c4a05171 C |
170 | .title-page { |
171 | @include margin-right(55px); | |
172 | ||
173 | margin-top: 30px; | |
174 | margin-bottom: 25px; | |
175 | ||
176 | color: pvar(--mainForegroundColor); | |
177 | display: inline-block; | |
178 | font-weight: $font-semibold; | |
179 | font-size: 1.25rem; | |
180 | ||
181 | a { | |
182 | @include disable-default-a-behaviour; | |
183 | ||
184 | color: inherit; | |
185 | ||
186 | &:hover { | |
187 | color: inherit; | |
188 | opacity: 0.8; | |
189 | } | |
190 | } | |
191 | ||
192 | @media screen and (max-width: $mobile-view) { | |
193 | @include margin-left(15px); | |
194 | } | |
f72c78b2 C |
195 | } |
196 | ||
197 | .admin-sub-header { | |
198 | display: flex; | |
199 | align-items: center; | |
200 | margin-bottom: 30px; | |
201 | ||
202 | @media screen and (max-width: $small-view) { | |
203 | flex-direction: column; | |
204 | } | |
205 | } | |
206 | ||
207 | // --------------------------------------------------------------------------- | |
208 | ||
209 | .no-results { | |
210 | height: 40vh; | |
211 | max-height: 500px; | |
212 | ||
213 | display: flex; | |
214 | flex-direction: column; | |
215 | align-items: center; | |
216 | justify-content: center; | |
f72c78b2 C |
217 | font-weight: $font-semibold; |
218 | } | |
219 | ||
220 | // --------------------------------------------------------------------------- | |
221 | ||
222 | .chevron-down { | |
72cd9f30 | 223 | @include chevron-down-default; |
f72c78b2 C |
224 | } |
225 | ||
226 | .chevron-up { | |
72cd9f30 | 227 | @include chevron-up-default; |
f72c78b2 C |
228 | } |
229 | ||
230 | .chevron-right { | |
72cd9f30 | 231 | @include chevron-right-default; |
f72c78b2 C |
232 | } |
233 | ||
234 | .chevron-left { | |
72cd9f30 | 235 | @include chevron-left-default; |
f72c78b2 C |
236 | } |
237 | ||
238 | // --------------------------------------------------------------------------- | |
239 | ||
240 | .callout { | |
241 | padding: 1.25rem; | |
242 | border: 1px solid #eee; | |
243 | border-radius: .25rem; | |
244 | position: relative; | |
245 | ||
246 | > label { | |
247 | position: relative; | |
248 | top: -5px; | |
249 | left: -10px; | |
250 | color: #6c757d !important; | |
251 | } | |
252 | ||
253 | &:not(.callout-light) { | |
254 | border-left-width: .25rem; | |
255 | } | |
256 | ||
6f03f944 | 257 | &.callout-orange { |
f72c78b2 | 258 | border-color: pvar(--mainColorLightest); |
6f03f944 C |
259 | |
260 | &:not(.callout-light) { | |
261 | border-left-color: pvar(--mainColor); | |
262 | } | |
f72c78b2 C |
263 | } |
264 | } | |
265 | ||
266 | // --------------------------------------------------------------------------- | |
267 | ||
268 | .anchor { | |
269 | position: relative; | |
270 | top: #{-($header-height + 20px)}; | |
271 | } | |
272 | ||
273 | .offset-content { // if sub-menu fixed | |
274 | .anchor { | |
275 | top: #{-($header-height + $sub-menu-height + 20px)}; | |
276 | } | |
277 | } | |
6f03f944 C |
278 | |
279 | // --------------------------------------------------------------------------- | |
280 | ||
281 | .alert { | |
6f03f944 C |
282 | &.pt-alert-primary { |
283 | background-color: pvar(--mainColorVeryLight); | |
284 | border: 2px solid pvar(--mainColorLightest); | |
285 | } | |
286 | } |