-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle2.css
84 lines (71 loc) · 1.53 KB
/
style2.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
#canvas1 {
position:absolute;
background: black;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
body{
background: #343d46;
}
.box{
margin: 100px auto;
width: 300px;
height: 50px;
}
.container{
/* width: 300px;
height: 800px;
vertical-align: middle;
white-space:nowrap; */
position:relative;
display: flex;
justify-content: center;
align-items: center;
/* height: 600px; */
width: 300px;
}
.container input#search{
width: 50px;
height: 50px;
background: #2b303b;
border:none;
font-size: 10pt;
float: left;
color: #262626;
padding-left: 35px;
border-radius: 5px;
color: #fff;
transition: width .55s ease;
}
.container input#search::-webkit-input-placeholder {
color: #65737e;
}
.container input#search:-moz-placeholder { /* Firefox 18- */
color: #65737e;
}
.container input#search::-moz-placeholder { /* Firefox 19+ */
color: #65737e;
}
.container input#search:-ms-input-placeholder {
color: #65737e;
}
.container .icon{
position: absolute;
top: 50%;
margin-left: 17px;
margin-top: 17px;
z-index: 1;
color: #4f5b66;
}
.container input#search:focus, .container input#search:active{
outline:none;
width: 300px;
}
.container:hover input#search{
width: 300px;
}
.container:hover .icon{
color: #93a2ad;
}