Adjust login css

This commit is contained in:
Peter Rossa
2023-05-16 11:10:46 +02:00
parent 79af9e812f
commit 6cbc9bd94d
3 changed files with 32 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<div class="login-form-wrapper">
<mat-card>
<mat-card class="login-card">
<mat-card-content>
<form [formGroup]="loginForm" (ngSubmit)="login()">
<h2>Log In</h2>
@@ -16,7 +16,10 @@
Please provide a valid password
</mat-error>
</mat-form-field>
<div class="button-wrapper">
<button mat-raised-button color="primary" [disabled]="!loginForm.valid">Login</button>
</div>
</form>
</mat-card-content>
</mat-card>

View File

@@ -1,17 +1,30 @@
mat-card {
max-width: 400px;
margin: 2em auto;
text-align: center;
mat-card.login-card {
width: 400px;
margin: auto;
// text-align: center;
color: #333333;
border-radius: 0;
.mat-mdc-card-content {
padding: 25px;
h2 {
margin-top: 0;
}
}
.button-wrapper {
display: flex;
flex-direction: row;
justify-content: end;
}
}
mat-form-field {
display: block;
}
login-form-wrapper {
.login-form-wrapper {
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
align-content: space-around;
}

View File

@@ -13,7 +13,7 @@ html.cdk-global-scrollblock {
body {
// margin: 0;
font-family: "Open Sans", sans-serif;
font-family: 'Open Sans', sans-serif;
// height: 100vh;
margin: 0;
padding: 0;
@@ -51,3 +51,7 @@ div.mat-grid-tile-content {
overflow-y: auto;
overflow-x: hidden;
}
button {
border-radius: 0;
}