Skip to content

Commit

Permalink
tweak styling of local store/database view mode, #238
Browse files Browse the repository at this point in the history
* reduce folder items height (by making its height equal to the mail item height)
  • Loading branch information
vladimiry committed Jan 27, 2020
1 parent 2600ee9 commit 3ad4de5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="d-flex flex-grow-1 mr-2 type-{{folder.folderType}}">
<div class="d-flex flex-grow-1 type-{{folder.folderType}}">
<i class="fa mr-2"></i>
<span class="mr-1">{{ folder.name }}</span>
<span *ngIf="folder.size">({{ folder.size }})</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
}
}

.list-group-item {
padding: $app-db-view-mail-padding-y $app-db-view-mail-padding-x;
}

.list-group-item:not(.list-group-item-warning) {
background-color: $app-db-view-color-bg-mail;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
$state-line-draft: #febe5e;
$state-line-with: 4px;
$state-line-margin: 3px;
$border-color: $list-group-border-color;
$padding-y: $list-group-item-padding-y * 0.5;
$padding-x: $list-group-item-padding-x * 0.5;

background-color: $app-db-view-color-bg-mail;
border: 1px solid $list-group-border-color;
display: flex;
flex-direction: column;
padding: $padding-y $padding-x;
padding: $app-db-view-mail-padding-y $app-db-view-mail-padding-x;
position: relative;

.r {
Expand Down Expand Up @@ -97,7 +94,7 @@

.fa {
font-size: 85%;
line-height: 1.8;
align-self: center;
}

.conversation-size,
Expand All @@ -115,7 +112,7 @@

.b {
border: 1px solid darken($app-db-view-color-border, 2%);
padding: $badge-padding-y $badge-padding-x;
padding: ($badge-padding-y * 0.5) $badge-padding-x;
border-radius: $badge-border-radius;
}

Expand Down
2 changes: 2 additions & 0 deletions src/web/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ $app-db-view-color-bg-body: lighten(#eeeff1, 1%);
$app-db-view-color-bg-mail: lighten(#d1d7dc, 1%);
$app-db-view-color-bg: lighten($app-db-view-color-bg-mail, 7%);
$app-db-view-color-border: $list-group-border-color;
$app-db-view-mail-padding-x: $list-group-item-padding-x * 0.5;
$app-db-view-mail-padding-y: $list-group-item-padding-y * 0.5;

@mixin app-dropdown-toggle-split {
padding-left: $btn-padding-x * 1.1;
Expand Down

0 comments on commit 3ad4de5

Please sign in to comment.