From b1f312512fc4733b9ad13bb1180dc4a3289be6da Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 12 Sep 2022 15:33:40 +0200 Subject: glep: Sync table rendering to docutils-glep-1.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- _plugins/gleps.rb | 3 ++- assets/css/glep.css | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/_plugins/gleps.rb b/_plugins/gleps.rb index 85b1f82..b9e7f53 100644 --- a/_plugins/gleps.rb +++ b/_plugins/gleps.rb @@ -29,7 +29,8 @@ module Gentoo def __target_object__ @__target_object__ ||= ::RbST.new(".. contents::\n..\n\n" + @rst).to_html( - 'initial-header-level' => 2) + 'initial-header-level' => 2, + 'table-style' => '"table table-bordered"') end def method_missing(method_name, *args, &block) diff --git a/assets/css/glep.css b/assets/css/glep.css index 84b3238..ea4ede6 100644 --- a/assets/css/glep.css +++ b/assets/css/glep.css @@ -80,6 +80,15 @@ THE SOFTWARE. border-color: #ebccd1; } +.table { + width: auto; +} + +table.table > tbody > tr > td, +table.table > tbody > tr > th { + vertical-align: middle; +} + /* the following bits are copied from: -- cgit v1.2.3-18-g5258