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

124 lines
2.1 KiB
SCSS
Raw Normal View History

2017-09-06 12:17:49 +02:00
$wallet-balance-breakpoint: 890px;
$wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (max-width: #{$wallet-balance-breakpoint})";
2017-09-05 10:48:52 +02:00
.token-list-item {
display: flex;
flex-flow: row nowrap;
align-items: center;
padding: 20px 24px;
cursor: pointer;
2017-09-06 12:17:49 +02:00
transition: linear 200ms;
background-color: rgba($wallet-balance-bg, 0);
2017-09-29 12:10:50 +02:00
position: relative;
flex: 1;
min-width: 0;
2017-09-06 12:17:49 +02:00
&__token-balance {
margin-right: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2018-05-31 20:16:41 +02:00
min-width: 0;
max-width: 100%;
}
&__token-balance, &__token-symbol {
font-size: 1.5rem;
2018-05-31 20:16:41 +02:00
flex: 0 0 auto;
@media #{$wallet-balance-breakpoint-range} {
font-size: 95%;
}
}
&__fiat-amount {
margin-top: .25%;
font-size: 105%;
width: 100%;
text-transform: uppercase;
@media #{$wallet-balance-breakpoint-range} {
font-size: 95%;
}
}
2017-09-06 12:17:49 +02:00
@media #{$wallet-balance-breakpoint-range} {
padding: 10% 4%;
}
&--active {
2018-01-11 06:09:09 +01:00
background-color: $manatee;
color: $white;
2017-09-06 12:17:49 +02:00
}
2017-09-05 10:48:52 +02:00
&__identicon {
margin-right: 15px;
border: '1px solid #dedede';
min-width: 50px;
2017-09-05 10:48:52 +02:00
@media #{$wallet-balance-breakpoint-range} {
margin-right: 4%;
}
2017-09-05 10:48:52 +02:00
}
2017-09-29 12:10:50 +02:00
&__balance-ellipsis {
display: flex;
align-items: center;
min-width: 0;
flex: 1;
}
2017-09-29 12:10:50 +02:00
&__ellipsis {
2017-10-10 23:43:06 +02:00
line-height: 45px;
margin-left: 5px;
2017-10-10 23:43:06 +02:00
}
&__balance-wrapper {
2018-05-31 20:16:41 +02:00
flex: 1;
flex-flow: row wrap;
display: flex;
min-width: 0;
2017-09-29 12:10:50 +02:00
}
2017-09-05 10:48:52 +02:00
}
2017-09-29 12:10:50 +02:00
.token-menu-dropdown {
width: 80%;
position: absolute;
top: 52px;
right: 25px;
2017-10-24 00:57:14 +02:00
z-index: 2000;
2017-09-29 12:10:50 +02:00
@media #{$wallet-balance-breakpoint-range} {
right: 18px;
}
2017-09-29 12:10:50 +02:00
&__close-area {
position: fixed;
top: 0;
left: 0;
2017-10-24 00:57:14 +02:00
z-index: 2100;
2017-09-29 12:10:50 +02:00
width: 100%;
height: 100%;
2017-10-24 00:57:14 +02:00
cursor: default;
2017-09-29 12:10:50 +02:00
}
&__container {
padding: 16px;
2017-10-24 00:57:14 +02:00
z-index: 2200;
2017-09-29 12:10:50 +02:00
position: relative;
}
&__options {
display: flex;
flex-direction: column;
justify-content: center;
}
&__option {
color: $white;
2017-10-13 00:46:09 +02:00
font-family: Roboto;
2017-09-29 12:10:50 +02:00
font-size: 16px;
line-height: 21px;
text-align: center;
}
}