X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=style.css;h=b4d5b1b7445d6c9cb8aee3f27f232637b6dd5dc0;hp=baf35bf59abe9367432554e01f6ecb7b3fa5ef9f;hb=b28c923a50b2fc9001fdff69e18506ea02470fe5;hpb=06a42682201c8bfdf8da363519be113f943fd7b8 diff --git a/style.css b/style.css index baf35bf..b4d5b1b 100644 --- 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; @@ -75,8 +82,10 @@ 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); @@ -124,7 +133,6 @@ body { * of the page content. */ #page { - box-sizing: border-box; max-width: var(--page-max-width-padded); margin-left: auto; margin-right: auto; @@ -257,7 +265,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 +281,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 { @@ -326,8 +336,10 @@ button:hover { top: 0; } -.hide-button:hover { - color: var(--danger-color-dark); +@media (hover:hover) { + .hide-button:hover { + color: var(--danger-color-dark); + } } /*\