Skip to content
Snippets Groups Projects
Commit 6f494bfb authored by benjamin's avatar benjamin
Browse files

Merge branch 'feature/purple-a11y-menu' into 'master'

Feature/purple a11y menu

See merge request !2
parents 1c110a97 06abad35
Branches
Tags v3.0.0
1 merge request!2Feature/purple a11y menu
Pipeline #2320 passed
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<header> <header>
<div class="js" lang="en" id="accessibility-options"> <div class="js" lang="en" id="accessibility-options">
<button type="button"> <button type="button">
Accessibility Options Accessibility&nbsp;Options
</button> </button>
<fieldset class="display-none" id="font-selection"> <fieldset class="display-none" id="font-selection">
<legend class="font-Ubuntu">Font</legend> <legend class="font-Ubuntu">Font</legend>
......
...@@ -311,6 +311,9 @@ p { ...@@ -311,6 +311,9 @@ p {
border: 1px solid #6600ea; border: 1px solid #6600ea;
border-radius: 15px; border-radius: 15px;
} }
#font-selection label:hover {
cursor: pointer;
}
#font-selection input[type="radio"] { #font-selection input[type="radio"] {
margin-right: 5pt; margin-right: 5pt;
} }
...@@ -388,7 +391,7 @@ p { ...@@ -388,7 +391,7 @@ p {
body { body {
max-width: 900pt; max-width: 900pt;
} }
.flex > * { .content > * {
flex-basis: 20rem; flex-basis: 20rem;
} }
header { header {
...@@ -404,25 +407,38 @@ p { ...@@ -404,25 +407,38 @@ p {
line-height: 0; line-height: 0;
} }
#accessibility-options {
position: absolute;
top: 0;
right: 0;
font-size: inherit;
color: #efefef;
background-color: #6600ea;
border: 0;
border-bottom-left-radius: 1.5em;
font-weight: bold;
padding: 0 0 0 0.5em;
}
#font-selection { #font-selection {
margin: auto; margin: auto;
color: #efefef;
background-color: #6600ea;
} }
#font-selection ul { #font-selection legend {
display: flex; border: 0;
flex-wrap: wrap; padding-top: 2em;
flex-direction: row; padding-left: 0;
margin: 0 1rem; margin-left: 0;
padding: 0.5rem;
border-radius: 20px;
justify-content: space-around;
} }
#font-selection li { #font-selection ul {
min-width: 0; -moz-columns: 1;
columns: 1;
color: #efefef;
background-color: #6600ea;
margin: 0;
} }
#font-selection legend { #font-selection li:hover {
text-align: center; background-color: #5b00d2;
margin-left: auto;
margin-right: auto;
} }
} }
...@@ -469,3 +485,17 @@ p { ...@@ -469,3 +485,17 @@ p {
border: 1px solid #6600ea; border: 1px solid #6600ea;
} }
} }
@media (prefers-color-scheme: dark) and (min-width: 50em) {
#font-selection {
color: black;
background: #6600ea;
}
#font-selection ul {
color: black;
background: #6600ea;
}
#font-selection li:hover {
background-color: #8432ee;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment