diff --git a/auth/assets/public/background.jpeg b/auth/assets/public/background.jpeg new file mode 100644 index 000000000..0db9b7768 Binary files /dev/null and b/auth/assets/public/background.jpeg differ diff --git a/auth/assets/public/background.png b/auth/assets/public/background.png deleted file mode 100644 index 66ef17af5..000000000 Binary files a/auth/assets/public/background.png and /dev/null differ diff --git a/auth/assets/public/script.js b/auth/assets/public/script.js index 2b5c5950e..0dbee26be 100644 --- a/auth/assets/public/script.js +++ b/auth/assets/public/script.js @@ -1,10 +1,12 @@ -// placeholder +$(function () { + $('.toast').toast('show'); -function buttonDisabler() { - setTimeout(function() { - let bb = document.getElementsByTagName('button') - for (let i = 0; i < bb.length; i++) { - bb[i].disabled = true - } - }, 100) -} + $('form').not('do-not-disable-buttons-on-submit').on('submit', function() { + let form = this + setTimeout(function() { + $('button, input[type=submit]', form) + .not('do-not-disable-on-submit') + .attr('disabled', true) + }, 50) + }) +}) diff --git a/auth/assets/public/style.css b/auth/assets/public/style.css index 0e6b8b653..2a2960b07 100644 --- a/auth/assets/public/style.css +++ b/auth/assets/public/style.css @@ -1,39 +1,24 @@ :root { - --primary: #568ba2; + --primary: #4D7281; --primary-hover: #497689; + --light: #E4E9EF; + --danger: #E54122; + --body-margin: 50px; } html { overflow: hidden; } -html, -body { - height: 100%; -} - body { overflow: scroll; - background-size: cover; - background-repeat: no-repeat; - background-attachment: fixed; - padding-top: 150px; - padding-bottom: 100px; - background: rgb(17, 25, 31); -} - -body::before { - content: ""; - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(255, 255, 255, 0.23); + margin: var(--body-margin) 0; + font-family: 'Nunito', sans-serif; + height: calc(100vh - 2 * var(--body-margin)); } .logo { - height: 30px; + height: 45px; } .version { @@ -41,15 +26,28 @@ body::before { right: 0; } +.user { + top: 0; + right: 0; +} + +.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, label, .btn, a { + font-weight: 600; +} + /* over-ride default variables colors */ -a { - color: var(--primary); +a, label, .text-primary { + color: var(--primary) !important; } a:hover { color: var(--primary-hover); } +.text-danger { + color: var(--danger) !important; +} + .card, .card-header { border-radius: 1rem; @@ -66,10 +64,32 @@ a:hover { border-color: var(--primary-hover); } +.btn-light, +.bg-light, +.badge-light { + background-color: var(--light)!important; + border-color: var(--light); +} + +.btn-danger, +.bg-danger { + background-color: var(--danger)!important; + border-color: var(--danger); +} + +.btn-lg { + font-size: 1rem; +} + +/* Navigation */ +.nav-item.active { + border-bottom: 4px solid var(--primary); +} + /* form styling*/ -.form-control, -.input-group-text { - border-radius: 0; +.form-control { + border: 2px solid var(--light); + padding: 1.25rem 0.75rem; } .form-control:focus { @@ -79,6 +99,18 @@ a:hover { .auth { width: 100%; - max-width: 750px; + max-width: 650px; margin: auto; + padding: 0 20px; +} + +.footer { + bottom: 0; + z-index: -1; +} + +/* position bootstrap icons on buttons centrally */ +[class^="bi-"]::before, [class*=" bi-"]::before { + vertical-align: middle; + line-height: 1.6; } diff --git a/auth/assets/templates/authorized-clients.html.tpl b/auth/assets/templates/authorized-clients.html.tpl index 8f627eb6c..deeed68e3 100644 --- a/auth/assets/templates/authorized-clients.html.tpl +++ b/auth/assets/templates/authorized-clients.html.tpl @@ -1,42 +1,35 @@ -{{ template "inc_header.html.tpl" . }} -