Skip to content

Commit

Permalink
css cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-1337 committed Sep 30, 2024
1 parent f852874 commit 211952f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class AppComponent implements AfterViewInit, OnInit {
// Zeige eine Snackbar, die auf ein Update hinweist
showUpdateSnackBar(): void {
const snackBarRef = this.snackBar.open('Es ist ein Update verfügbar.', 'Aktualisieren', {
duration: 6000, // Zeigt die Snackbar für 6 Sekunden an
duration: 17000, // Zeigt die Snackbar für 17 Sekunden an
});

// Reagiere auf den Klick des Nutzers auf 'Neu laden'
Expand Down
34 changes: 4 additions & 30 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,6 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
background: var(--mdc-fab-container-color) !important;
}

.update-banner {
position: fixed;
bottom: 0;
width: 100%;
background-color: #ffb787;
color: black;
text-align: center;
padding: 1em;
box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3);
}
.update-banner p {
margin: 0;
}
.update-banner button {
margin-left: 10px;
padding: 0.5em;
border: none;
background-color: #004f4f;
color: white;
cursor: pointer;
border-radius: 3px;
}
.update-banner button:hover {
background-color: #004f4f;
}

.card-container {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -77,10 +51,6 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
mat-form-field {
width: 100%;
}

.mat-mdc-card-header-text {
margin-bottom: 16px; // Standardmäßig margin-bottom hinzufügen
}

.mat-mdc-snack-bar-handset {
margin-bottom: env(safe-area-inset-bottom) !important;
Expand All @@ -90,6 +60,10 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
flex: 1 1 auto;
}

.mat-mdc-card-header-text {
margin-bottom: 16px;
}

.icon-avatar {
align-self: center;
justify-content: center;
Expand Down

0 comments on commit 211952f

Please sign in to comment.