mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 04:46:10 +01:00
201 lines
3.3 KiB
SCSS
201 lines
3.3 KiB
SCSS
.network-component--disabled {
|
|
cursor: not-allowed;
|
|
|
|
.fa-caret-down {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.network-component.pointer {
|
|
border: 1px solid $Grey-200;
|
|
border-radius: 82px;
|
|
padding: 6px 3px;
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
|
|
&.ethereum-network .menu-icon-circle div {
|
|
background-color: rgba(3, 135, 137, 0.7) !important;
|
|
}
|
|
|
|
&.ropsten-test-network .menu-icon-circle div {
|
|
background-color: rgba(233, 21, 80, 0.7) !important;
|
|
}
|
|
|
|
&.kovan-test-network .menu-icon-circle div {
|
|
background-color: rgba(105, 4, 150, 0.7) !important;
|
|
}
|
|
|
|
&.rinkeby-test-network .menu-icon-circle div {
|
|
background-color: rgba(235, 179, 63, 0.7) !important;
|
|
}
|
|
|
|
&.goerli-test-network .menu-icon-circle div {
|
|
background-color: rgba(48, 153, 242, 0.7) !important;
|
|
}
|
|
|
|
&.localhost-network .menu-icon-circle div {
|
|
background-color: rgba(3, 135, 137, 0.7) !important;
|
|
}
|
|
}
|
|
|
|
.dropdown-menu-item {
|
|
.menu-icon-circle,
|
|
.menu-icon-circle--active {
|
|
margin: 0 14px;
|
|
}
|
|
}
|
|
|
|
.dropdown-menu-item .fa.delete {
|
|
margin-right: 10px;
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-menu-item:hover .fa.delete {
|
|
display: inherit;
|
|
}
|
|
|
|
.network-droppo {
|
|
right: 2px;
|
|
|
|
.color-indicator {
|
|
margin: 0 14px;
|
|
}
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
right: calc(((100% - 85vw) / 2) + 2px);
|
|
}
|
|
|
|
@media screen and (min-width: 769px) {
|
|
right: calc(((100% - 80vw) / 2) + 2px);
|
|
}
|
|
|
|
@media screen and (min-width: 1281px) {
|
|
right: calc(((100% - 65vw) / 2) + 2px);
|
|
}
|
|
}
|
|
|
|
.network-name-item {
|
|
flex: 1;
|
|
color: $dusty-gray;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.network-check,
|
|
.network-check__transparent {
|
|
color: $white;
|
|
margin-left: 7px;
|
|
}
|
|
|
|
.network-check__transparent {
|
|
opacity: 0;
|
|
width: 16px;
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-icon-circle,
|
|
.menu-icon-circle--active {
|
|
background: none;
|
|
border-radius: 22px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border: 1px solid transparent;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.menu-icon-circle--active {
|
|
border: 1px solid $white;
|
|
background: rgba(100, 100, 100, 0.4);
|
|
}
|
|
|
|
.menu-icon-circle div,
|
|
.menu-icon-circle--active div {
|
|
height: 12px;
|
|
width: 12px;
|
|
border-radius: 17px;
|
|
}
|
|
|
|
.menu-icon-circle--active div {
|
|
opacity: 1;
|
|
}
|
|
|
|
.network-dropdown-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.network-dropdown-list {
|
|
max-height: 330px;
|
|
overflow-y: auto;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.network-dropdown-divider {
|
|
width: 100%;
|
|
height: 1px;
|
|
margin: 10px 0;
|
|
background-color: $scorpion;
|
|
}
|
|
|
|
.network-dropdown-title {
|
|
@include H4;
|
|
|
|
height: 25px;
|
|
width: 120px;
|
|
color: $white;
|
|
text-align: center;
|
|
}
|
|
|
|
.network-dropdown-content {
|
|
@include H6;
|
|
|
|
min-height: 36px;
|
|
width: 265px;
|
|
color: $dusty-gray;
|
|
|
|
&--link {
|
|
color: $white;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
color: $white;
|
|
}
|
|
}
|
|
|
|
&--dismiss {
|
|
color: inherit;
|
|
background: inherit;
|
|
position: absolute;
|
|
top: 63px;
|
|
right: 10px;
|
|
border: 1px solid $dusty-gray;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
.network-caret {
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.network-loading-spinner {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 16px;
|
|
width: 16px;
|
|
margin-left: 5px;
|
|
|
|
img {
|
|
height: 26px;
|
|
position: absolute;
|
|
top: -5px;
|
|
left: -6px;
|
|
}
|
|
}
|