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

Skip to content

Commit 5d8cca8

Browse files
committed
feat(styling): Set grayscale as default, add styling as external file
1 parent f3e58b7 commit 5d8cca8

File tree

5 files changed

+52
-16
lines changed

5 files changed

+52
-16
lines changed

dev/docsearch-styling.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* Bottom border of each suggestion */
2+
.ads-suggestion {
3+
border-bottom-color: #3A3DD1;
4+
}
5+
/* Main category headers */
6+
.ads-suggestion--category-header {
7+
background-color: #4B54DE;
8+
}
9+
/* Highlighted search terms */
10+
.ads-suggestion--highlight {
11+
color: #3A33D1;
12+
}
13+
/* Highligted search terms in the main category headers */
14+
.ads-suggestion--category-header .ads-suggestion--highlight {
15+
background-color: #4D47D5;
16+
}
17+
/* Currently selected suggestion */
18+
.aa-cursor .ads-suggestion--content {
19+
color: #272296;
20+
}
21+
.aa-cursor .ads-suggestion {
22+
background: #EBEBFB;
23+
}
24+
25+
/* For bigger screens, when displaying results in two columns */
26+
@media (min-width: 768px) {
27+
/* Bottom border of each suggestion */
28+
.ads-suggestion {
29+
border-bottom-color: #7671df;
30+
}
31+
/* Left column, with secondary category header */
32+
.ads-suggestion--subcategory-column {
33+
border-right-color: #7671df;
34+
background-color: #F2F2FF;
35+
color: #4E4726;
36+
}
37+
}
38+

dev/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Documentation</title>
77
<link rel="stylesheet" type="text/css" href="/stripe.css" media="screen" />
88
<link rel="stylesheet" type="text/css" href="/docsearch.css" media="screen" />
9-
<link rel="stylesheet" type="text/css" href="/style.css" media="screen" />
9+
<link rel="stylesheet" type="text/css" href="/docsearch-styling.css" media="screen" />
1010
<link rel="shortcut icon" href="favicon.ico">
1111
</head>
1212

dev/style.css

Whitespace-only changes.

src/styles/_variables.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
$color1: #4B54DE;
2-
$color2: #4D47D5;
3-
$color3: #3A33D1;
1+
$color-border: #3A3A3A;
2+
$color-border-light: lighten($color-border, 15%);
3+
$color-category-header: #333333;
4+
$color-highlight-header: #3A3A3A;
5+
$color-highlight: #448CDE;
6+
$color-selected-background: #CECECE;
7+
$color-selected-text: #0000FF;
8+
$color-left-column-bg: #CECECE;
9+
$color-left-column: #4E4726;
10+
11+
$breakpoint-medium: 568px;
12+
$breakpoint-large: 768px;;
13+

src/styles/main.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
@import "variables";
2-
$color-border: #3A33D1;
3-
$color-border-light: lighten($color-border, 15%);
4-
$color-category-header: #4B54DE;
5-
$color-highlight-header: #4D47D5;
6-
$color-highlight: $color-border;
7-
$color-selected-background: #EBEBFB;
8-
$color-left-column-bg: #F2F2FF;
9-
$color-left-column: #4E4726;
10-
11-
$breakpoint-medium: 568px;
12-
$breakpoint-large: 768px;;
13-
142

153
// The dropdown adapts to screen size, to provide three different displays.
164
// - A simple list of matching results

0 commit comments

Comments
 (0)