A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/pages/settings/networks-tab/index.scss

262 lines
4.5 KiB

.networks-tab {
&__content {
display: flex;
height: 100%;
max-width: 739px;
justify-content: space-between;
@media screen and (max-width: $break-small) {
margin-top: 0;
flex-direction: column;
overflow-x: hidden;
align-items: center;
}
}
&__body {
padding-right: 24px;
height: 100%;
display: flex;
flex-direction: column;
@media screen and (max-width: $break-small) {
padding: 0;
}
}
&__subheader {
@include H4;
padding: 16px 4px;
border-bottom: 1px solid var(--color-border-default);
height: 72px;
align-items: center;
display: flex;
flex-flow: row nowrap;
}
&__subheader--break {
margin-inline-start: 10px;
}
&__sub-header-text {
@include H4;
color: var(--color-text-muted);
margin-right: 10px;
}
&__network-form {
display: flex;
flex: 1 0;
flex-direction: column;
justify-content: space-between;
max-height: 465px;
margin-top: 24px;
.page-container__footer {
border-top: none;
@media screen and (max-width: $break-small) {
width: 93%;
}
footer {
padding: 10px 0;
}
}
@media screen and (max-width: $break-small) {
display: flex;
flex: auto;
max-width: 100%;
max-height: 100%;
align-items: center;
width: 90%;
margin-top: 10px;
}
}
&__add-network-form {
display: flex;
flex-direction: column;
max-height: 465px;
}
&__network-form-body {
display: grid;
grid-template-columns: 100%;
width: 95%;
&__view-only {
width: 100%;
}
}
&__add-network-form-body {
display: grid;
grid-template-columns: 48% 48%;
column-gap: 5%;
margin-top: 24px;
width: 100%;
}
&__networks-list {
flex: 0.5 0 auto;
max-width: 343px;
margin-top: 24px;
@media screen and (max-width: $break-small) {
flex: 1;
overflow-y: auto;
max-width: 100vw;
width: 100vw;
margin-top: 0;
}
}
&__networks-list-popup-footer {
width: 100%;
display: flex;
justify-content: center;
padding-top: 23px;
padding-bottom: 23px;
border-top: 1px solid var(--color-border-default);
.button {
width: 178px;
}
}
&__add-network-header-button-wrapper {
justify-content: center;
.button {
width: 138px;
padding: 10px;
}
@media screen and (max-width: $break-small) {
display: none;
}
}
&__networks-list--selection {
@media screen and (max-width: $break-small) {
display: none;
}
}
&__networks-list-item {
display: flex;
padding: 13px 0 13px 17px;
position: relative;
align-items: center;
.color-indicator {
&:hover {
cursor: pointer;
}
@media screen and (max-width: $break-small) {
margin: 0 4px 0 10px;
}
}
@media screen and (max-width: $break-small) {
padding: 20px 23px 21px 17px;
border-bottom: 1px solid var(--color-border-default);
max-width: 351px;
}
}
&__networks-list-item:last-of-type {
@media screen and (max-width: $break-small) {
border-bottom: none;
}
}
&__networks-list-name {
@include Paragraph;
margin-left: 11px;
color: var(--color-text-alternative);
width: 70%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
&:hover {
cursor: pointer;
}
svg {
margin-left: 10px;
padding-top: 3px;
}
}
&__networks-list-arrow {
display: none;
@media screen and (max-width: $break-small) {
display: block;
right: 10px;
cursor: pointer;
position: absolute;
margin: 0 5px;
[dir='rtl'] & {
transform: rotate(180deg);
}
}
}
&__networks-list-name--selected {
font-weight: bold;
color: var(--color-text-default);
}
&__networks-list-name--disabled {
font-weight: 300;
color: var(--color-text-muted);
}
&__network-form-footer {
display: flex;
flex-flow: row nowrap;
padding: 0.75rem 0;
width: 95%;
@media screen and (max-width: $break-small) {
width: 93%;
}
.btn-secondary {
margin-right: 0.375rem;
}
.btn-primary {
margin-left: 0.375rem;
}
.btn-danger {
margin-right: 3.75rem;
}
}
&__add-network-form-footer {
display: flex;
flex-flow: row;
padding: 0.75rem 0;
width: 60%;
.btn-secondary {
margin-right: 0.5rem;
}
.btn-primary {
margin-left: 0.5rem;
}
}
}