diff --git a/css/base.css b/css/base.css index d9b53e6..2c084c2 100644 --- a/css/base.css +++ b/css/base.css @@ -470,3 +470,19 @@ section.section:not(.\~neutral) { } } +:root { + /* seems to be the sweet spot */ + --inside-input-base: -2.6rem; + + /* thought --spacing would do the trick but apparently not */ + --tailwind-spacing: 0.25rem; +} + +/* places buttons inside a sibling input element (hopefully), based on the flex gap of the parent. */ +.gap-1 > .button.inside-input { + margin-left: calc(var(--inside-input-base) - 1.0*var(--tailwind-spacing)); +} + +.gap-2 > .button.inside-input { + margin-left: calc(var(--inside-input-base) - 2.0*var(--tailwind-spacing)); +} diff --git a/html/admin.html b/html/admin.html index 23e70e9..b2dda34 100644 --- a/html/admin.html +++ b/html/admin.html @@ -715,7 +715,7 @@
-
+