-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (67 loc) · 1.3 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.main_div {
width: 100%;
height: 100vh;
position: relative;
}
.box {
width: 400px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 50px;
background: rgba(0, 0, 0, 0.8);
border-radius: 10px;
}
.box h1 {
margin-bottom: 25px;
color: #fff;
text-align: center;
text-transform: capitalize;
}
.box .input-box {
position: relative;
}
.box .input-box input {
width: 100%;
padding: 10px;
font-size: 16px;
letter-spacing: 1px;
color: #fff;
margin-bottom: 30px;
border: none;
border-bottom: 1px solid #fff;
background: transparent;
outline: none;
}
.box .input-box label {
position: absolute;
top: 0;
left: 0;
letter-spacing: 1px;
padding: 10px 0;
font-size: 16px;
color: #fff;
transition: 0.5s;
}
.box input[type="submit"] {
background: transparent;
border: none;
outline: none;
color: #fff;
background: #03a9f4;
padding: 9px 18px;
border-radius: 5px;
font-size: 14px;
}
.box .input-box input:focus~label, .box .input-box input:valid~label {
top: -20px;
left: 0;
font-size: 12px;
color: #03a9f4;
}