1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 15:14:29 +01:00
metamask-extension/ui/app/components/account-menu/index.scss

178 lines
3.0 KiB
SCSS
Raw Normal View History

2017-10-13 08:10:58 +02:00
.account-menu {
position: fixed;
z-index: 100;
top: 58px;
width: 310px;
@media screen and (max-width: 575px) {
2017-10-19 23:08:52 +02:00
right: calc(((100vw - 100%) / 2) + 8px);
2017-10-13 08:10:58 +02:00
}
@media screen and (min-width: 576px) {
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);
}
2017-10-16 07:28:25 +02:00
&__icon {
margin-left: 20px;
2017-10-16 07:28:25 +02:00
cursor: pointer;
&--disabled {
cursor: initial;
}
2017-10-16 07:28:25 +02:00
}
2017-10-13 08:10:58 +02:00
&__header {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}
&__logout-button {
border: 1px solid $dusty-gray;
background-color: transparent;
color: $white;
border-radius: 4px;
font-size: 12px;
line-height: 23px;
padding: 0 24px;
}
&__item-icon {
2017-10-13 08:10:58 +02:00
width: 16px;
height: 16px;
}
2017-10-16 07:28:25 +02:00
&__accounts {
display: flex;
flex-flow: column nowrap;
overflow-y: auto;
2018-12-20 21:26:11 +01:00
max-height: 256px;
2017-10-16 07:28:25 +02:00
position: relative;
z-index: 200;
2017-10-18 07:36:53 +02:00
&::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 575px) {
2018-12-20 21:26:11 +01:00
max-height: 228px;
2017-10-18 07:36:53 +02:00
}
.keyring-label {
margin-top: 5px;
background-color: $dusty-gray;
color: $black;
font-weight: normal;
2018-07-10 06:20:00 +02:00
letter-spacing: .5px;
2017-10-18 07:36:53 +02:00
}
}
&__account {
display: flex;
flex-flow: row nowrap;
padding: 16px 14px;
flex: 0 0 auto;
@media screen and (max-width: 575px) {
padding: 12px 14px;
}
2018-07-10 06:20:00 +02:00
2018-07-11 07:35:37 +02:00
.remove-account-icon {
2018-07-12 06:23:08 +02:00
width: 15px;
margin-left: 10px;
height: 15px;
2018-07-10 06:20:00 +02:00
}
&:hover {
2018-07-11 07:35:37 +02:00
.remove-account-icon::after {
2018-07-10 06:20:00 +02:00
content: '\00D7';
font-size: 25px;
color: $white;
cursor: pointer;
position: absolute;
margin-top: -5px;
}
}
2017-10-18 07:36:53 +02:00
}
&__account-info {
flex: 1 0 auto;
display: flex;
flex-flow: column nowrap;
}
&__check-mark {
width: 14px;
2017-10-24 09:13:49 +02:00
margin-right: 12px;
2017-10-18 07:36:53 +02:00
flex: 0 0 auto;
}
2017-10-24 09:13:49 +02:00
&__check-mark-icon {
background-image: url("images/check-white.svg");
height: 18px;
width: 18px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
margin: 3px 0;
}
2017-10-18 07:36:53 +02:00
.identicon {
margin: 0 12px 0 0;
flex: 0 0 auto;
}
&__name {
color: $white;
font-size: 18px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 200px;
2017-10-18 07:36:53 +02:00
}
&__balance {
color: $dusty-gray;
font-size: 14px;
}
&__action {
font-size: 16px;
line-height: 18px;
cursor: pointer;
2017-10-16 07:28:25 +02:00
}
2018-12-20 21:26:11 +01:00
&__accounts-container {
position: relative;
}
&__scroll-button {
position: absolute;
bottom: 12px;
right: 12px;
height: 28px;
width: 28px;
border-radius: 14px;
background: #3f3f3f;
z-index: 201;
cursor: pointer;
opacity: .8;
display: flex;
justify-content: center;
align-items: center;
&:hover {
opacity: 1;
}
}
2017-10-13 08:10:58 +02:00
}