computersandblues.hitomezashi/index.html

82 lines
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hitomezashi Pattern Generation</title>
<style>
:root {
--background-color: #eee;
--primary-color: #225;
--secondary-color: #99b;
}
html, body {
padding: 0;
margin: 0;
min-height: 100vh;
}
body {
background: var(--background-color);
color: var(--primary-color);
font-family: sans-serif;
padding: 40px;
font-size: 14px;
}
canvas {
border: 1px solid var(--primary-color);
}
h1, h2 {
margin: 0.6rem 0;
}
label {
display: block;
margin: 0.2rem 0;
}
label > span {
display: inline-block;
width: 9em;
}
a.button {
display: inline-block;
padding: 0.3rem 0.6rem;
background: var(--primary-color);
color: var(--background-color);
text-decoration: none;
}
@media screen and (min-width: 1024px) {
div.container {
display: grid;
grid-template: 'canvas settings';
grid-template-columns: auto minmax(0, 1fr);
grid-gap: 40px;
}
main {
grid-area: canvas;
}
aside {
grid-area: settings;
align-self: center;
}
h1:first-child, h2:first-child {
margin-top: 0
}
}
</style>
</head>
<body>
<script type="module" src="/src/main.ts"></script>
</body>
</html>