Skip to content

Commit c20a984

Browse files
committed
Moving common colors and fonts to _vars
1 parent fd61d89 commit c20a984

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

components/navigation/search-style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
color: getColor(dusty-grey);
3838

3939
.algolia-docsearch-suggestion--highlight {
40-
color: lighten(getColor(denim), 5%);
40+
color: $text-color-highlight;
4141
box-shadow: none;
4242
font-weight: bold;
4343
}
4444
}
4545

4646
.algolia-docsearch-suggestion--highlight {
47-
color: lighten(getColor(denim), 5%);
47+
color: $text-color-highlight;
4848
background: rgba(getColor(malibu), 0.15);
4949
}
5050

components/sidebar-item/sidebar-item-style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
color: inherit;
1212

1313
&:hover {
14-
color: lighten(getColor(denim), 5%);
14+
color: $text-color-highlight;
1515
}
1616
}
1717

@@ -61,7 +61,7 @@
6161
}
6262

6363
.sidebar-item__title {
64-
color: lighten(getColor(denim), 5%);
64+
color: $text-color-highlight;
6565
}
6666

6767
.sidebar-item__toggle {

styles/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ body {
2525
}
2626

2727
a {
28-
color: lighten(getColor(denim), 5%);
28+
color: $text-color-highlight;
2929
text-decoration: none;
3030
transition: color 250ms;
3131

@@ -37,7 +37,7 @@ a {
3737
color:lighten(getColor(dusty-grey), 10%);
3838

3939
&:hover {
40-
color: lighten(getColor(denim), 5%);
40+
color: $text-color-highlight;
4141
}
4242
}
4343

styles/markdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
h6 { font-size: getFontSize(-1); }
1717

1818
h1, h2, h3, h4, h5, h6 {
19-
font-family: 'Geomanist';
19+
font-family: $font-stack-heading;
2020
font-weight:600;
2121
line-height:1;
2222
margin:1.5em 0 0.25em;

styles/partials/_vars.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ $screens: (
2020
);
2121

2222
$font-stack-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
23+
$font-stack-heading: Geomanist, sans-serif;
2324
$font-stack-code: 'Source Code Pro', Consolas, "Liberation Mono", Menlo, Courier, monospace;
2425

26+
$text-color-highlight: lighten(map-get($colors, denim), 5%);
27+

0 commit comments

Comments
 (0)