Repository navigation
Expand file tree
/
Copy path_errors.scss
More file actions
66 lines (57 loc) · 1.37 KB
/
Copy path_errors.scss
File metadata and controls
66 lines (57 loc) · 1.37 KB
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
/*
These are general error styles.
Field specific error styles are
located next to the rest of the
styles for that field.
Note that this is one case where
we are nesting all of the styles
under a commone parent. It is
correct as we are overriding
styles for a specific purpose.
*/
.gform_validation_error {
.gform_fields .gfield_error {
margin-bottom: $gfs-form-spacing-y;
}
.validation_error {
@extend %error-message;
border-radius: $gfs-border-radius;
margin-bottom: $gfs-form-spacing-y;
padding: 10px;
}
.gfield_error {
background: $gfs-error-background;
border-radius: $gfs-border-radius;
margin-bottom: $gfs-form-spacing-y;
padding: 0 5px 12px;
position: relative;
.gfield_label {
color: $gfs-error-color;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
border-color: $gfs-error-color;
}
}
.validation_message {
@extend %error-message;
border-radius: 0 0 $gfs-border-radius $gfs-border-radius;
bottom: 0;
left: 0;
line-height: 16px;
padding: 2px 5px;
position: absolute;
width: 100%;
}
}