-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.css
More file actions
112 lines (95 loc) · 1.85 KB
/
Copy pathcontact.css
File metadata and controls
112 lines (95 loc) · 1.85 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
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
.contact__container {
background: var(--color-bg1);
padding: 4rem;
display: grid;
grid-template-columns: 40% 60%;
gap: 4rem;
height: 30rem;
margin: 7rem auto;
border-radius: 1rem;
}
/* =================== ASIDE ================ */
.contact__aside {
background: var(--color-primary);
padding: 3rem;
border-radius: 1rem;
position: relative;
bottom: 10rem;
}
.aside__image {
width: 12rem;
margin-bottom: 2rem;
}
.contact__aside h2 {
text-align: left;
margin-bottom: 1rem;
}
.contact__aside p {
font-size: 0.9rem;
margin-bottom: 2rem;
}
.contact__details li {
display: flex;
gap: 1rem;
align-items: center;
margin-bottom: 1rem;
}
.contact__socials {
display: flex;
gap: 0.8rem;
margin-top: 3rem;
}
.contact__socials a {
background: var(--color-bg2);
padding: 0.5rem;
border-radius: 50%;
font-size: 0.9rem;
transition: var(--transition);
}
.contact__socials a:hover {
background: transparent;
}
/* =================== FORM ================ */
.contact__form {
display: flex;
flex-direction: column;
gap: 1.2rem;
margin-right: 4rem;
}
.form__name {
display: flex;
gap: 1.2rem;
}
.contact__form input[type="text"] {
width: 50%;
}
input,
textarea {
width: 100%;
padding: 1rem;
background: var(--color-bg);
color: var(--color-white);
}
.contact__form .btn {
width: max-content;
margin-top: 1rem;
cursor: pointer;
}
/* =================== MEDIA QUERIES (PHONES) ================ */
@media screen and (max-width: 600px) {
.contact__container {
grid-template-columns: 1fr;
gap: 3rem;
margin-top: 0;
padding: 0;
}
.contact__form {
margin: 0 1.5rem 3rem;
}
.form__name {
flex-direction: column;
}
.form__name input[type="text"] {
width: 100%;
}
}