X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/0d999bc3cb6e12f158f71a2a28fecfa992e09b47..4df06f73234edadfd1203ce9d12b44b0d7948947:/src/lib.rs?ds=sidebyside diff --git a/src/lib.rs b/src/lib.rs index 5b06e70..efdb7d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ use std::collections::{HashMap, HashSet}; +use std::fmt::Write; use std::io::BufRead; use std::iter::Iterator; @@ -16,12 +17,9 @@ const HEADER: &str = " tr.key > th > div { width: 1em; } tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) } td { border: thin solid gray; } - td.numeric { text-align: right; } - td.yes { border: thin solid gray; background-color: gray; } - td.spacer { border: none; } + td.yes { border: thin solid gray; background-color: #ddd; } /* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */ .highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; } - img { height: 1.2em; }