-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
121 lines (107 loc) · 2.01 KB
/
style.css
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
body {
font-family: Arial,sans-serif;
}
fieldset {
padding-left: 0;
border: none;
}
input {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
padding-left: 0.25rem;
padding-right: 0.25rem;
border-radius: 3px;
border: 1px solid #ccc;
min-width: 240px;
}
input.error {
border: 1px solid red;
}
.error-message {
display: none;
padding-left: 84px;
font-size: 12px;
font-style: italic;
}
input.error + .error-message {
display: block;
}
label {
display: inline-block;
min-width: 80px;
}
button[type="submit"] {
padding-top: .5rem;
padding-bottom: .5rem;
padding-left: 1rem;
padding-right: 1rem;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 13px;
outline: none;
background: 0 0;
user-select: none;
white-space: nowrap;
text-decoration: none;
cursor: pointer;
}
button[type="submit"]:hover {
border-color: #777;
}
button[type="submit"]:disabled {
opacity: .3;
}
button[type="submit"]:disabled:hover {
border: 1px solid #ccc;
}
#resultContainer {
display: none;
position: relative;
margin-top: 2rem;
padding: 1rem;
border-radius: 3px;
border: 1px solid #ccc;
}
#resultContainer::before {
content: 'Server response:';
position: absolute;
top: 0;
left: 0;
top: -12px;
left: 20px;
padding: .25rem .5rem;
border-radius: 3px;
background: gainsboro;
font-size: 13px;
font-weight: bold;
}
#resultContainer.success,
#resultContainer.error,
#resultContainer.progress {
display: block;
}
#resultContainer.success {
border-color: #070;
color: #070;
}
#resultContainer.success::before {
background: #070;
color: #fff;
}
#resultContainer.error {
border-color: #d00;
color: #d00;
}
#resultContainer.error::before {
background: #d00;
color: #fff;
}
#resultContainer.progress {
border-color: #669;
border-style: dashed;
color: #669;
}
#resultContainer.progress::before {
background: #669;
color: #fff;
}