]> git.cworth.org Git - lmno.games/blobdiff - style.css
Add support for detecting glyph shapes
[lmno.games] / style.css
index baf35bf59abe9367432554e01f6ecb7b3fa5ef9f..bc611e5a16587f895e37be0864c5f6cc2b483454 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,3 +1,8 @@
+/* Because this is the only sizing that is sane, make it global. */
+* {
+    box-sizing: border-box;
+}
+
 /*\
 |*|
 |*| Properties for the page: colors, etc.
@@ -17,6 +22,8 @@
     /* A little color to avoid a fully monochromatic theme. */
     --accent-color: #287789;
     --accent-color-bright: #44c7ef;
+    --text-fg-on-accent: white;
+    --text-fg-on-accent-bright: #333738;
 
     /* Some colors intended to convey semnatics. */
     --warning-color: #ffa92a;
@@ -44,6 +51,7 @@ body {
 h1,h2 {
     color: var(--text-fg-color);
     font-weight: bold;
+    margin-top: 0.5em;
 }
 
 h1 {
@@ -75,13 +83,19 @@ a:link    {
 a:visited {
     color: var(--accent-color);
 }
-a:hover   {
-    color: var(--accent-color-bright);
+@media (hover:hover) {
+    a:hover   {
+        color: var(--accent-color-bright);
+    }
 }
 a:active  {
     color: var(--accent-color-bright);
 }
 
+strong {
+    font-weight: bold;
+}
+
 /*\
 |*|
 |*| Overall page layout
@@ -124,7 +138,6 @@ body {
  * of the page content.
  */
 #page {
-    box-sizing: border-box;
     max-width: var(--page-max-width-padded);
     margin-left: auto;
     margin-right: auto;
@@ -207,6 +220,11 @@ form {
     grid-column-gap: 1em;
 }
 
+.form-field {
+    margin-top: 0.25em;
+    margin-bottom: 0.25em;
+}
+
 .form-field.small.left,.form-field.medium.left {
     grid-column-start: 1;
 }
@@ -257,7 +275,7 @@ button {
     border-radius: 4px;
     background-color: var(--accent-color);
     border: none;
-    color: white;
+    color: var(--text-fg-on-accent);
     text-align: center;
     font-size: 125%;
     margin-top: .25em;
@@ -273,9 +291,11 @@ button.inline {
     width: auto;
 }
 
-button:hover {
-    transform: translateY(-1px);
-    background-color: var(--accent-color-bright);
+@media (hover:hover) {
+    button:hover {
+        transform: translateY(-1px);
+        background-color: var(--accent-color-bright);
+    }
 }
 
 :focus {
@@ -318,6 +338,7 @@ button:hover {
 
 .hide-button {
     color: white;
+    opacity: 0.5;
     font-size: 125%;
     font-weight: bold;
     cursor: pointer;
@@ -326,8 +347,10 @@ button:hover {
     top: 0;
 }
 
-.hide-button:hover {
-    color: var(--danger-color-dark);
+@media (hover:hover) {
+    .hide-button:hover {
+        opacity: 1.0;
+    }
 }
 
 /*\