aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/class-helpers/_forms.scss
blob: 1e78df947ffb1948a822fb375f65146cdfa64484 (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
@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;
}

label+.form-group-description {
  margin-bottom: 10px;
  margin-top: 0;
}