This repository was archived by the owner on Oct 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathstyles.css
More file actions
66 lines (57 loc) · 1.12 KB
/
styles.css
File metadata and controls
66 lines (57 loc) · 1.12 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
/* Style the form label */
label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
}
/* Style the form input and select elements */
input,
select {
padding: 0.5rem;
font-size: 1rem;
border-radius: 0.25rem;
border: 1px solid #ccc;
width: 100%;
}
/* Style the submit button */
button[type="submit"] {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 0.25rem;
padding: 0.5rem 1rem;
font-size: 1rem;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #0069d9;
}
/* Style the form elements when they are in focus */
input:focus,
select:focus {
border-color: #007bff;
outline: none;
}
/* Style the error message */
input:invalid,
select:invalid {
border-color: #070707;
}
input:invalid:focus,
select:invalid:focus {
border-color: #201e1e;
outline: none;
}
/* Style the error message text */
input:invalid+span,
select:invalid+span {
color: #1c1a1a;
font-size: 0.8rem;
display: block;
margin-top: 0.25rem;
}
/* Hide the error message by default */
input+span,
select+span {
display: none;
}