blob: 4e5c98aa8dee482ae182578be3082ffcc7d42c70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
@use '_variables' as *;
@use '_mixins' as *;
.form-group {
margin-bottom: 1rem;
}
.input-error:not(:focus) {
&,
+.nav-preview,
// Markdown textarea
+*+.tab-content {
border-color: $red !important;
}
}
.input-group .input-error {
z-index: 3;
}
.form-error,
.form-warning {
display: block;
margin-top: 5px;
font-size: 0.9em;
}
.form-error {
color: $red;
}
// Disable red error on input focus
.input-error:focus,
.input-group:focus-within {
+.form-error,
+*+.form-error,
// Markdown textarea
+*+*+.form-error {
color: pvar(--mainForegroundColor);
}
}
.form-group-description {
@include muted;
font-size: 14px;
margin-top: 10px;
}
// Useful with a "reset" button
.label-container {
display: flex;
white-space: nowrap;
align-items: baseline;
}
label + .form-group-description,
.label-container + .form-group-description {
margin-bottom: 10px;
margin-top: 0;
}
.reset-button {
@include peertube-button;
@include grey-button;
height: auto;
&.reset-button-small {
font-size: 80%;
padding: 2px 5px;
margin: 0 0.25rem;
height: fit-content;
line-height: initial;
}
}
|