1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 21:00:13 +01:00
metamask-extension/ui/app/css/itcss/components/transaction-list.scss

265 lines
4.4 KiB
SCSS
Raw Normal View History

.tx-list-container {
height: 87.5%;
2017-08-14 10:31:27 +02:00
@media screen and (min-width: $break-large) {
overflow-y: scroll;
}
}
.tx-list-header-wrapper {
flex: 0 0 auto;
}
.tx-list-header {
text-transform: capitalize;
}
@media screen and (max-width: $break-small) {
.tx-list-header-wrapper {
2017-08-14 10:31:27 +02:00
margin-top: .2em;
margin-bottom: .6em;
// TODO: Resolve Layout Conflicst in Wallet View
// - This fixes txlist "transactions" title dispay
// margin-top: 0.2em;
// margin-bottom: 0.6em;
justify-content: center;
2017-10-19 23:08:52 +02:00
flex: 0 0 auto;
}
.tx-list-header {
align-self: center;
font-size: 12px;
color: $dusty-gray;
2017-10-19 23:08:52 +02:00
font-family: Roboto;
text-transform: uppercase;
}
}
@media screen and (min-width: $break-large) {
.tx-list-header {
font-size: 16px;
2018-01-11 06:09:09 +01:00
margin: 1.1em 2.37em .8em;
}
.tx-list-container::-webkit-scrollbar {
display: none;
}
}
.tx-list-content-divider {
height: 1px;
background: rgb(231, 231, 231);
flex: 0 0 1px;
@media screen and (max-width: $break-small) {
2017-08-14 10:31:27 +02:00
margin: .1em 0;
}
@media screen and (min-width: $break-large) {
margin: .1em 2.37em;
}
}
2017-08-11 04:55:01 +02:00
.tx-list-item-wrapper {
flex: 1 1 auto;
width: 0;
2017-08-11 04:55:01 +02:00
align-items: stretch;
justify-content: flex-start;
display: flex;
flex-flow: column nowrap;
2017-08-30 12:33:00 +02:00
@media screen and (max-width: $break-small) {
2017-10-19 23:08:52 +02:00
padding: 0 1.3em .8em;
2017-08-30 12:33:00 +02:00
}
@media screen and (min-width: $break-large) {
padding-bottom: 8px;
2017-08-30 12:33:00 +02:00
}
}
.tx-list-clickable {
2017-08-30 12:33:00 +02:00
cursor: pointer;
2017-09-06 14:09:04 +02:00
&:hover {
background: rgba($alto, .2);
}
2017-08-11 04:55:01 +02:00
}
.tx-list-pending-item-container {
cursor: pointer;
2017-09-14 10:09:57 +02:00
opacity: .5;
}
2017-08-11 04:55:01 +02:00
.tx-list-date-wrapper {
margin-top: 6px;
2017-08-14 10:31:27 +02:00
flex: 1 1 auto;
2017-08-11 04:55:01 +02:00
}
.tx-list-content-wrapper {
align-items: stretch;
margin-bottom: 4px;
flex: 1 0 auto;
width: 100%;
display: flex;
flex-flow: row nowrap;
@media screen and (max-width: $break-small) {
font-size: 12px;
.tx-list-status {
font-size: 12px !important;
}
.tx-list-account {
font-size: 14px !important;
}
.tx-list-value {
font-size: 14px;
2017-10-19 23:08:52 +02:00
line-height: 18px;
}
.tx-list-fiat-value {
font-size: 12px;
line-height: 22px;
}
}
2017-08-11 04:55:01 +02:00
}
.tx-list-date {
color: $dusty-gray;
font-size: 12px;
2017-10-13 00:46:09 +02:00
font-family: Roboto;
2017-08-11 04:55:01 +02:00
}
.tx-list-identicon-wrapper {
align-self: center;
flex: 0 0 auto;
margin-right: 16px;
2017-08-11 04:55:01 +02:00
}
.tx-list-account-and-status-wrapper {
display: flex;
flex: 1 1 auto;
2017-09-14 10:09:57 +02:00
flex-flow: row wrap;
width: 0;
@media screen and (max-width: $break-small) {
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
align-self: center;
2017-10-19 23:08:52 +02:00
.tx-list-account-wrapper {
height: 18px;
.tx-list-account {
line-height: 14px;
}
}
}
2017-08-11 04:55:01 +02:00
@media screen and (min-width: $break-large) {
flex-direction: row;
justify-content: flex-start;
align-items: center;
2017-08-11 04:55:01 +02:00
.tx-list-account-wrapper {
flex: 1.3 2 auto;
min-width: 153px;
}
.tx-list-status-wrapper {
flex: 6 6 auto;
}
}
.tx-list-account {
font-size: 16px;
color: $scorpion;
}
.tx-list-status {
color: $dusty-gray;
font-size: 16px;
text-transform: capitalize;
}
2017-09-14 10:09:57 +02:00
.tx-list-status--rejected,
.tx-list-status--failed {
color: $monzo;
}
2017-08-11 04:55:01 +02:00
}
.tx-list-item {
border-top: 1px solid rgb(231, 231, 231);
flex: 0 0 auto;
display: flex;
flex-flow: row nowrap;
@media screen and (max-width: $break-small) {
// margin: 0 1.3em .95em; !important
}
@media screen and (min-width: $break-large) {
padding: 0 2.37em;
}
&:last-of-type {
border-bottom: 1px solid rgb(231, 231, 231);
margin-bottom: 32px;
}
&__wrapper {
align-self: center;
flex: 2 2 auto;
color: $dusty-gray;
.tx-list-value {
font-size: 16px;
text-align: right;
}
.tx-list-value--confirmed {
color: $caribbean-green;
}
.tx-list-fiat-value {
font-size: 12px;
text-align: right;
}
}
&--empty {
text-align: center;
border-bottom: none !important;
padding: 16px;
}
2017-08-14 10:31:27 +02:00
}
.tx-list-details-wrapper {
overflow: hidden;
flex: 0 0 35%;
}
.tx-list-value {
font-size: 16px;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.tx-list-fiat-value {
font-size: 12px;
line-height: initial;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.tx-list-value--confirmed {
color: $caribbean-green;
}