.bg-image::before { content: ""; position: absolute; top: 0; left: 0; width: 100%;…
- User
.bg-image::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(52, 58, 64, 0.6); } and
<div class="col-md-4 m-5"> <div class="loginContainer" *ngIf="!ieRestricted"> i want the bg color don't effect the loginContainer div - Assistant
You can achieve this by setting a higher z-index for the loginContainer div compared to the pseudo-element that creates the background color overlay. This will make the loginContainer div appear above the background color overlay and prevent the background color from affecting it.
Here's how you can update your CSS:
.bg-image::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(52, 58, 64, 0.6); z-index: 1; /* Adjust the z-index value as needed */ } .loginContainer { position: relative; z-index: 2; /* Make sure this is higher than the z-index of the background color overlay */ } .bg-image { position: relative; /* Ensure proper stacking context */ }In this updated CSS, the loginContainer div is given a higher z-index than the pseudo-element that creates the background color overlay. This will make the loginContainer div appear on top of the background color overlay and prevent the background color from affecting it.
- User
well and also i have .loginContainer { width: 100%; background-color: #ffffff; -webkit-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); border-radius: 5px; padding: 50px 15px; position: relative; z-index: 2;} and <div class="loginContainer" *ngIf="!ieRestricted">
Vodafone OMS i want loginheader div and form don't affect by the opacity of loginContainer - Assistant
To prevent the opacity of the loginContainer from affecting the loginHeader div and the form inside it, you can set a background color with an alpha value for the loginContainer. This will allow the opacity to be applied to the background of the loginContainer while keeping the loginHeader div and the form inside it fully opaque.
Here's how you can update your CSS:
.loginContainer { width: 100%; background-color: rgba(255, 255, 255, 0.9); /* Set the background color with an alpha value */ -webkit-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1); border-radius: 5px; padding: 50px 15px; position: relative; z-index: 2; } .loginHeader { /* Styles for the loginHeader */ } .loginForm { /* Styles for the form */ }By setting the background color of the loginContainer to rgba(255, 255, 255, 0.9), you are giving it a white background with 90% opacity, while keeping the content of the loginHeader div and the form inside it fully opaque. Adjust the alpha value (0.9 in this case) to achieve the desired level of opacity for the loginContainer.
- User
<input type="password" formControlName="password" id="pass" placeholder="Password" autocomplete="off" class="form-control " [ngClass]="{ 'is-invalid': submitted && f['password'].errors }" /> replace the fa-lock by eye-icon when click on it show pw
- Assistant
To replace the lock icon with an eye icon and toggle the visibility of the password input field when the eye icon is clicked, you can use JavaScript/jQuery. Here is an example of how you can achieve this:
HTML:
<input type="password" formControlName="password" id="pass" placeholder="Password" autocomplete="off" class="form-control" [ngClass]="{ 'is-invalid': submitted && f['password'].errors }" /> <div class="input-group-append"> <span class="input-group-text toggle-password"><i class="fa fa-eye"></i></span> </div>CSS:
/* Add any necessary styles for the eye icon */JavaScript/jQuery:
$(document).ready(function() { $('.toggle-password').click(function() { const input = $('#pass'); const icon = $(this).find('i'); // Toggle the password visibility input.attr('type', input.attr('type') === 'password' ? 'text' : 'password'); // Toggle the eye icon between 'fa-eye' and 'fa-eye-slash' icon.toggleClass('fa-eye fa-eye-slash'); }); });