-
Notifications
You must be signed in to change notification settings - Fork 0
/
kontak.css
125 lines (111 loc) · 2.17 KB
/
kontak.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
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
body {
background-image: url('image/jeruk.jpeg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
margin: 0;
padding: 0;
padding-top: 50px;
height: 100vh;
}
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
}
.awrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
top: 54%;
left: 50%;
transform: translate(-50%, -50%);
width: 500px;
border-radius: 8px;
padding: 30px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.5);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
form {
display: flex;
gap: 20px;
flex-direction: column;
width: 100%;
}
h2 {
font-size: 2rem;
margin-bottom: 20px;
color: #fff;
}
.input-field {
position: relative;
border-bottom: 2px solid #ccc;
margin: 15px 0;
}
.input-field input,
.input-field textarea {
width: 100%;
background: transparent;
border: none;
outline: none;
font-size: 16px;
color: #fff;
}
.input-field label {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
color: #fff;
font-size: 16px;
pointer-events: none;
transition: 0.15s ease;
}
.input-field input:focus~label,
.input-field input:valid~label,
.input-field textarea:focus~label,
.input-field textarea:valid~label {
font-size: 0.8rem;
top: 10px;
transform: translateY(-120%);
}
button {
background: #fff;
color: #000;
font-weight: 600;
border: none;
padding: 12px 20px;
cursor: pointer;
border-radius: 3px;
font-size: 16px;
border: 2px solid transparent;
transition: 0.3s ease;
}
button:hover {
color: #fff;
border-color: #fff;
background: rgba(255, 255, 255, 0.15);
}
@media screen and (max-width: 768px) {
.awrapper {
width: 90%;
padding: 20px;
}
}
footer {
position: fixed;
}