This commit is contained in:
MeowcaTheoRange 2023-11-17 14:43:40 -06:00
parent 6ad9af8020
commit 031bef1195
2 changed files with 4 additions and 221 deletions

View file

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>HexFlagGen</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles/normal.css" />
<link rel="stylesheet" href="https://cdn.abtmtr.link/cdn/css/normal.css" />
<style>
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100;200;300;400;500;600;700;800;900&display=swap");
@ -28,7 +28,7 @@
<body>
<section>
<h1>HexFlagGen</h1>
<label for="size_width"
<label
><input
type="number"
style="width: 8ch"
@ -84,8 +84,8 @@
/>
<label for="size_height">Height (px)</label><br />
<select id="flag_type">
<option value="horiz" selected>Horizontal</option>
<option value="vert">Vertical</option>
<option value="vert" selected>Vertical</option>
<option value="horiz">Horizontal</option>
</select>
<label for="flag_type">Flag type</label>
</section>

View file

@ -1,217 +0,0 @@
/* Document form */
:root {
--base-scale: 16px;
--background-color: hsl(0, 0%, 15%);
--color: hsl(0, 0%, 85%);
--accent-color: #808080;
--accent-color-fg: hsl(0, 0%, 95%);
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
--document-width: 40em;
--border-style: 0.0625em solid var(--color);
}
body {
width: 100vw;
max-width: var(--document-width);
margin: auto;
padding: 0.5em;
}
html.base {
--background-color: #fff !important;
--color: #000 !important;
--accent-color: #000 !important;
--accent-color-fg: #fff !important;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !important;
--document-width: 40em;
--border-style: 0.0625em solid var(--color);
}
html.base body {
margin: 0;
}
/* Size and type normalize */
html {
font-size: var(--base-scale);
background-color: var(--background-color);
color: var(--color);
}
h1 {
font-size: 2em;
line-height: 1.5em;
margin: 0;
margin-bottom: 0.125em;
}
h2 {
font-size: 1.5em;
line-height: 1.25em;
margin: 0;
margin-bottom: 0.25em;
}
h3 {
font-size: 1.1em;
line-height: 1.25em;
margin: 0;
margin-bottom: 0.25em;
}
p {
font-size: 1em;
line-height: 1.25em;
margin: 0.5em 0;
}
small {
font-size: 0.75em;
}
big {
font-size: 1.5em;
}
code {
font-size: 1em;
line-height: 1.25em;
font-family: monospace;
}
hr {
border: none;
border-top: var(--border-style);
background-color: transparent;
margin: 0.25em 0;
}
/* Form normalize */
html {
font-family: var(--font-family);
}
* {
box-sizing: border-box;
}
*:focus {
outline: 2px solid var(--accent-color-fg);
}
/* Interactive normalize */
a {
color: var(--accent-color);
}
a:hover,
a:focus {
opacity: 0.8;
}
a:active {
opacity: 0.5;
}
input,
select,
textarea {
font-family: inherit;
border: var(--border-style);
padding: 0.25em 0.5em;
margin: 0.25em 0;
font-size: 1em;
background-color: var(--background-color);
color: var(--color);
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
border: var(--border-style);
padding: 0.25em 0.5em;
margin: 0.25em 0;
font-size: 1em;
font-family: inherit;
background-color: var(--accent-color);
color: var(--accent-color-fg);
}
button[data-outlined],
input[type="button"][data-outlined],
input[type="submit"][data-outlined],
input[type="reset"][data-outlined] {
border: var(--border-style);
background-color: var(--background-color);
color: var(--accent-color);
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
opacity: 0.8;
}
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
opacity: 0.5;
}
/* -- Checkbox styling */
label.checkbox {
display: inline-block;
position: relative;
margin: 0.25em 0;
}
label.checkbox input[type="checkbox"] {
/* visibility: hidden; */
opacity: 0;
width: 0;
height: 0;
position: absolute;
top: 0;
left: 0;
}
label.checkbox input[type="checkbox"] + span.checkbox {
display: inline-block;
width: 1em;
height: 1em;
line-height: 1em;
padding: 0.25em;
box-sizing: content-box;
border: var(--border-style);
color: transparent;
text-align: center;
user-select: none;
}
label.checkbox input[type="checkbox"]:focus + span.checkbox {
outline: 2px solid var(--accent-color-fg);
}
label.checkbox input[type="checkbox"]:checked + span.checkbox {
background-color: var(--accent-color);
border: var(--border-style);
color: var(--accent-color-fg);
}