Skip to content

Commit 1d687cf

Browse files
XhmikosRSEWeiTung
authored andcommitted
Stylus: always use variables for colors. (#2528)
Always use variables for colors
1 parent 8ea30e5 commit 1d687cf

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.stylintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"expect": "never",
99
"error": true
1010
},
11-
"colors": false,
11+
"colors": {
12+
"expect": "always",
13+
"error": true
14+
},
1215
"commaSpace": {
1316
"expect": "always",
1417
"error": true

layouts/css/_base.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ a:hover
3232
a:hover
3333
code
3434
background-color transparent
35-
color #fff
35+
color $white
3636

3737
a.imagelink
3838
display inline-block

layouts/css/_variables.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $light-gray2 = #ccc
1212
$light-gray = #999
1313
$gray = #666
1414
$node-gray = #333
15+
$nav-foundation-green = #026e00
1516

1617
padded-link($padding)
1718
padding-left $padding

layouts/css/page-modules/_header.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ header
6868

6969
// Special format for external 'Foundation' link in main navigation
7070
.nav-foundation
71-
background-color #026e00
71+
background-color $nav-foundation-green
7272

7373
&:before
7474
content none !important

0 commit comments

Comments
 (0)