<link rel="icon" href="data:,">
<title>Block Hash Calculator</title>
<style>
- body {
- font-family: sans-serif;
- margin-block: 0;
- max-inline-size: min(100dvi, 1080px);
- margin-inline: auto;
- background-color: hsl(216deg 50% 93%);
- color: hsl(216deg 50% 10%);
- }
+ @layer base;
- main {
- margin-block: 16px;
- margin-inline: 8px;
- }
-
- h1 {
- font-size: 2rem;
- font-weight: 300;
- margin: 0;
- }
-
- p,
- a {
- display: inline-block;
- margin-block-start: 8px;
- }
-
- a {
- font-weight: 700;
- text-decoration: none;
- color: hsl(216deg 50% 40%);
-
- &:hover,
- &:focus-within {
- text-decoration: underline;
- text-decoration-thickness: 2px;
- }
- }
-
- form {
- display: flex;
- flex-direction: column;
-
- & * {
- font-size: 1rem;
- }
- }
-
- label {
- font-weight: 700;
- margin-block-end: 4px;
- }
-
- input,
- button {
- padding: 8px;
- border-radius: 4px;
- border: 1px solid hsl(216deg 50% 85%);
- outline: 2px solid transparent;
- outline-offset: 1px;
- margin-block-end: 8px;
- transition: filter 300ms, border-color 300ms, outline-color 300ms;
-
- &:hover {
- transition: filter 150ms;
- filter: brightness(102%);
- }
-
- &:focus-within {
- transition: border-color 150ms, outline-color 150ms;
- border-color: transparent;
- outline-color: hsl(216deg 50% 40%);
- }
- }
-
- button {
- inline-size: fit-content;
- cursor: pointer;
- }
-
- output {
- display: none;
- font-family: monospace;
- transition: opacity 300ms;
-
- @starting-style {
- opacity: 0;
- }
- }
-
- code {
- white-space: pre-wrap;
- word-break: break-all;
- }
+ @import "./style.css" layer(base);
</style>
</head>
--- /dev/null
+body {
+ font-family: sans-serif;
+ margin-block: 0;
+ max-inline-size: min(100dvi, 1080px);
+ margin-inline: auto;
+ background-color: hsl(216deg 50% 93%);
+ color: hsl(216deg 50% 10%);
+}
+
+main {
+ margin-block: 16px;
+ margin-inline: 8px;
+}
+
+h1 {
+ font-size: 2rem;
+ font-weight: 300;
+ margin: 0;
+}
+
+p,
+a {
+ display: inline-block;
+ margin-block-start: 8px;
+}
+
+a {
+ font-weight: 700;
+ text-decoration: none;
+ color: hsl(216deg 50% 40%);
+
+ &:hover,
+ &:focus-within {
+ text-decoration: underline;
+ text-decoration-thickness: 2px;
+ }
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+
+ & * {
+ font-size: 1rem;
+ }
+}
+
+label {
+ font-weight: 700;
+ margin-block-end: 4px;
+}
+
+input,
+button {
+ padding: 8px;
+ border-radius: 4px;
+ border: 1px solid hsl(216deg 50% 85%);
+ outline: 2px solid transparent;
+ outline-offset: 1px;
+ margin-block-end: 8px;
+ transition: filter 300ms, border-color 300ms, outline-color 300ms;
+
+ &:hover {
+ transition: filter 150ms;
+ filter: brightness(102%);
+ }
+
+ &:focus-within {
+ transition: border-color 150ms, outline-color 150ms;
+ border-color: transparent;
+ outline-color: hsl(216deg 50% 40%);
+ }
+}
+
+button {
+ inline-size: fit-content;
+ cursor: pointer;
+}
+
+output {
+ display: none;
+ font-family: monospace;
+ transition: opacity 300ms;
+
+ @starting-style {
+ opacity: 0;
+ }
+}
+
+code {
+ white-space: pre-wrap;
+ word-break: break-all;
+}
\ No newline at end of file