From 2c36184a9ac9f3bce23872cd645c6b69f36d9887 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Thu, 14 Aug 2025 10:42:26 +0100 Subject: [PATCH] input.css: fix list items missing bullets Change-Id: zrqmnxkvrqxnrrlwtkoltnwxqtmwksmz - `inline-block` on li was too general, this only applies on `li:has(input)` now - all styles have been moved to input.css and apply only to children of prose Signed-off-by: oppiliappan --- input.css | 12 ++++++++++++ tailwind.config.js | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/input.css b/input.css index 1c641299..25e90e39 100644 --- a/input.css +++ b/input.css @@ -102,6 +102,18 @@ disabled:before:bg-green-400 dark:disabled:before:bg-green-600; } + .prose li:has(input) { + list-style: none; + } + + .prose li { + @apply my-0 py-0; + } + + .prose ul, .prose ol { + @apply my-1 py-0; + } + .prose img { display: inline; margin: 0; diff --git a/tailwind.config.js b/tailwind.config.js index a1d7d0ce..8dbdb548 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -40,12 +40,6 @@ module.exports = { color: colors.black, "@apply font-normal text-black bg-gray-100 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-700 dark:border": {}, }, - li: { - "@apply inline-block w-full my-0 py-0": {}, - }, - "ul, ol": { - "@apply my-1 py-0": {}, - }, code: { "@apply font-normal font-mono p-1 rounded text-black bg-gray-100 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-700": {}, }, -- 2.43.0