From 6dcc57a0c5b4dc9bbd301bc37d4f4f4cc4d4556f Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 16 Mar 2018 21:31:46 +0100 Subject: [PATCH] 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. --- base.css | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.30.0