From 034941c9ec14981c84d08d3343b3a0fdbd27623d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 3 Sep 2024 08:30:05 -0700 Subject: [PATCH] Docs for the new .core CSS class, refs #2415 --- docs/custom_templates.rst | 9 +++++++++ docs/writing_plugins.rst | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/custom_templates.rst b/docs/custom_templates.rst index 534d8b3321..8cc40f0ff4 100644 --- a/docs/custom_templates.rst +++ b/docs/custom_templates.rst @@ -83,6 +83,15 @@ database column they are representing, for example: +.. _customization_css: + +Writing custom CSS +~~~~~~~~~~~~~~~~~~ + +Custom templates need to take Datasette's default CSS into account. The pattern portfolio at ``/-/patterns`` (`example here `__) is a useful reference for understanding the available CSS classes. + +The ``core`` class is particularly useful - you can apply this directly to a ```` or ``