Skip to content

Commit 8a5a9dc

Browse files
committed
Minor color changes for headings/links
Avoid primary purple text color for text that isn't a link. Ref qunitjs/qunitjs.com#151 (comment)
1 parent ee3015a commit 8a5a9dc

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

css/styles.scss

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ $size-spacing: $size-2;
1010

1111
$color-white: #fff;
1212
$color-off-white: #eee;
13-
$color-brand: #9c3493;
14-
$color-accent: #390F39;
13+
14+
// https://brand.jquery.org/colors/#qunit-purple
15+
$color-brand: #9c3493; // bright purple (primary)
16+
$color-accent: #390F39; // deep purple (secondary)
1517
$color-black: #333;
1618

1719
$screen-s: 480px;
@@ -40,16 +42,8 @@ h1, h2, h3, h4, h5, h6 {
4042
}
4143
h1 { font-size: $size-5; }
4244
h2 {
43-
color: $color-brand;
45+
color: $color-accent;
4446
font-size: $size-4;
45-
46-
a {
47-
color: $color-black;
48-
49-
&:hover {
50-
color: $color-brand;
51-
}
52-
}
5347
}
5448
h3 { font-size: $size-3; }
5549
h4 { font-size: $size-2; }
@@ -69,6 +63,7 @@ a {
6963
&:hover,
7064
&:focus {
7165
color: $color-accent;
66+
text-decoration: underline;
7267
}
7368
}
7469

@@ -111,7 +106,7 @@ iframe {
111106
background-color: #fff;
112107
border: 1px solid #fff;
113108
border-radius: 4px;
114-
color: #9c3493;
109+
color: $color-brand;
115110
display: inline-block;
116111
margin: 0.5rem;
117112
padding: 0.5rem 1rem;
@@ -166,7 +161,7 @@ iframe {
166161
}
167162

168163
.site-logo:hover {
169-
color: #390F39;
164+
color: $color-accent;
170165
}
171166

172167
/* Site Navigation */
@@ -221,11 +216,18 @@ iframe {
221216

222217
.site-nav-link {
223218
align-items: center;
224-
color: #333333;
219+
color: $color-accent;
225220
display: flex;
226221
height: 100%;
227222
padding: $size-1;
228223
text-decoration: none;
224+
225+
&:active,
226+
&:hover,
227+
&:focus {
228+
color: $color-brand;
229+
text-decoration: none;
230+
}
229231
}
230232

231233
.site-nav-link.has-sub-list::after {
@@ -234,11 +236,6 @@ iframe {
234236
margin-left: 0.5rem;
235237
}
236238

237-
.site-nav-link:hover,
238-
.site-nav-link:focus {
239-
color: #9c3493;
240-
}
241-
242239
.site-nav-sub-list {
243240
display: none;
244241
padding: 0;
@@ -262,7 +259,7 @@ iframe {
262259
}
263260

264261
.site-sub-nav-link {
265-
color: #333;
262+
color: $color-accent;
266263
display: block;
267264
padding: 0.5rem 2rem;
268265
text-decoration: none;

0 commit comments

Comments
 (0)