From: Mischa POSLAWSKY Date: Fri, 16 Mar 2018 20:31:46 +0000 (+0100) Subject: charset: center table captions on glyph cells only X-Git-Tag: v1.12~88 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/6dcc57a0c5b4dc9bbd301bc37d4f4f4cc4d4556f charset: center table captions on glyph cells only Assume all tables with class glyphs have a header column which is styled outside the rest of the body, so offset this width to appear centered. --- diff --git a/base.css b/base.css index 919f64e..8703c83 100644 --- a/base.css +++ b/base.css @@ -33,6 +33,8 @@ caption aside { margin-left: 1ex; font-weight: normal; display: inline; + font-size: 91%; /* 100% */ + margin-top: .3ex; /* align with 110% baseline */ } hr { @@ -276,6 +278,10 @@ thead td { .glyphs thead td { width: auto; /* no glyph cells in header */ } +.glyphs caption { + margin-left: 2.2em; /* 1ex + offset head column (1.6em + 0.4em) / 110% */ + /* adjusted insignificant -.2em to fit wide contents on /charset/mac */ +} th { padding: 0 0.2em; }