accessibility maxxing
This commit is contained in:
parent
6c9294f0a0
commit
f18a342ae5
64 changed files with 320 additions and 205 deletions
|
@ -1,7 +1,9 @@
|
|||
:root {
|
||||
--avatar: 3rem;
|
||||
}
|
||||
|
||||
#blog:not(:has(#posts)) header {
|
||||
text-align: center;
|
||||
}
|
||||
article {
|
||||
margin: 0 auto;
|
||||
font-family: "Rubik", sans-serif;
|
||||
|
@ -15,7 +17,12 @@ article {
|
|||
border-radius: var(--round);
|
||||
width: 66%;
|
||||
}
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
margin-bottom: var(--pad-m);
|
||||
}
|
||||
& [aria-label="Post warning"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 1.4rem;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
|
|
|
@ -13,7 +13,7 @@ h4,
|
|||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
font-size: 2em;
|
||||
font-size: 2rem;
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
margin-inline-start: 0;
|
||||
|
@ -36,6 +36,22 @@ body {
|
|||
}
|
||||
}
|
||||
}
|
||||
svg {
|
||||
fill: currentColor;
|
||||
stroke: currentColor;
|
||||
stroke-width: 0;
|
||||
}
|
||||
header {
|
||||
padding-top: var(--pad-xl);
|
||||
padding-left: calc(var(--view) + var(--pad-xl));
|
||||
& svg {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
& h1 {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
padding: var(--pad-xl);
|
||||
|
@ -170,7 +186,7 @@ article {
|
|||
}
|
||||
|
||||
:is(main article, main section):not(:last-child) {
|
||||
margin-bottom: var(--pad-xl);
|
||||
margin-bottom: var(--pad-m);
|
||||
}
|
||||
|
||||
img[src*="/assets/img/flag/"] {
|
||||
|
@ -187,6 +203,12 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
}
|
||||
|
||||
@media screen and (max-width: 920px) {
|
||||
header {
|
||||
padding-left: 0;
|
||||
padding-top: var(--pad-m);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: var(--pad-l);
|
||||
}
|
||||
|
@ -209,7 +231,8 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
|
|||
width: auto;
|
||||
}
|
||||
|
||||
body>nav::before, body>nav::after {
|
||||
body>nav::before,
|
||||
body>nav::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,14 +25,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
& h2 {
|
||||
margin: var(--pad-xl) 0;
|
||||
font-size: var(--pad-xl);
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
& figure {
|
||||
margin: 0;
|
||||
padding: var(--pad-sm);
|
||||
|
|
|
@ -1,33 +1,46 @@
|
|||
@import url("./variables.css");
|
||||
|
||||
#index {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: var(--primary-dark-300);
|
||||
background-color: rgb(255, 190, 0);
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
& main {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
width: inherit;
|
||||
flex-direction: column;
|
||||
background-image: var(--sunny);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
& a {
|
||||
position: absolute;
|
||||
top: 2rem;
|
||||
background-color: unset;
|
||||
}
|
||||
}
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-image: var(--sunny);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
|
||||
& footer {
|
||||
position: absolute;
|
||||
bottom: var(--pad-l);
|
||||
& p {
|
||||
text-align: center;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
& header {
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-self: center;
|
||||
& a, img {
|
||||
z-index: 1;
|
||||
display: inherit;
|
||||
flex-direction: inherit;
|
||||
}
|
||||
& span {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& footer,
|
||||
header {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
|
@ -78,12 +78,6 @@ body>nav {
|
|||
}
|
||||
}
|
||||
|
||||
& svg {
|
||||
fill: currentColor;
|
||||
stroke: currentColor;
|
||||
stroke-width: 0;
|
||||
}
|
||||
|
||||
& details {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
article,
|
||||
body {
|
||||
body,
|
||||
header svg {
|
||||
color: var(--secondary-light-300);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
@media (prefers-color-scheme: light) {
|
||||
|
||||
article,
|
||||
body {
|
||||
body,
|
||||
header svg {
|
||||
color: var(--primary-dark-300);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue