Skip to content

Commit

Permalink
style(mail): Improve unread count badges and icon alignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtandersen committed Apr 20, 2024
1 parent 7946718 commit 22c1c13
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/app/folder/folderlist.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
mat-list-item.selectedFolder p.visibleOnHover {
display: inherit;
}
.newMessagesCount .mat-badge-content {
width: auto;
}
35 changes: 24 additions & 11 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ $rmm-default-background: mat.define-palette(mat.$light-blue-palette, 900, A400,

$rmm-default-theme: mat.define-light-theme($rmm-default-primary, $rmm-default-accent, $rmm-default-warn);

$rmm-default-lighter-gray: #eeeeee;
$rmm-default-light-gray: #f4f4f4;
$rmm-default-dark-gray: #949494;
$rmm-default-black: #444444;

@include mat.all-legacy-component-themes($rmm-default-theme);

// GTA 13.06.2018: Load custom fonts
Expand Down Expand Up @@ -372,7 +377,7 @@ mat-grid-tile.tableTitle {
color: #949494 !important;
}
.themePaletteBlack {
color: #444 !important;
color: #444444 !important;
}

/*** App-specific styles ***/
Expand Down Expand Up @@ -727,8 +732,11 @@ mat-sidenav-container {
border-right: 1px solid rgba(0, 0, 0, 0.12);

mat-icon {
width: 20px;
height: 20px;
width: 22px;
height: 22px;
}
.mat-line span {
vertical-align: middle !important;
}
}

Expand Down Expand Up @@ -856,16 +864,19 @@ h3.sideNavHeader {

rmm-folderlist {
.mat-icon-button {
height: 30px;
height: 24px;
line-height: 24px;
}
}

.mailFolder div, .mailFolder span {
height: 1em;
vertical-align: middle;
}

.mailFolder mat-icon {
vertical-align: top !important;
}


.folderIconStandard {
color: mat.get-color-from-palette($rmm-default-primary);
}
Expand All @@ -885,13 +896,15 @@ rmm-folderlist {
}

.mat-badge-content {
color: white !important;
background-color: mat.get-color-from-palette($rmm-default-foreground) !important;
font-size: 10px;
line-height: 18px !important;
width: auto;
overflow: visible !important;
right: auto !important;
left: 0px;
padding: 2px 3px 2px 3px;
padding: 0px 3px;
background-color: $rmm-default-light-gray;
font-size: 10px;
/* line-height: 18px !important; */
color: black;
}

.foldersidebarcount {
Expand Down

0 comments on commit 22c1c13

Please sign in to comment.