]> git.ardis.lu - static-encrypt/commitdiff
Improve styling
authorArdis Lu <ardisglu@gmail.com>
Wed, 22 Feb 2023 05:15:54 +0000 (21:15 -0800)
committerArdis Lu <ardisglu@gmail.com>
Wed, 22 Feb 2023 05:15:54 +0000 (21:15 -0800)
index.html

index e681414c86ec859387fc009a719dedff6b52e9fe..445652fb0fa52dfce776bcb84689febf96ef4b52 100644 (file)
 
     textarea,
     input,
-    button {
+    button,
+    pre {
       inline-size: 100%;
       font-family: inherit;
       font-size: 1rem;
       padding: 6px 4px;
       margin-block-end: 16px;
+      border-radius: 4px;
+      border: 1px solid hsl(216deg 50% 80%);
+      transition: filter 200ms, border 200ms;
+    }
+
+    :is(textarea, input, button, pre):focus-within,
+    button:hover {
+      border: 1px solid hsl(216deg 50% 70%);
+      filter: drop-shadow(0 0 4px hsl(216deg 50% 80%));
+      transition: filter 200ms, border 200ms;
     }
 
     output {
       display: none;
     }
 
+    #content {
+      block-size: 20rem;
+    }
+
+    #ciphertext {
+      overflow-x: auto;
+      background: hsl(216deg 50% 90%);
+      border-radius: 4px;
+    }
+
     button {
       inline-size: fit-content;
       padding: 8px;
-      border-radius: 4px;
-      border: 1px solid grey;
+      background: hsl(216deg 50% 90%);
+      cursor: pointer;
     }
 
     footer {
This page took 0.035558 seconds and 4 git commands to generate.