From 09d2a049481f5d9e8b8b06448ce8769eb6badfac Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 3 Sep 2024 09:32:47 -0700 Subject: [PATCH] form class="core" and fixed red delete buttons Refs https://github.com/simonw/datasette/issues/2417 --- .../templates/edit_schema_table.html | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/datasette_edit_schema/templates/edit_schema_table.html b/datasette_edit_schema/templates/edit_schema_table.html index 0dda850..3ff678e 100644 --- a/datasette_edit_schema/templates/edit_schema_table.html +++ b/datasette_edit_schema/templates/edit_schema_table.html @@ -14,13 +14,14 @@ font-size: 1em; font-family: Helvetica, sans-serif; } -body form .button-red { - background-color: red; - border-color: red; -} -body form .button-small { +input[type=submit].button-small { font-size: 0.7em; } +form input[type=submit].button-red { + background: red; + border-color: rgb(171, 112, 112); +} + select { border: 1px solid #ccc; border-radius: 3px; @@ -91,7 +92,7 @@

Edit table +

@@ -99,7 +100,7 @@

Rename table

{% endif %} -
+

Change existing columns

    {% for column in columns %} @@ -134,7 +135,7 @@

    Change existing columns

    Add a column

    - +

    @@ -156,7 +157,7 @@

    Update foreign key relationships

    } - + @@ -180,7 +181,7 @@

    {% if is_rowid_table %}Set a primary key{% else %}Change the primary key{% e

    The primary key column uniquely identifies each row in the table.

    - + @@ -201,7 +202,7 @@

    Table indexes

    Indexes can speed up filter and sort operations against indexed columns.

    - + {% if non_primary_key_columns %}

    Existing indexes

    {% if can_drop_table %}

    Drop table

    - +