From 88f141722780b54e360d254b99a362e89737706d Mon Sep 17 00:00:00 2001 From: "Stephen A. Bernhardt" Date: Sat, 4 Nov 2023 10:24:47 -0500 Subject: [PATCH] Update styles for `div` (still supporting tables) --- src/wp-admin/css/forms.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 7274b0bcd7fee..b82485a70df4b 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -921,11 +921,14 @@ table.form-table td .updated p { } .color-palette { + display: table; width: 100%; border-spacing: 0; border-collapse: collapse; } +.color-palette .color-palette-shade, .color-palette td { + display: table-cell; height: 20px; padding: 0; border: none; @@ -1589,12 +1592,15 @@ table.form-table td .updated p { margin-bottom: 0; } + .form-table .color-palette .color-palette-shade, .form-table .color-palette td { display: table-cell; width: 15px; + height: 30px; + padding: 0; } - .form-table table.color-palette { + .form-table .color-palette { margin-right: 10px; }