Increase contrast of buttons for improved web accessibility

This commit is contained in:
Ethan Yoo 2024-06-28 15:33:10 -04:00
parent 8234268132
commit ddb95d8325
Signed by: ethan
GPG Key ID: 70596474C5D20F85
1 changed files with 28 additions and 57 deletions

View File

@ -1,21 +1,16 @@
html { html {
overflow-y: scroll; overflow-y: scroll;
visibility: visible;
opacity: 1;
} }
a, a,
a:link { a:link {
text-decoration: none; text-decoration: none;
color: #ace; color: #ace;
} }
a:hover { a:hover {
background: #2b5278; background: #2b5278;
text-decoration: underline dotted; text-decoration: underline dotted;
border: 1px solid; border: 1px solid;
} }
header a:link, header a:link,
header a:visited, header a:visited,
footer a:link, footer a:link,
@ -24,7 +19,6 @@ aside a:visited,
main a:visited { main a:visited {
color: #fff; color: #fff;
} }
body { body {
background: #10151a; background: #10151a;
color: #d3dae3; color: #d3dae3;
@ -33,68 +27,81 @@ body {
max-width: 50em; max-width: 50em;
padding: 0 2em; padding: 0 2em;
} }
h2, h2,
main h1 { main h1 {
text-align: center; text-align: center;
} }
h1 { h1 {
font-size: 2em; font-size: 2em;
} }
h2 { h2 {
font-size: 1.75em; font-size: 1.75em;
} }
h3 { h3 {
font-size: 1.5em; font-size: 1.5em;
} }
article, article,
main { main {
padding: 4px 2px; padding: 4px 2px;
} }
blockquote { blockquote {
padding: 0.25em 1.5em; padding: 0.25em 1.5em;
background: #ddd; background: #ddd;
color: #000; color: #000;
border-radius: 4px; border-radius: 4px;
} }
code { code {
background: #000; background: #000;
font: 1em/1.5 monospace, monospace; font: 1em/1.5 monospace, monospace;
padding: 2px; padding: 2px;
} }
img[src$='#center'] { img[src$='#center'] {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.center { .center {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
text-align: center; text-align: center;
} }
.post-title { .post-title {
line-height: 1.8; line-height: 1.8;
} }
.subtitle { .subtitle {
float: right; float: right;
} }
a.link-000 { a.link-000 {
background: transparent; background: transparent;
border: none; border: none;
} }
.letterboxd {
display: inline-block;
width: 1em;
margin-right: 0.25em;
vertical-align: middle;
}
a.link-letterboxd {
padding: 0.5em;
background-color: #202830;
border-radius: 3px;
padding-left: 0.25em;
}
.linkedin {
display: inline-block;
width: 1em;
margin-right: 0.25em;
vertical-align: middle;
}
a.link-linkedin {
padding: 0.5em;
background-color: #0077b5;
border-radius: 3px;
margin-right: 0.5em;
padding-left: 0.25em;
color: #fff;
}
.nextcloud { .nextcloud {
width: 50px; width: 50px;
height: 30px; height: 30px;
@ -105,7 +112,6 @@ a.link-000 {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
} }
a.link-nextcloud { a.link-nextcloud {
padding: 10px; padding: 10px;
background-color: #0082c9; background-color: #0082c9;
@ -113,63 +119,28 @@ a.link-nextcloud {
border-radius: 3px; border-radius: 3px;
padding-left: 4px; padding-left: 4px;
} }
.letterboxd {
display: inline-block;
width: 1em;
margin-right: 0.25em;
vertical-align: middle;
}
a.link-letterboxd {
padding: 0.5em;
background-color: #202830;
border-radius: 3px;
padding-left: 0.25em;
}
.linkedin {
display: inline-block;
width: 1em;
margin-right: 0.25em;
vertical-align: middle;
}
a.link-linkedin {
padding: 0.5em;
background-color: #0077b5;
border-radius: 3px;
margin-right: 0.5em;
padding-left: 0.25em;
color: #fff;
}
.btn { .btn {
display: block; display: block;
margin: 0.5em auto; margin: 0.5em auto;
padding: 0.5em; padding: 0.5em;
border: none; border: none;
border-radius: 3px; border-radius: 3px;
background-color: #e36d25; background-color: #ff8000;
color: #000; color: #000;
cursor: pointer; cursor: pointer;
width: fit-content; width: fit-content;
} }
.btn:hover { .btn:hover {
background-color: #d15d27; background-color: #d15d27;
} }
a.btn:hover { a.btn:hover {
text-decoration: none; text-decoration: none;
border: none; border: none;
} }
a.btn:link, a.btn:link,
a.btn:visited { a.btn:visited {
color: #000; color: #000;
} }
a.link-letterboxd:link, a.link-letterboxd:link,
a.link-letterboxd:visited, a.link-letterboxd:visited,
a.link-linkedin:link, a.link-linkedin:link,
@ -210,4 +181,4 @@ a.link-linkedin:visited {
font: 1em/1.5 monospace, monospace; font: 1em/1.5 monospace, monospace;
padding: 2px; padding: 2px;
} }
} }