forked from scala/docs.scala-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.scss
executable file
·79 lines (69 loc) · 1.66 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
// Search
//------------------------------------------------
//------------------------------------------------
// Override the styles below to style the search container
// when it is shown on a specific page (as opposed to the
// landing page)
.titles + .search-container {
@include span-columns(3);
@include bp(medium) {
display: none;
}
float: right;
margin-top: 50px;
margin-right: 0;
}
.search-container {
position: relative;
margin-top: 20px;
margin-bottom: 20px;
.algolia-autocomplete {
width: 100%;
}
@media screen and (min-width: 768px) {
margin: 0;
margin-top: -20px;
float: right;
width: 24%;
}
.icon-search {
position: absolute;
left: 14px;
top: 4px;
z-index: 30;
}
input {
padding: 8px 18px 8px 40px;
appearance: none;
font-size: $base-font-size;
border-radius: $border-radius-base;
width: 100%;
box-sizing: border-box;
&:focus {
outline: none;
background: rgba(#fff, 0.9);
@include box-shadow($box-shadow-inner);
border-radius: 0;
}
}
.result-container {
position: absolute;
display: none;
width: 100%;
left: 0;
top: 38px;
background: #fff;
@include box-shadow($box-shadow-search);
padding: 10px;
li {
border-bottom: $base-border-gray;
a {
display: block;
padding: 4px 16px;
}
&:last-child {
border-bottom: none;
}
}
}
}