William O'Beirne db6b737cad Show Recent Txs on Check Tx Page (#1147)
* Save transactions to local storage.

* Checksum more things + reset hash on network change.

* Fix IHexTransaction type, grab from from tx object directly.

* Refactor storage of recent transactions to use redux storage and loading.

* Refactor types to a transactions types file.

* Initial crack at recent transactions tab on account

* Punctuation.

* Transaction Status responsive behavior.

* Refactor transaction helper function out to remove circular dependency.

* Fix typings

* Collapse subtabs to select list when too small.

* s/wallet/address

* Type select onChange

* Get fields from current state if web3 tx
2018-03-14 15:10:14 -05:00

67 lines
1.3 KiB
SCSS

@import 'common/sass/variables';
@import 'common/sass/mixins';
$hover-speed: 150ms;
$identicon-size: 36px;
$identicon-size-mobile: 24px;
.RecentTx {
line-height: $identicon-size;
border: 1px solid $gray-lighter;
cursor: pointer;
transition: box-shadow $hover-speed ease;
box-shadow: 0 0 $brand-primary inset;
&-to {
width: 100%;
max-width: 0;
@include mono;
@include ellipsis;
.Identicon {
display: inline-block;
width: $identicon-size !important;
height: $identicon-size !important;
margin-right: $space-md;
}
}
&-time {
opacity: 0.88;
}
&-arrow {
padding-left: $space-md;
font-size: 22px;
opacity: 0.3;
transition-property: opacity, color, transform;
transition-duration: $hover-speed;
transition-timing-function: ease;
}
&:hover {
box-shadow: 3px 0 $brand-primary inset;
.RecentTx-arrow {
opacity: 1;
color: $brand-primary;
transform: translateX(3px);
}
}
// Responsive handling
@media (max-width: $screen-md) {
font-size: $font-size-xs;
line-height: $identicon-size-mobile;
&-to .Identicon {
width: $identicon-size-mobile !important;
height: $identicon-size-mobile !important;
}
&-arrow .fa {
display: none;
}
}
}