forked from sjkcdpc/sjkcdpc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
69 lines (69 loc) · 1.69 KB
/
style.css
File metadata and controls
69 lines (69 loc) · 1.69 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
.input-container {
width: 500px;
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: reverse;
-ms-flex-flow: column-reverse;
flex-flow: column-reverse;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
margin: 100px auto;
}
.input-container input {
-webkit-box-ordinal-group: 11;
order: 10;
-ms-flex-order: 10;
outline: none;
border: none;
width: 100%;
padding: 15px 0;
font-size: 20px;
border-bottom: 1px solid #d5d5d5;
text-indent: 10px;
}
.input-container input::-moz-placeholder {
opacity: 0;
}
.input-container input::-webkit-input-placeholder {
opacity: 0;
}
.input-container input:-ms-input-placeholder {
opacity: 0;
}
.input-container input, .input-container label {
transition: all 0.3s;
}
.input-container label {
-webkit-box-ordinal-group: 101;
-ms-flex-order: 100;
font-size: 18px;
order: 100;
color: #3f4f5b;
-webkit-transform-origin: left bottom;
transform-origin: left bottom;
-webkit-transform: translate(10px, 40px);
transform: translate(0px, 40px); }
.input-container .bottom-line {
order: 2;
width: 0;
height: 2px;
background: #658db5;
transition: all 0.3s;
}
.input-container input:focus {
border-bottom-color: #fff;
}
.input-container input:focus ~ div,
.input-container input:not(:placeholder-shown) ~ div {
width: 100%;
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
color: #52616c;
-webkit-transform: translate(10px) scale(0.9);
transform: translate(10px) scale(0.9);
}