style and accessability
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="theme-color" content="#2e3440">
|
<meta name="theme-color" content="#2e3440">
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<body class="dark">
|
<body class="dark">
|
||||||
<h1>{title}</h1>
|
<h1>{title}</h1>
|
||||||
<div class="theme">
|
<div class="theme">
|
||||||
<select onchange="setTheme(event)">
|
<select aria-label="Theme" onchange="setTheme(event)">
|
||||||
<option value="darker">Light-on-Black</option>
|
<option value="darker">Light-on-Black</option>
|
||||||
<option value="dark" selected>Light-on-Dark</option>
|
<option value="dark" selected>Light-on-Dark</option>
|
||||||
<option value="light">Dark-on-White</option>
|
<option value="light">Dark-on-White</option>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="theme-color" content="#2e3440">
|
<meta name="theme-color" content="#2e3440">
|
||||||
|
|||||||
16
site.css
16
site.css
@@ -24,9 +24,11 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 28px;
|
font-size: 3rem;
|
||||||
font-weight: 800;
|
font-weight: 400;
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
|
margin: 32px auto;
|
||||||
|
max-width: 40rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,10 +45,10 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 16px;
|
font-size: 1rem;
|
||||||
line-height: 22px;
|
line-height: 1.5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-width: 40em;
|
max-width: 40rem;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,8 +59,8 @@ img {
|
|||||||
|
|
||||||
label,
|
label,
|
||||||
input {
|
input {
|
||||||
font-size: 16px;
|
font-size: 1rem;
|
||||||
line-height: 22px;
|
line-height: 1.5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user