mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
This reverts commit f09ab8889148c406551dea1643966e3331fde4aa, reversing changes made to effc761e0ee4ea7ffb77f275b5ed650a7098d6f8. This is being temporarily reverted to make it easier to release an urgent fix for v10.15.1.
246 lines
4.1 KiB
SCSS
246 lines
4.1 KiB
SCSS
.account-menu {
|
|
position: absolute;
|
|
z-index: 100;
|
|
top: 58px;
|
|
width: 320px;
|
|
border-radius: 4px;
|
|
background: var(--color-background-default);
|
|
box-shadow: rgba($black, 0.15) 0 2px 2px 2px;
|
|
min-width: 150px;
|
|
color: var(--color-text-default);
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
right: 16px;
|
|
}
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
right: calc((100vw - 85vw) / 2);
|
|
}
|
|
|
|
@media screen and (min-width: 769px) {
|
|
right: calc((100vw - 80vw) / 2);
|
|
}
|
|
|
|
@media screen and (min-width: 1281px) {
|
|
right: calc((100vw - 65vw) / 2);
|
|
}
|
|
|
|
&__item {
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 201;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
padding: 14px;
|
|
height: 54px;
|
|
}
|
|
|
|
&--clickable {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: var(--color-background-alternative);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--color-background-alternative);
|
|
}
|
|
}
|
|
|
|
&__icon {
|
|
margin-right: 8px;
|
|
display: flex;
|
|
}
|
|
|
|
&__text {
|
|
@include Paragraph;
|
|
}
|
|
|
|
&__subtext {
|
|
@include H7;
|
|
|
|
padding: 5px 0 0 30px;
|
|
}
|
|
}
|
|
|
|
&__divider {
|
|
background-color: var(--color-border-muted);
|
|
width: 100%;
|
|
height: 1px;
|
|
}
|
|
|
|
&__close-area {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
&__icon {
|
|
margin-left: 1rem;
|
|
cursor: pointer;
|
|
|
|
&--disabled {
|
|
cursor: initial;
|
|
}
|
|
}
|
|
|
|
&__header {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
& &__lock-button {
|
|
@include H7;
|
|
|
|
padding: 3.5px 5px;
|
|
width: 59px;
|
|
}
|
|
|
|
&__accounts-container {
|
|
display: flex;
|
|
position: relative;
|
|
flex-direction: column;
|
|
z-index: 200;
|
|
|
|
@media (max-height: 600px) {
|
|
max-height: 236px;
|
|
}
|
|
}
|
|
|
|
&__accounts {
|
|
overflow-y: auto;
|
|
position: relative;
|
|
max-height: 256px;
|
|
scrollbar-width: auto;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
max-height: 228px;
|
|
}
|
|
|
|
.keyring-label {
|
|
@include H9;
|
|
|
|
z-index: 1;
|
|
border-radius: 10px;
|
|
padding: 4px;
|
|
text-align: center;
|
|
height: 15px;
|
|
margin-top: 5px;
|
|
margin-right: 10px;
|
|
background-color: var(--color-background-alternative);
|
|
color: var(--color-text-default);
|
|
font-weight: normal;
|
|
letter-spacing: 0.5px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
&__no-accounts {
|
|
@include H6;
|
|
|
|
padding: 16px 14px;
|
|
}
|
|
|
|
&__account {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
padding: 16px 14px;
|
|
flex: 0 0 auto;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.remove-account-icon {
|
|
width: 15px;
|
|
margin-left: 10px;
|
|
height: 15px;
|
|
}
|
|
|
|
&:hover {
|
|
.remove-account-icon::after {
|
|
content: '\00D7';
|
|
font-size: 25px;
|
|
color: var(--color-text-default);
|
|
cursor: pointer;
|
|
position: absolute;
|
|
margin-top: -5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__account-info {
|
|
flex: 1 0 auto;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
}
|
|
|
|
&__check-mark {
|
|
margin-right: 8px;
|
|
flex: 0 0 auto;
|
|
min-width: 24px;
|
|
}
|
|
|
|
.identicon {
|
|
margin: 0 12px 0 0;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
&__name {
|
|
@include H4;
|
|
|
|
color: var(--color-text-default);
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
max-width: 200px;
|
|
}
|
|
|
|
&__balance {
|
|
@include H6;
|
|
|
|
color: var(--color-text-alternative);
|
|
}
|
|
|
|
&__action {
|
|
@include Paragraph;
|
|
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__scroll-button {
|
|
position: absolute;
|
|
bottom: 12px;
|
|
right: 12px;
|
|
height: 28px;
|
|
width: 28px;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--color-border-default);
|
|
background: var(--color-background-alternative);
|
|
color: var(--color-icon-default);
|
|
z-index: 201;
|
|
cursor: pointer;
|
|
opacity: 0.8;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&__icon-list {
|
|
display: flex;
|
|
}
|
|
}
|