diff --git a/assets/css/_phx-liveview.scss b/assets/css/_phx-liveview.scss index 4dadcd43..702bdd9f 100644 --- a/assets/css/_phx-liveview.scss +++ b/assets/css/_phx-liveview.scss @@ -9,7 +9,6 @@ /* sets default bootstrap form-control styles if field not touched yet */ .phx-no-feedback .form-control.is-valid, .phx-no-feedback .form-control.is-invalid { - padding: $input-padding-y $input-padding-x; border: $input-border-width solid $input-border-color; background-image: none; diff --git a/assets/css/app.scss b/assets/css/app.scss index d1d02301..384fc844 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -31,3 +31,36 @@ .cursor-pointer { cursor: pointer !important; } + +/* + icons in input fields + */ +/* enable absolute positioning */ +.inner-addon { + position: relative; +} + +/* style icon */ +.inner-addon > .icon { + position: absolute; + padding: 0.5625rem 0.5rem; + pointer-events: none; +} + +/* align icon */ +.inner-addon > .icon.is-left { + left: 0px; +} +.inner-addon > .icon.is-right { + right: 0px; +} + +/* add padding */ +.left-addon input, +.left-addon select { + padding-left: 2rem; +} +.right-addon input, +.right-addon select { + padding-right: 2rem; +} diff --git a/assets/js/app.js b/assets/js/app.js index aeee1e5f..5d161237 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -19,7 +19,9 @@ import "../node_modules/bootstrap-icons/icons/key-fill.svg"; // pw confirm field import "../node_modules/bootstrap-icons/icons/lock.svg"; // current pw field import "../node_modules/bootstrap-icons/icons/shield.svg"; // role // live tables -import "../node_modules/bootstrap-icons/icons/backspace.svg"; // clear filter +import "../node_modules/bootstrap-icons/icons/arrow-down-up.svg"; // sort +import "../node_modules/bootstrap-icons/icons/funnel.svg"; // filter +import "../node_modules/bootstrap-icons/icons/x-circle-fill.svg"; // clear filter import "../node_modules/bootstrap-icons/icons/sort-down-alt.svg"; import "../node_modules/bootstrap-icons/icons/sort-up-alt.svg"; import "../node_modules/bootstrap-icons/icons/chevron-left.svg"; diff --git a/lib/shift73k_web/live/user/registration.html.leex b/lib/shift73k_web/live/user/registration.html.leex index 511a9666..0bc2afa8 100644 --- a/lib/shift73k_web/live/user/registration.html.leex +++ b/lib/shift73k_web/live/user/registration.html.leex @@ -9,8 +9,9 @@ <%= form_for @changeset, "#", [phx_change: :validate, phx_submit: :save, novalidate: true, id: "reg_form"], fn f -> %> - -