X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/de408c29be1f465f08fc0ba4114704d3ef8bdcef..38d1167ae3ec3dac0f183938bb353c995052ae6c:/src/lib.rs?ds=sidebyside diff --git a/src/lib.rs b/src/lib.rs index 9504c7f..fbafcb1 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; @@ -12,16 +13,13 @@ const HEADER: &str = " th, td { white-space: nowrap; } th { text-align: left; font-weight: normal; } table { border-collapse: collapse } - tr.key > th { height: 8em; vertical-align: bottom; line-height: 1 } + tr.key > th { height: 10em; vertical-align: bottom; line-height: 1 } 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; }