Skip to content

Commit 3b21ca2

Browse files
committed
factor css into different sheets
1 parent 05a83dd commit 3b21ca2

File tree

5 files changed

+997
-990
lines changed

5 files changed

+997
-990
lines changed

site/_css/algolia.less

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
@import "variables.less";
2+
3+
/** Algolia Doc Search **/
4+
5+
div.algolia-search-wrapper {
6+
display: inline-block;
7+
vertical-align: top;
8+
/*margin-left: 15px;*/
9+
}
10+
11+
.algolia-autocomplete .aa-dropdown-menu {
12+
/*margin-left: -110px;*/
13+
margin-top: -4px;
14+
}
15+
16+
@media screen and (max-width: 960px) {
17+
div.algolia-search-wrapper {
18+
display: none;
19+
}
20+
}
21+
22+
input#algolia-doc-search {
23+
background: transparent url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E'%3C/span%3E../img/search.png%3Cspan%20class=%22pl-pds%22%3E'%3C/span%3E%3C/span%3E) no-repeat 10px center;
24+
background-size: 16px 16px;
25+
26+
padding: 0 10px;
27+
padding-left: 35px;
28+
margin-top: 9px;
29+
height: 30px;
30+
.body-font(@color: white);
31+
background-color: #555;
32+
border-radius: 4px;
33+
outline: none;
34+
border: none;
35+
width: 170px;
36+
}
37+
38+
.algolia-autocomplete {
39+
vertical-align: top;
40+
height: 53px;
41+
}
42+
43+
.algolia-docsearch-suggestion--category-header {
44+
background-color: #B51780;
45+
}
46+
.algolia-docsearch-suggestion--highlight {
47+
color: @rhodamine-color;
48+
}
49+
.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight {
50+
background-color: @rhodamine-color;
51+
}
52+
.aa-cursor .algolia-docsearch-suggestion--content {
53+
color: @rhodamine-color;
54+
}
55+
.aa-cursor .algolia-docsearch-suggestion {
56+
background: #FEF6FB;
57+
}
58+
.algolia-docsearch-suggestion {
59+
border-bottom-color: #FEF6FB;
60+
}
61+
.algolia-docsearch-suggestion--subcategory-column {
62+
border-right-color: #FEF6FB;
63+
background-color: #FEF6FB;
64+
color: @rhodamine-color;
65+
}

0 commit comments

Comments
 (0)