1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/pages/settings/networks-tab/index.scss
George Marshall 8fcbebc546
Update design tokens library from 1.5 to 1.6 WIP (#14732)
* Updating account menu icon color

* Updating design-tokens and making appropriate updates to extension styles

* Adding more deprecated tags to colors

* Adding spinner and removing todo comment

* Remove comment

* Updates

* Updating snapshots

* More color and ui updates

* reverting transition change
2022-05-25 08:35:36 -07:00

333 lines
6.0 KiB
SCSS

@use "design-system";
.networks-tab {
&__imageclose {
cursor: pointer;
color: var(--color-icon-default);
}
&__content {
display: flex;
height: 100%;
max-width: 779px;
justify-content: space-between;
&__custom-image {
border: 1px solid var(--color-border-default);
margin-inline-start: 8px;
}
&__check-icon {
margin-inline-end: 10px;
color: var(--color-success-default);
&__transparent {
color: transparent;
width: 16px;
margin-inline-end: 10px;
}
}
&__icon-with-fallback {
padding: 0 1px 2px 2px;
color: var(--color-text-alternative);
margin-inline-start: 8px;
@each $variant, $color in design-system.$color-map {
&--color-#{$variant} {
background: var($color);
color: var(--color-primary-inverse); // TODO: design-tokens needs network colors
}
}
}
@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;
max-width: 400px;
margin-top: 24px;
padding-inline-start: 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;
padding: 0;
}
}
&__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: 350px;
border-right: 1px solid var(--color-border-muted);
&__custom-search-network {
margin-top: 24px;
}
.MuiInput-input {
font-size: 14px;
@media screen and (max-width: $break-small) {
font-size: 12px;
}
}
.MuiTextField-root {
padding-inline-end: 16px;
#search-networks-helper-text {
color: var(--color-text-alternative);
}
@media screen and (max-width: $break-small) {
padding: 0 24px 0 24px;
}
}
&__label {
@media screen and (max-width: $break-small) {
margin-inline-start: 58px;
}
}
@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: 12px 16px 12px 0;
position: relative;
align-items: center;
width: 311px;
.color-indicator {
&:hover {
cursor: pointer;
}
@media screen and (max-width: $break-small) {
margin: 0 4px 0 20px;
}
}
@media screen and (max-width: $break-small) {
padding: 12px 0 12px 24px;
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;
flex-grow: 1;
&:hover {
cursor: pointer;
}
svg {
margin-inline-start: 15px;
padding-top: 3px;
}
@media screen and (max-width: $break-small) {
color: var(--color-text-default);
}
}
&__networks-list-name--selected {
font-weight: bold;
color: var(--color-text-default);
@media screen and (max-width: $break-small) {
font-weight: normal;
color: var(--color-text-default);
}
}
&__networks-list-name--disabled {
color: var(--color-text-muted);
@media screen and (max-width: $break-small) {
color: var(--color-text-default);
}
}
&__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--rounded {
white-space: nowrap;
}
.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;
}
}
}