93 lines
1.8 KiB
HTML
93 lines
1.8 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;
|
|
}
|
|
|
|
*, *:before, *:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
padding: 0;
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body {
|
|
background: var(--background-color);
|
|
color: var(--primary-color);
|
|
font-family: sans-serif;
|
|
padding: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media screen and (min-width: 480px) {
|
|
body {
|
|
padding: 40px;
|
|
}
|
|
}
|
|
|
|
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;
|
|
margin-right: 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>
|