Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9983cbf

Browse files
bart-krakowskijedrzejchalubek
authored andcommitted
feat(): Introduce new styles for search (#86)
1 parent eb642c8 commit 9983cbf

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

src/_sass/segment.scss

+4
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@
6969
// =================================================
7070
@import "pages/docs";
7171
@import "pages/page";
72+
73+
// Vendors
74+
// =================================================
75+
@import "vendors/swiftype";

src/_sass/vendors/_swiftype.scss

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.st-autocomplete-results.st-ui-autocomplete .st-query-present, .st-ui-slide-autocomplete .st-query-present {
2+
border-radius: 0;
3+
margin-top: -5px;
4+
}
5+
6+
.st-ui-result.__swiftype_result {
7+
display: flex;
8+
color: color(gray-dark);
9+
font-family: $font-family-primary;
10+
padding: 18px 18px 18px 28px !important;
11+
12+
.st-ui-type-detail {
13+
order: -1;
14+
color: color(gray);
15+
display: flex;
16+
font-size: 14px !important;
17+
18+
&::after {
19+
color: inherit;
20+
display: block;
21+
content: "/";
22+
margin: 0 5px;
23+
}
24+
}
25+
26+
.st-ui-type-heading {
27+
font-size: 14px !important;
28+
line-height: 1.4;
29+
font-weight: 500 !important;
30+
31+
em {
32+
color: color(primary);
33+
background-color: transparent !important;
34+
box-shadow: none;
35+
font-size: 14px;
36+
line-height: 1.4;
37+
font-weight: 500;
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)