forked from thiagorossener/jekflix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_search.scss
138 lines (122 loc) · 2.41 KB
/
_search.scss
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
126
127
128
129
130
131
132
133
134
135
136
137
138
.search-wrapper {
position: fixed;
top: 30px;
width: 100%;
padding-right: 5%;
padding-left: 5%;
transform: translateY(-200px);
z-index: 19;
&.active {
transform: translateY(0);
}
}
.search-form {
position: relative;
top: 0;
width: 100%;
transform: translateX(-200px);
transition: all 200ms 100ms cubic-bezier(0, 0.6, 0.4, 1);
opacity: 0;
z-index: 19;
.search-field {
width: 100%;
height: rem(40px);
line-height: rem(30px);
@include mainFont(300);
font-size: rem(20px);
color: $primaryDark;
background-color: $accentDark;
border: 0;
border-radius: rem(20px);
padding: rem(5px) rem(25px);
outline: 0;
}
&:focus {
outline: 0;
}
&.active {
top: 0;
transform: translateX(0);
opacity: 1;
}
.search-list {
position: absolute;
width: 100%;
@include mainFont(300);
display: none;
padding: 0 rem(20px);
margin: rem(20px) 0;
list-style-type: none;
@include media("<sm") {
height: 380px;
overflow: scroll;
}
.active & {
display: block;
}
.entry-date {
float: right;
display: none;
font-size: rem(14px);
@include media(">=sm") {
display: inline;
}
}
.entry-category {
text-transform: uppercase;
background-color: $themeColor;
margin-right: rem(5px);
height: rem(20px);
border-radius: rem(10px);
font-size: rem(12px);
padding: rem(2px) rem(8px);
color: #ffffff;
}
a {
color: $accentDark;
text-decoration: none;
display: block;
padding: rem(15px) 0;
width: 100%;
border-bottom: 1px solid darken($accentDark, 80%);
transition: all 0.3s;
line-height: rem(25px);
&:hover {
color: $themeColor;
.entry-category {
color: #ffffff;
}
}
}
}
.icon-remove-sign {
position: absolute;
top: 0;
right: 0;
display: block;
width: rem(26px);
height: rem(26px);
padding: rem(5px);
fill: $accentDark;
background-color: $themeColor;
border-radius: 13px;
margin: rem(7px);
cursor: pointer;
outline: 0;
z-index: 1;
}
}
.search-overlay {
overflow: hidden;
&:after {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 100%;
background-color: $primaryDark;
content: "";
z-index: 18;
}
}