diff --git a/webapp/components/LoginForm/LoginForm.vue b/webapp/components/LoginForm/LoginForm.vue index 2ff5fcce5..769238a46 100644 --- a/webapp/components/LoginForm/LoginForm.vue +++ b/webapp/components/LoginForm/LoginForm.vue @@ -12,7 +12,7 @@

{{ $t('login.login') }}

- .svg { height: 1.2em; fill: currentColor; diff --git a/webapp/components/_new/generic/BaseInput/BaseInput.vue b/webapp/components/_new/generic/BaseInput/BaseInput.vue index 8b4d40243..5d8d38fd0 100644 --- a/webapp/components/_new/generic/BaseInput/BaseInput.vue +++ b/webapp/components/_new/generic/BaseInput/BaseInput.vue @@ -11,7 +11,8 @@ ]" :id="id" :name="name ? name : model" - :type="type" + :type="[showPassword ? 'text' : 'password']" + :v-model="type" :autofocus="autofocus" :placeholder="placeholder" :tabindex="tabindex" @@ -21,35 +22,52 @@ @input="handleInput" @focus="handleFocus" @blur="handleBlur" - :rows="type === 'textarea' ? rows : null" - v-html="type === 'textarea'" /> - + + + @@ -117,7 +128,7 @@ export default { .base-input { border: none; - width: 76%; + width: 60%; background-color: $background-color-disabled; font-size: $input-font-size-base; line-height: $line-height-base; @@ -136,9 +147,6 @@ export default { border: $input-border-size solid $border-color-active; } } - - /* .input-is-disabled &, */ - } } @@ -148,45 +156,36 @@ export default { outline-width: 0; } - .input-icon, - .input-icon-right { - top: 0; - bottom: 0; - left: 0; - /* width: 10%; */ + .input-icon { align-items: center; justify-content: center; width: $input-height; color: $text-color-softer; transition: color $duration-short $ease-out; pointer-events: none; - - .input-has-focus & { - color: $text-color-base; - } } - /* .input-has-icon-right { - padding-right: $input-height; - - .input-size-small & { - padding-right: $input-height-small; - } - - .input-size-large & { - padding-right: $input-height-large; - } + .input-icon-right, + .icon-button { + align-items: center; + justify-content: center; + width: $input-height; + color: $text-color-softer; + transition: color $duration-short $ease-out; + pointer-events: none; + } + .input-icon-right-secondary { + pointer-events: all; } - .input-has-icon-right-secondary { - padding-right: $input-height; - .input-size-small & { - padding-right: $input-height-small; - } + .toggle-icon { + color: $text-color-disabled; + background-color: $background-color-disabled; + width: 100%; + height: 100%; + } + - .input-size-large & { - padding-right: $input-height-large; - } - } */ + diff --git a/webapp/components/_new/generic/IconButton/IconButton.vue b/webapp/components/_new/generic/IconButton/IconButton.vue new file mode 100644 index 000000000..5ef5d8884 --- /dev/null +++ b/webapp/components/_new/generic/IconButton/IconButton.vue @@ -0,0 +1,33 @@ + + + + + \ No newline at end of file