-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
108 lines (88 loc) · 1.88 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
:root {
margin: 0;
padding: 0;
background-color: hsl(148, 38%, 91%);
display: flex;
justify-content: center;
align-items: center;
font-family: "Karla";
}
.grid-col-span-2 {
grid-column: span 2;
}
form {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-auto-flow: row;
background-color: hsl(0, 0%, 100%);
padding: 1rem;
color: hsl(187, 24%, 22%);
margin-top: 1rem;
border-radius: 0.6rem;
}
form label {
font-size: 16px;
font-weight: 500;
}
.email input, .message textarea {
width: 100%;
}
button {
width: 100%;
background-color: hsl(169, 82%, 27%);
color: hsl(0, 0%, 100%);
border: none;
padding: 0.8rem;
border-radius: 0.5rem;
font-size: 16px;
cursor: pointer;
}
.lname input, .fname input, .email input {
height: 2rem;
border-radius: 0.6rem;
border: 0.1px solid hsl(186, 15%, 59%);
}
.message textarea {
height: 4rem;
border-radius: 0.6rem;
border: 0.1px solid hsl(186, 15%, 59%);
}
input, textarea {
margin-top: 0.5rem;
}
input:hover, textarea:hover {
border: 1px solid hsl(169, 82%, 27%);
}
input:active {
background-color: hsl(148, 38%, 91%);
}
input[type="checkbox"] {
accent-color: hsl(169, 82%, 27%);
}
input[type="radio"] {
accent-color: hsl(169, 82%, 27%);
}
button:hover {
background-color: hsl(187, 24%, 22%);
}
span {
color: hsl(0, 66%, 54%);
font-size: 0.8rem;
}
@media screen and (max-width: 450px) {
.form {
display: grid;
gap: 1.5rem;
grid-template-columns: 100%;
}
.grid-col-span-2 {
grid-column: span 1;
}
.fname input, .lname input {
width: 100%;
}
.message textarea {
height: 10rem;
}
}