From 1c6c92c55f05abc7d8da3e32e8eb27d63d55af9b Mon Sep 17 00:00:00 2001 From: Manuel Meister Date: Mon, 26 Jun 2023 21:32:05 +0200 Subject: [PATCH] Fix list Closes #3582 --- print/tailwind.config.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/print/tailwind.config.js b/print/tailwind.config.js index fdd0d3daf2..a2d20480b9 100644 --- a/print/tailwind.config.js +++ b/print/tailwind.config.js @@ -18,6 +18,38 @@ module.exports = { marginBottom: '0.3em!important', minHeight: '0.6em!important', }, + ol: { + marginTop: 0, + marginBottom: '0.3em!important', + paddingLeft: '1.125em!important', + }, + ul: { + marginTop: 0, + marginBottom: '0.3em!important', + paddingLeft: '1.2em!important', + }, + li: { + marginTop: '0!important', + marginBottom: '0.3em!important', + }, + 'ol > li': { + paddingLeft: '0.2em', + }, + 'ul > li': { + paddingLeft: '0', + }, + 'ul ul, ul ol, ol ul, ol ol': { + marginTop: '0', + marginBottom: '0.5em', + }, + '--tw-prose-counters': 'black', + '--tw-prose-bullets': 'black', + }, + }, + neutral: { + css: { + '--tw-prose-counters': 'black', + '--tw-prose-bullets': 'black', }, }, }),