Skip to content

Commit

Permalink
fix: smoother sliding of ledgers on homepage (#924)
Browse files Browse the repository at this point in the history
Updates the transition for new ledgers to be smoother by rendering the
ledger as its full width off to the left and move it to the right.

Also update everywhere `0px` was used to `0` in `ledger.scss`.
  • Loading branch information
ckniffen authored Jan 26, 2024
1 parent ce569c8 commit 377242c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/containers/Ledgers/css/ledgers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $ledger-width: 196px;
max-width: calc(30% - 5px);
padding-top: 1.5px;
font-size: 11px;
letter-spacing: 0px;
letter-spacing: 0;
}

@include for-size(tablet-landscape-up) {
Expand Down Expand Up @@ -98,11 +98,10 @@ $ledger-width: 196px;
}

.ledger {
overflow: visible;
width: $ledger-width;
flex-grow: 0;
flex-shrink: 0;
margin-left: $ledgers-margin-large;
margin-right: $ledgers-margin-large;
animation-duration: 0.4s;
animation-name: ledger-enter;
white-space: normal;
Expand All @@ -114,12 +113,10 @@ $ledger-width: 196px;

@keyframes ledger-enter {
from {
width: 0;
margin-left: -$ledgers-margin-large;
margin-left: -$ledger-width;
}

to {
width: $ledger-width;
margin-left: 0;
}
}
Expand Down Expand Up @@ -228,7 +225,7 @@ $ledger-width: 196px;

.hash {
overflow: hidden;
padding: 0px 32px 32px;
padding: 0 32px 32px;
border: 1px solid $black-60;
border-top: 0;
background: rgba($black-80, 0.7);
Expand All @@ -238,7 +235,7 @@ $ledger-width: 196px;

.bar {
height: 2px;
margin: 0px -32px;
margin: 0 -32px;
}

&.unselected {
Expand Down

0 comments on commit 377242c

Please sign in to comment.