-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
115 lines (99 loc) · 1.6 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
* {
box-sizing: border-box;
}
body {
padding: 24px;
font-family: sans-serif;
}
abbr[title] {
text-decoration: none;
}
section:not(:last-child) {
margin-bottom: 48px;
}
.container {
margin-right: auto;
margin-left: auto;
max-width: 960px;
width: 100%;
}
.form-wrapper {
border: 1px solid #ccc;
border-radius: 8px;
padding: 24px;
}
form {
border: 1px solid #ccc;
border-radius: 8px;
padding: 24px;
width: 100%;
}
label, legend {
display: block;
margin-bottom: 16px;
color: #333;
}
.message {
color: red;
}
input:is([type="text"], [type="email"], [type="url"],
[type="tel"],
[type="password"],
[type="search"],
[type="number"],
[type="date"],
[type="datetime"],
[type="datetime-local"],
[type="month"],
[type="week"],
[type="number"]
),
textarea {
display: block;
appearance: none;
border: 1px solid #ccc;
border-radius: 8px;
padding: 12px;
font-size: 16px;
width: 100%;
margin-top: 8px;
}
fieldset {
appearance: none;
border: 1px solid #ccc;
margin-bottom: 16px;
}
.flex {
display: flex;
gap: 8px;
}
input:is(
[type="date"],
[type="datetime"],
[type="datetime-local"],
[type="month"],
[type="week"],
[type="number"]) {
max-width: 200px;
}
form button {
appearance: none;
min-width: 200px;
background-color: mediumblue;
border: none;
padding: 8px 16px;
border-radius: 8px;
font-size: 16px;
color: #fff;
font-weight: normal;
display: inline-block;
cursor: pointer;
transition: 0.3s;
}
button[type="submit"]:disabled {
opacity: 0.5;
pointer-events: none;
}
button[type="submit"]:hover {
background-color: darkblue;
}