]> git.ardis.lu - erc-165-calculator/commitdiff
Add basic styling
authorArdis Lu <ardisglu@gmail.com>
Mon, 21 Aug 2023 03:25:59 +0000 (20:25 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 21 Aug 2023 03:25:59 +0000 (20:25 -0700)
index.html

index 8862a43421eeb94f213144e89e461fcf8a9de7e3..168765670dae573c260136761f284ab2028d3d06 100644 (file)
       background: hsl(216deg 50% 90%);
       color: hsl(216deg 50% 10%);
     }
+
+    header {
+      display: flex;
+      justify-content: center;
+    }
+
+    main {
+      display: flex;
+      inline-size: min(720px, 100% - 16px);
+      margin-inline: auto;
+    }
+
+    form {
+      display: flex;
+      flex-direction: column;
+      align-items: start;
+      gap: 8px;
+    }
+
+    label {
+      font-weight: 700;
+      font-size: 1.25rem;
+    }
+
+    textarea,
+    button {
+      font-size: 1rem;
+      border-radius: 4px;
+      border: 1px solid hsl(216deg 50% 50%);
+    }
+
+    textarea {
+      min-inline-size: 80ch;
+      min-block-size: 5rem;
+      padding: 8px;
+    }
+
+    button {
+      padding: 4px 8px;
+    }
   </style>
 </head>
 
 <body>
-  <h1>ERC-165 Calculator</h1>
+  <header>
+    <h1>ERC-165 Calculator</h1>
+  </header>
 
-  <form>
-    <label for="functions">Functions</label>
-    <textarea name="functions" id="functions"></textarea>
+  <main>
+    <form>
+      <label for="functions">Functions</label>
+      <textarea name="functions" id="functions"></textarea>
 
-    <button>Calculate</button>
+      <button>Calculate</button>
 
-    <output></output>
-  </form>
+      <output></output>
+    </form>
+  </main>
 
   <script type="module">
     // From noble-hashes v1.3.1
This page took 0.043769 seconds and 4 git commands to generate.