Skip to content

Commit bcb9901

Browse files
committed
fix: improve a11y
1 parent 8ba28d3 commit bcb9901

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

src/assets/css/a11y.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
background: var(--code-bg);
44
}
55

6-
.post-header a {
7-
color: var(--content);
6+
body:not(.dark) .post-content p a:not(.lnlinks) {
7+
color: var(--secondary);
88
}
99

10-
.post-content a {
11-
color: var(--secondary);
12-
}
10+
.post-content p a:not(.lnlinks) {
11+
color: var(--tetriary);
12+
}
13+
14+
.post-meta a {
15+
color: var(--tetriary);
16+
}

src/assets/css/binick.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@
5858
height: 160px;
5959
}
6060

61-
.post-content section.certifications .badges div {
62-
max-width: 30%;
63-
margin: 0 auto;
61+
.post-content section.certifications .badges {
62+
list-style: none;
63+
margin: auto;
64+
justify-content: space-between;
6465
}
6566

66-
.post-content section.certifications .badges div p {
67+
.post-content section.certifications .badges li p {
6768
padding-top: 15px;
6869
text-align: center;
6970
}

src/assets/css/patches.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.post-content a,
2+
.post-meta a,
23
.toc a:hover {
34
box-shadow: 0 1px, -0.1em 0 0.1em transparent;
45
}

src/data/earnedbadges.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,4 @@
2222
issuer:
2323
name: Microsoft
2424
url: https://www.microsoft.com/
25-
- id: 7f3ec753-a30d-4b78-a213-e3197988946e
26-
badge:
27-
icon: https://images.credly.com/size/150x150/images/00634f82-b07f-4bbd-a6bb-53de397fc3a6/image.png
28-
name: AWS Certified Cloud Practitioner
29-
url: https://www.credly.com/badges/7f3ec753-a30d-4b78-a213-e3197988946e/public_url
30-
issuer:
31-
name: Amazon Web Services Training and Certification
32-
url: https://www.credly.com/org/amazon-web-services
25+

src/layouts/_default/about.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ <h2 id="keep-in-contact">{{ i18n "keep_in_contact" }}<a hidden="" class="anchor"
2424
</section>
2525
<section class="certifications">
2626
<h2 id="certifications">{{ i18n "certifications" }}<a hidden="" class="anchor" aria-hidden="true" href="#certifications">#</a></h2>
27-
<span class="badges">
27+
<ul class="badges">
2828
{{ range site.Data.earnedbadges }}
29-
<div>
30-
<a target="_blank" href="{{ .url }}">
31-
<img alt="" aria-label="{{ .name }} badge" src="{{ .badge.icon }}">
29+
<li>
30+
<a target="_blank" href="{{ .url }}" aria-label="{{ .name }} badge">
31+
<img alt="" src="{{ .badge.icon }}">
3232
</a>
3333
<p>
34-
{{ i18n "issued_by" }}<br /><a title="{{ .issuer.name }}" target="_blank" href="{{ .issuer.url }}"><b>{{ .issuer.name }}</b></a>
34+
{{ i18n "issued_by" }}<br /><a target="_blank" href="{{ .issuer.url }}"><b>{{ .issuer.name }}</b></a>
3535
</p>
36-
</div>
36+
</li>
3737
{{ end }}
38-
</span>
38+
</ul>
3939
</section>
4040
</div>
4141

0 commit comments

Comments
 (0)