diff --git a/Public/css/main.css b/Public/css/main.css index fd1b31d..b9cd4cc 100644 --- a/Public/css/main.css +++ b/Public/css/main.css @@ -375,8 +375,8 @@ tr.htmx-swapping td { } .btn-row { - margin-top: 40px; - margin-right: 5px; + margin: 5px 40px; + padding: 10px 0px; } .btn-row button { @@ -401,10 +401,66 @@ button.edit { opacity: 0.8; } -form table input[type=text] { +.row { + display: flex; + margin: 10px 0; + width: 100%; +} + +.row .container { + display: inline; +} + +.input { + display: inline; + width: 100%; +} + +.row .input { + display: inline; border: none; - border-bottom: none; - margin-bottom: 0; - padding-bottom: 0; +} + +.row label { + display: inline-block; + width: 400px; + margin-right: 20px; +} + +.htmx-swapping { + opacity: 0; + transition: opacity 1s ease-in-out; +} + +#employee-detail form input[type=text] { + margin-right: 20px; + margin-top: 5px; font-size: 1.5em; } + +.active-row { + display: flex; + float: right; +} + +.active-row h3 { + width: auto; + margin-left: 20px; + margin-right: 20px; +} + +.active-row a { + display: inline-block; +} + +.htmx-indicator { + display: none; +} + +.htmx-request .htmx-indicator { + display: inline; +} + +.htmx-request.htmx-indicator { + display: inline; +} diff --git a/Public/images/spinner.svg b/Public/images/spinner.svg new file mode 100644 index 0000000..a09661a --- /dev/null +++ b/Public/images/spinner.svg @@ -0,0 +1 @@ + diff --git a/Resources/Views/employees/detail.leaf b/Resources/Views/employees/detail.leaf index eff9b3c..04117c7 100644 --- a/Resources/Views/employees/detail.leaf +++ b/Resources/Views/employees/detail.leaf @@ -1,12 +1,7 @@