From 52569174409612a767255e63d1c6694ca19823e7 Mon Sep 17 00:00:00 2001 From: Davide Scano Date: Sat, 23 Nov 2024 20:48:11 +0100 Subject: [PATCH 1/2] Add better text allignement for the table captions Signed-off-by: Davide Scano --- p4-16/spec/resources/theme/p4-theme.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p4-16/spec/resources/theme/p4-theme.yml b/p4-16/spec/resources/theme/p4-theme.yml index f033a222a3..0f4a99938a 100644 --- a/p4-16/spec/resources/theme/p4-theme.yml +++ b/p4-16/spec/resources/theme/p4-theme.yml @@ -248,6 +248,9 @@ table: stripe_background_color: F9F9F9 foot: background_color: F0F0F0 + caption: + text-align: center + end: bottom toc: indent: $horizontal_rhythm font-family: OpenSans From fdca73d98c8706527b072b4ee731ed4f97d9e932 Mon Sep 17 00:00:00 2001 From: Dscano Date: Sat, 28 Dec 2024 12:51:00 +0000 Subject: [PATCH 2/2] Centered images and table captions in HTML Signed-off-by: Dscano --- p4-16/spec/resources/theme/p4-stylesheet.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4-16/spec/resources/theme/p4-stylesheet.css b/p4-16/spec/resources/theme/p4-stylesheet.css index a29dbe7c67..c998b61140 100644 --- a/p4-16/spec/resources/theme/p4-stylesheet.css +++ b/p4-16/spec/resources/theme/p4-stylesheet.css @@ -347,9 +347,9 @@ kbd kbd:last-child { margin-right: 0; } .imageblock, .literalblock, .listingblock, .verseblock, .videoblock { margin-bottom: 1.33333em; } -.admonitionblock td.content > .title, .exampleblock > .title, .imageblock > .title, .videoblock > .title, .listingblock > .title, .literalblock > .title, .openblock > .title, .paragraph > .title, .quoteblock > .title, .sidebarblock > .title, .tableblock > .title, .verseblock > .title, .dlist > .title, .olist > .title, .ulist > .title, .qlist > .title, .hdlist > .title { text-align: center; font-weight: bold; } +.admonitionblock td.content > .title, .exampleblock > .title, .imageblock > .title, .videoblock > .title, .listingblock > .title, .literalblock > .title, .openblock > .title, .paragraph > .title, .quoteblock > .title, .sidebarblock > .title, .tableblock > .title, .verseblock > .title, .dlist > .title, .olist > .title, .ulist > .title, .qlist > .title, .hdlist > .title { text-align: center; font-weight: lighter; } -.tableblock > caption { text-align: left; font-weight: bold; white-space: nowrap; overflow: visible; max-width: 0; } +.tableblock > caption {caption-side: bottom; font-weight:lighter; white-space: nowrap; overflow: visible;} table.tableblock #preamble > .sectionbody > .paragraph:first-of-type p { font-size: inherit; }