-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.css
164 lines (163 loc) · 3.25 KB
/
contact.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
*{
padding: 0;
margin: 0;
color: #fff;
box-sizing: border-box;
font-family: sans-serif;
border: none;
}
body{
background:linear-gradient(rgba(17, 17, 17, 0.2),rgba(18, 18, 18, 0.2));
width: 100%;
height: 100vh;
background-size: 100% 110vh;
position: relative;
}
header{
position: absolute;
text-align: center;
width: 75%;
left: 12%;
top: 3rem;
}
header h1{
font-size: 40px;
margin-bottom: 10px;
}
.empty{
width: 100%;
height: 100vh;
background-color: rgba(0,0,0,0.5);
position: absolute;
top: 0px;
left: 0;
z-index: -1;
}
.content{
display: flex;
min-height: 110vh;
}
.content section{
margin-top: 8vh;
margin-left: 20vh;
}
.content-form{
margin-top: 12rem;
}
section i{
border-radius: 50%;
width: 40px;
height: 40px;
background-color: rgba(255,255,255,0.8);
color: black;
text-align: center;
}
.form{
display: flex;
position: absolute;
top: 0;
left: 0;
margin-left: 50%;
justify-content: center;
align-items: center;
min-height: 110vh;
}
.form .contact-form input{
width: 30rem;
background-color: transparent;
border: 0px;
border: transparent;
margin: 20px;
padding: 10px;
font-size: 18px;
border-bottom: 2px solid #fff;
}
.form .contact-form input ~ span{
position: absolute;
left: 20px;
transition: 0.4s ease-in-out;
margin-top: 10px;
}
.form .contact-form input:focus ~span{
transform: translateY(-20px);
pointer-events: none;
}
.form .contact-form textarea{
width: 30rem;
border: 0px;
background-color: transparent;
margin: 20px;
font-size: 17px;
border-bottom: 2px solid white;
}
.form .contact-form textarea ~ span
{
position: absolute;
left: 20px;
margin-top: 10px;
transition: 0.9s ease-in-out;
}
.form .contact-form textarea:focus ~span{
transform: translateY(-20px);
pointer-events: none;
}
.form .contact-form input[type=submit]{
background-color: rgb(28, 27, 27);
border: 2px solid rgb(0, 0, 0);
font-size: 18px;
width: 50%;
height: 40px;
margin-top: -5px;
cursor: pointer;
}
.form .contact-form input[type=submit]:hover{
background-color: transparent;
color: rgb(53, 52, 52);
}
.media{
position: absolute;
top: 85vh;
right: 20vh;
display: flex;
list-style: none;
cursor: pointer;
}
.media li{
margin: 20px 30px;
}
@media screen and (max-width: 900px){
body{
background-repeat: repeat-y;
overflow: auto;
}
header{
position: absolute;
left: 0;
top: 20%;
width: 100%;
}
.empty{
height: 210vh;
}
.form{
position: absolute;
top: 100vh;
margin-left: 10%;
}
.content-form{
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 0;
margin-top: 53vh;
margin-left: 10vh;
}
.content section{
margin-top: 0vh;
margin-left: 0vh;
}
.media{
position: absolute;
top: 190vh;
right: 30px;
}
}