Skip to content

Commit

Permalink
fix: better accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse committed Jun 14, 2024
1 parent 20d4498 commit 0c59282
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions static/css/emmett.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
:root {
--standard-border-radius: 5px;
--bg: #eeeeee;
--bg-light: #cbcdcd;
--standard-border-radius: 0.5rem;
--bg: #ffffff;
--text: #444;
--text-light: #646868;
--accent: #d26878;
--accent-light: #e08f67;
--accent: #a10032;
--accent-text: var(--bg);
--border: #646868;
--link: #5690af;
--link: #2a6c8a;
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
Expand All @@ -20,13 +16,13 @@ html {
}

body {
margin: 40px auto;
max-width: 720px;
line-height: 1.6;
font-size: 18px;
padding: 0 10px;
margin: 4rem auto;
max-width: 50rem;
line-height: 1.6rem;
font-size: 1.1rem;
color: var(--text);
background-color: var(--bg);
padding: 0 1rem;
}

/** Default styles **/
Expand All @@ -38,8 +34,8 @@ ul {
img,
video {
height: auto;
border-radius: 10px;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
border-radius: var(--standard-border-radius);
box-shadow: 0.3rem 0.3rem 0.3rem rgba(0, 0, 0, 0.2);
}

hr {
Expand All @@ -63,7 +59,7 @@ h6 {

h2,
h3 {
padding-top: 20px;
padding-top: 1.2rem;
}

h1::before {
Expand Down Expand Up @@ -116,7 +112,7 @@ nav > ul > li {

nav {
text-align: right;
padding-bottom: 50px;
padding-bottom: 5rem;
}

/** Content list **/
Expand All @@ -130,19 +126,23 @@ nav {
}

.list ul li {
padding-bottom: 40px;
padding-left: 10px;
padding-bottom: 3rem;
padding-left: 0.3rem;
}

.list ul li > a {
font-size: 20px;
font-size: 1.2rem;
font-weight: 700;
}

.list ul li .post-info {
padding-top: 1rem;
}

.list ul li::marker {
content: "» ";
font-weight: 700;
font-size: 20px;
font-size: 1.4rem;
color: var(--accent);
}

Expand All @@ -167,7 +167,7 @@ article ul li::marker {
}

article ul li {
padding-left: 10px;
padding-left: 0.4rem;
}

article img {
Expand All @@ -180,7 +180,7 @@ div code,
li code,
p code {
padding: 0 0.125rem;
border-radius: 3px;
border-radius: var(--standard-border-radius);
color: var(--bg);
background-color: var(--text);
}
Expand All @@ -196,18 +196,18 @@ pre {
padding: 0.625rem;
font-style: monospace;
white-space: pre-wrap;
font-size: 16px;
font-size: 1rem;

border-radius: 10px;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
border-radius: var(--standard-border-radius);
box-shadow: 0.3rem 0.3rem 0.3rem rgba(0, 0, 0, 0.2);
}

/** Footer **/

footer {
padding-top: 20px;
padding-top: 2rem;
}

footer > hr {
margin-bottom: 25px;
margin-bottom: 1.7rem;
}
2 changes: 1 addition & 1 deletion templates/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li>
<a href="/{{ post.url_path }}">{{ post.front_matter.title }}</a>

<div>
<div class="post-info">
<time datetime="{{ post.date_rfc3339|date(format="%Y-%m-%d") }}">Published on: <span class="accent-data">{{ post.date_rfc3339|date(format="%d-%m-%Y") }}</span></time>
<address rel="author">By <span class="accent-data">Vincent Jousse</span></address>
</div>
Expand Down

0 comments on commit 0c59282

Please sign in to comment.