]> git.cworth.org Git - lmno.games/commitdiff
Add some basic styling for form input fields
authorCarl Worth <cworth@cworth.org>
Sat, 16 May 2020 22:31:47 +0000 (15:31 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 16 May 2020 22:34:12 +0000 (15:34 -0700)
Compared to browser defaults this provides larger font sizes and a
more modern flat aesthetic with a simple color scheme.

style.css

index 4cb0b3f7fc945be370b2547711e17c418618e341..c79ae7d5903c0f43f504fc5eda3067a51b7c68dc 100644 (file)
--- a/style.css
+++ b/style.css
@@ -159,3 +159,53 @@ form {
         grid-column-end: span 2
     }
 }
         grid-column-end: span 2
     }
 }
+
+/*\
+|*|
+|*| Styling for form input fields
+|*|
+\*/
+
+label {
+    font-size: 125%;
+}
+
+input {
+    box-sizing: border-box;
+    font-size: 125%;
+    padding: 0.5em;
+    width: 100%;
+    border: 1px solid #287789;
+    border-radius: 4px;
+}
+
+input:focus {
+    border: 2px solid #44c7ef;
+}
+
+button {
+    display: inline-block;
+    border-radius: 4px;
+    background-color: #287789;
+    border: none;
+    color: white;
+    text-align: center;
+    font-size: 125%;
+    margin-top: .25em;
+    padding-top: 0.25em;
+    padding-bottom: 0.25em;
+    width: 200px;
+}
+
+button:hover {
+    transform: translateY(-1px);
+    background-color: #44c7ef;
+}
+
+:focus {
+    outline: none;
+}
+
+::-moz-focus-inner {
+    border: 0;
+}