From d33a67b8ae43135886123a45d653cfa8fd775330 Mon Sep 17 00:00:00 2001 From: Florian Zumpe Date: Mon, 5 Oct 2026 15:21:54 +0200 Subject: [PATCH] swap route control buttons --- public/css/app.css | 54 +++++++++++++++++------------------ public/images/icons/pause.svg | 4 ++- public/images/icons/play.svg | 4 ++- public/images/icons/stop.svg | 4 ++- 4 files changed, 35 insertions(+), 31 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 06f70a2..8fa9d11 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -305,21 +305,26 @@ button, #route-page fieldset { display: grid; padding: 0; - grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: .5rem; + grid-template-columns: repeat(3, var(--icon-button-size)); + justify-content: end; + gap: .65rem; margin: 0 0 1rem; } #route-page fieldset button.ui-button { display: grid; place-items: center; - min-width: 0; - min-height: 3.25rem; + width: var(--icon-button-size); + height: var(--icon-button-size); + min-width: 44px; + min-height: 44px; box-sizing: border-box; - padding: .55rem; - border: 1px solid transparent; - border-radius: .55rem; - box-shadow: 0 .12rem .35rem rgba(0, 0, 0, .12); + padding: .75rem; + border: 1px solid #c8d3ca; + border-radius: 1rem; + background: var(--surface); + box-shadow: 0 .08rem .2rem rgba(0, 0, 0, .06); + transition: background-color 150ms ease, border-color 150ms ease; cursor: pointer; touch-action: manipulation; } @@ -335,8 +340,8 @@ button, } #route-page fieldset button.ui-button img { - width: 2rem; - height: 2rem; + width: 1.5rem; + height: 1.5rem; pointer-events: none; } #route-page fieldset > legend, @@ -351,19 +356,8 @@ button, border: 0; } -#start-route { - background: var(--primary); - border-color: var(--primary-dark); -} - -#pause-route { - background: #9a6500; - border-color: #704a00; -} - -#stop-route { - background: #9b2c2c; - border-color: #701f1f; +#route-page #start-route { + background: #e7f1e9; } #slideshow { overflow: hidden; @@ -504,20 +498,24 @@ button, } .app-page > header .back-button.ui-button:hover, - .app-page > header .back-button.ui-button:focus, - #start-route:not(:disabled):hover, - #start-route:not(:disabled):focus { + .app-page > header .back-button.ui-button:focus { background: var(--primary-dark); color: #fff; } + #route-page #start-route:not(:disabled):hover { + background: #dceade; + border-color: var(--primary); + } #pause-route:not(:disabled):hover, #pause-route:not(:disabled):focus { - background: #704a00; + background: #fff8d6; + border-color: #9a6500; } #stop-route:not(:disabled):hover, #stop-route:not(:disabled):focus { - background: #701f1f; + background: #fff1ef; + border-color: #9b2c2c; } } diff --git a/public/images/icons/pause.svg b/public/images/icons/pause.svg index 5becb85..6050a39 100644 --- a/public/images/icons/pause.svg +++ b/public/images/icons/pause.svg @@ -1 +1,3 @@ - + diff --git a/public/images/icons/play.svg b/public/images/icons/play.svg index 711bb4c..3ebbdc0 100644 --- a/public/images/icons/play.svg +++ b/public/images/icons/play.svg @@ -1 +1,3 @@ - + diff --git a/public/images/icons/stop.svg b/public/images/icons/stop.svg index 0895c2f..2b2fbad 100644 --- a/public/images/icons/stop.svg +++ b/public/images/icons/stop.svg @@ -1 +1,3 @@ - +