forked from Huxpro/huxpro.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.less
94 lines (83 loc) · 1.71 KB
/
search.less
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
.search-page {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
background: #fff;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1);
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1);
-webkit-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
transform: translate(0, 100%);
opacity: 0;
&.search-active {
opacity: 1;
-webkit-transform: translate(0, 0) scale(1, 1);
-ms-transform: translate(0, 0) scale(1, 1);
transform: translate(0, 0) scale(1, 1);
.search-main {
opacity: 1;
}
}
.search-main {
padding-top: 80px;
height: 100%;
opacity: 0;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
.row,
.row > div {
height: 100%;
}
}
.search-icon-close-container {
position: absolute;
z-index: 1;
padding: 16px;
top: 0;
right: 2px;
i {
font-size: 20px;
}
}
#search-input {
.monospace;
// poorman's reset
border: none;
outline: none;
padding: 0;
margin: 0;
// poorman's reset end
width: 100%;
font-size: 30px;
font-weight: bold;
color: @gray-dark;
@media only screen and (min-width: 768px) {
margin-left: 20px;
}
}
#search-results {
overflow: auto;
height: 100%;
-webkit-overflow-scrolling: touch;
padding-bottom: 80px;
}
}
.search-icon a,
.search-icon-close {
cursor: pointer;
font-size: 30px;
color: #311e3e;
-webkit-transition: all 0.25s;
transition: all 0.25s;
}
.search-icon a:hover,
.search-icon-close:hover {
opacity: 0.8;
}
.search-icon,
.search-icon-close {
font-size: 16px;
}