From eac9dd3eadd65a821847b7d9e4068a0a8b8c05d2 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Sun, 3 Aug 2025 13:40:34 +0200 Subject: [PATCH] [BUGFIX] button jumping on active stated --- static/serve/style.css | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/static/serve/style.css b/static/serve/style.css index b4d3e79..9df0abb 100644 --- a/static/serve/style.css +++ b/static/serve/style.css @@ -36,9 +36,7 @@ h2 { /** Button Styles */ input[type="submit"], button:not([class="secondary"]) { - transition: margin-top 0.3s ease, - margin-left 0.3s ease, - box-shadow 0.3s ease; + transition: box-shadow 0.3s ease; background: var(--pico-primary); border: solid 1px var(--pico-primary-hover-background); @@ -57,13 +55,7 @@ button:not([class="secondary"]) { /* When the button is clicked */ button:not([class="secondary"]):active, input[type="submit"]:active { - transition: margin-top 0.3s ease; - margin-left 0.3s ease; - box-shadow 0.3s ease; - - margin-left:9px; - margin-top:9px; - + transition: box-shadow 0.3s ease; box-shadow: 0px 0px 0px var(--pico-primary-hover-background); }