Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit d0075fe

Browse files
author
Lily2point0
committed
a11y fix - link contrast in headings + visited links
1 parent db2c961 commit d0075fe

File tree

3 files changed

+32
-18
lines changed

3 files changed

+32
-18
lines changed

_posts/2017-06-06-inklink.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2>Want to give it a try?</h2>
8080
Now, give it a try:
8181
<ul>
8282
<li>Display the following images.</li>
83-
<li>On a 2nd screen/phone, go to <a href="https://ftlabs-inklink.herokuapp.com/">ftlabs-inklink.herokuapp.com.</a>.</li>
83+
<li>On a 2nd screen/phone, go to <a href="https://ftlabs-inklink.herokuapp.com/">ftlabs-inklink.herokuapp.com</a>.</li>
8484
<li>Select 'Start scanning'.</li>
8585
<li>Align the camera to bring one of the following images into focus in the window.</li>
8686
<li>Wait for a bit...</li>

assets/main.scss

+30-17
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $brand-color: #2a7ae2;
1818

1919
$ftpink: #fff1e5;
2020
$claret: #9e2f50;
21+
$claret-40: #660A29;
2122
$oxford: #0F5499;
2223

2324
$grey-color: #828282;
@@ -48,10 +49,14 @@ $on-laptop: 1100px;
4849
margin: 0;
4950
}
5051

51-
p a[href]{
52+
p a[href], main article li a[href]{
5253
color: $claret;
5354
}
5455

56+
p a[href]:visited, main article li a[href]:visited{
57+
color: $claret-40;
58+
}
59+
5560
body{
5661
background: #0c0c0c;
5762
padding-top: 50px;
@@ -62,6 +67,14 @@ body{
6267
h1, h2, h3, h4, h5, h6{
6368
font-family: 'financierdisplayweb', serif;
6469
text-align: center;
70+
71+
a {
72+
color: $claret;
73+
74+
&:visited {
75+
color: $claret-40;
76+
}
77+
}
6578
}
6679

6780
h1{
@@ -253,24 +266,24 @@ main article img, main article video{
253266
flex-wrap: wrap;
254267
align-content: flex-start;
255268
justify-content: space-between;
269+
}
256270

257-
.readmore {
258-
color: black;
259-
text-transform: uppercase;
260-
border-bottom: 4px solid black;
261-
display: inline-block;
262-
font-weight: 600;
263-
margin: 0 0.5em;
264-
265-
&:hover {
266-
text-decoration: none;
267-
color: $claret;
268-
border-bottom-color: $claret;
269-
}
271+
.readmore {
272+
color: black;
273+
text-transform: uppercase;
274+
border-bottom: 4px solid black;
275+
display: inline-block;
276+
font-weight: 600;
277+
margin: 0 0.5em;
270278

271-
@include media-query($on-palm) {
272-
display: inline-table;
273-
}
279+
&:hover {
280+
text-decoration: none;
281+
color: $claret;
282+
border-bottom-color: $claret;
283+
}
284+
285+
@include media-query($on-palm) {
286+
display: inline-table;
274287
}
275288
}
276289

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<p>
66
FT Labs is a small team at the <a href="http://www.ft.com">Financial Times</a>, striving to reach and engage readers with the world’s finest journalism, by looking for gaps, opportunities, concerns, and the unknown. (<a href="/about/">...more</a>)
77
</p>
8+
<p></p>
89
<p>
910
Our work (and posts, on a semi-irregular basis) cover myriad topics, ranging from specific problems (Ad Blocking, OCR, ...), via upcoming concerns and opportunities (text-to-speech, conversation APIs, ...), to simply exploring new technologies (Amazon Alexa, Google Home, ...).
1011
</p>

0 commit comments

Comments
 (0)