38 lines
739 B
SCSS

/*
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
* SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@import '../../vars';
$img-height: 0.69;
$img-width: #{$form-input-height * $img-height};
@mixin show-password-img {
display: block;
width: $img-width;
}
.show-password--show {
@include show-password-img;
}
.show-password--hide {
@include show-password-img;
display: none;
}
.show-password-container {
position: relative;
top: -#{$form-input-height * ($img-height * 1.15)};
left: #{$form-content-width * 0.99};
display: block;
margin-bottom: -30px;
}
.show-password-container:hover {
cursor: pointer;
}