From a6b30c1b19cad08030b2500e18d57c419135b256 Mon Sep 17 00:00:00 2001 From: Dome Date: Tue, 7 Apr 2026 21:08:06 +0200 Subject: [PATCH] Refactor button styles and layout adjustments Updated button styles for improved layout and transitions. --- css/main.css | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/css/main.css b/css/main.css index cbc7a59..43f28f2 100644 --- a/css/main.css +++ b/css/main.css @@ -89,6 +89,7 @@ button, input[type=submit] { width: 100%; } +/* BUTTONS: Statisch, stabilisiert und mit festen 4px Margin */ .primary, .secondary { text-decoration: none; font-weight: bold; @@ -100,22 +101,23 @@ button, input[type=submit] { letter-spacing: 1px; width: 100%; - transition: background-color 0.2s ease, filter 0.2s ease, opacity 0.2s ease; + line-height: 1.2; + transition: background-color 0.1s linear, filter 0.1s linear, opacity 0.1s linear; - transform: translateZ(0); - backface-visibility: hidden; - perspective: 1000px; - - vertical-align: middle; -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-smooth: never; + + transform: translateZ(0); + will-change: background-color; + backface-visibility: hidden; } .primary { background: var(--foreground); color: var(--app-background) !important; border-radius: 4px; - border: none; - transform: none !important; + border: 1px solid var(--foreground); } .primary:hover { @@ -128,7 +130,6 @@ button, input[type=submit] { color: var(--foreground); border: 1px solid var(--foreground); border-radius: 4px; - transform: translateZ(0); } .secondary:hover { @@ -136,7 +137,7 @@ button, input[type=submit] { transform: none !important; } -/* Fix für Button-Container (entfernt versteckte Gaps) */ +/* Fix für Button-Container (entfernt versteckte Gaps und stabilisiert Layout) */ .actions, .ClientView .actions, .ClientListView .actions, @@ -144,14 +145,17 @@ button, input[type=submit] { display: flex !important; flex-direction: column !important; gap: 0px !important; + align-items: stretch; + justify-content: flex-start; + backface-visibility: hidden; } -/* Entfernt den Abstand beim letzten Button in einer Gruppe für saubere Optik */ +/* Entfernt den Abstand beim letzten Button in einer Gruppe */ .actions > *:last-child { margin-bottom: 0 !important; } -/* Input Felder: Dunkel statt Weiß */ +/* Input Felder */ input[type='text'].large { width: 100%; padding: 14px;