Skip to content

Commit 22b0b5e

Browse files
committed
Merge pull request #536 from jrit/node-green
update node-green to pass WCAG AA
2 parents 2bbb3f8 + 85472cd commit 22b0b5e

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed

layouts/css/_variables.styl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ $body-max-width = 980px
22

33
$white = #fff
44

5-
$node-green = #80bd01
6-
$light-green = #f1fbda
7-
$hover-green = #d9ebb3
5+
$node-green = #43853d
6+
$bright-green = #028a00
7+
$light-green = lighten($node-green, 90%)
8+
$active-green = darken($bright-green, 20%)
89

910
$yellow = #f7da03
1011

layouts/css/base.styl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,15 @@ pre
123123
a
124124
display block
125125
padded-link(10px)
126+
padding-top 5px
127+
padding-bottom 5px
128+
line-height 1
126129

127130
.active
128131
> a,
129132
> a:hover
130-
color $node-gray
131-
background-color $hover-green
133+
color $white
134+
background-color $active-green
132135

133136
article
134137
margin-left 220px

layouts/css/page-modules/_download.styl

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
display block
3737
width 100%
3838
padding-top 1em
39+
color $active-green
3940
background $light-green
4041

4142
.download-logo
@@ -47,10 +48,16 @@
4748
padding-bottom 1em
4849
margin 1em 0 0
4950

51+
a:hover
52+
background: $node-green
53+
color $white
5054

51-
a:hover, a:active
52-
background $gray
53-
color $node-green
55+
.download-logo
56+
fill: $white
57+
58+
a:active
59+
background $active-green
60+
color $white
5461

5562
.download-version-toggle
5663
display flex
@@ -64,12 +71,12 @@
6471
padding 5px 2px
6572

6673
a:hover, a:active, a.is-version
67-
color $node-green
68-
background $gray
74+
color $white
75+
background $node-green
6976

7077
a.is-version
7178
color $light-green
72-
background $node-green
79+
background $active-green
7380

7481
.title
7582
font-size 1.5em
@@ -97,8 +104,8 @@
97104
text-align center
98105

99106
a:hover, a:active
100-
background $gray
101-
color $node-green
107+
background $node-green
108+
color $white
102109

103110
h5.download-table-previous-releases-header
104111
margin-bottom 5px

layouts/css/page-modules/_home.styl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
border-radius 2px
1212
margin-top 1em
1313

14+
a
15+
color $active-green
16+
17+
&:hover
18+
color $white
19+
1420
.home-secondary-links
1521
$home-secondary-links-color = saturation($node-green, 20%)
1622

@@ -42,7 +48,7 @@
4248
margin 10px 4px
4349
padding 0.2em 0.6em
4450

45-
background-color $node-green
51+
background-color $active-green
4652
color $white !important
4753
border-radius 2px
4854
font-size 30px
@@ -51,7 +57,7 @@
5157
transition .2s background-color ease-in-out
5258

5359
&:hover
54-
background-color saturation($node-green, 80%)
60+
background-color $node-green
5561

5662
small
5763
display block

0 commit comments

Comments
 (0)