1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/components/multichain/account-list-item/index.scss
David Walsh 724c69ea7c
UX: Multichain: Ensure percentage of account name always shown (#18976)
* UX: Multichain: Ensure percentage of account name always shown

* Remove extra spacing between value and menu, use proposed widths

* Setup widths via storybook and props

* Remove spacing between avatar and asset value

* WIP: Setup customization for Sara, update hard-coded font sizes

* Implement final widths

* Cleanup CSS
2023-05-17 11:53:54 -05:00

74 lines
1.2 KiB
SCSS

.multichain-account-list-item {
position: relative;
width: 100%;
cursor: pointer;
&:not(.account-list-item--selected) {
&:hover,
&:focus-within {
background: var(--color-background-default-hover);
}
}
&__account-name {
max-width: 160px;
min-width: 80px;
/* Prevent the normal hover effect on Buttons */
&__button {
&:hover,
&:focus {
opacity: 1;
}
}
}
&__asset {
max-width: 130px;
min-width: 60px;
align-self: self-end;
}
/* Prevent font-size resizing to avoid conflcits for long asset and token names */
&__account-name button,
&__asset,
&__tooltip {
font-size: 14px !important;
}
&__avatar {
margin-inline-end: 2px;
}
&__selected-indicator {
width: 4px;
height: calc(100% - 8px);
position: absolute;
top: 4px;
left: 4px;
}
&__content {
overflow: hidden;
flex: 1;
}
&__tooltip {
display: inline;
}
.currency-display-component {
text-overflow: ellipsis;
overflow: hidden;
display: inline;
&__prefix {
padding-right: unset;
}
&__suffix {
font-size: 12px !important;
}
}
}