mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
961ad267df
* New setting tab * Add InfoTab * Add Advanced tab * Add Security Tab * Finish mobile view * Make new setting page responsive * Fix linter * Fix y scrolling * Update link in network dropdown * Fix e2e tests * Remove duplicate translation key * Resolve merge conflict * Only change settings header in popup view. * Place mobile-sync button in advanced-tab of settings
144 lines
2.4 KiB
SCSS
144 lines
2.4 KiB
SCSS
@import 'info-tab/index';
|
|
|
|
@import 'settings-tab/index';
|
|
|
|
.settings-page {
|
|
position: relative;
|
|
background: $white;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
|
|
&__header {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
padding: 12px 24px;
|
|
align-items: center;
|
|
border-bottom: 1px solid $alto;
|
|
flex: 0 0 auto;
|
|
|
|
&__title {
|
|
flex: 1 0 auto;
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
|
|
&__back-button {
|
|
display: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: block;
|
|
background-image: url('/images/caret-left-black.svg');
|
|
width: 18px;
|
|
height: 18px;
|
|
opacity: .5;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
margin-right: 16px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&__close-button::after {
|
|
content: '\00D7';
|
|
font-size: 40px;
|
|
color: $dusty-gray;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__content {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
height: auto;
|
|
overflow: auto;
|
|
|
|
&__tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
|
|
@media screen and (min-width: 576px) {
|
|
flex: 0 0 32%;
|
|
max-width: 210px;
|
|
border-right: 1px solid $alto;
|
|
}
|
|
}
|
|
|
|
&__modules {
|
|
overflow-y: auto;
|
|
flex: 1 1 auto;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__body {
|
|
padding: 12px 24px;
|
|
}
|
|
|
|
&__content-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 10px 0 20px;
|
|
}
|
|
|
|
&__content-item {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 5px;
|
|
min-height: 71px;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
height: initial;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
&--without-height {
|
|
height: initial;
|
|
}
|
|
}
|
|
|
|
&__content-label {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
&__content-description {
|
|
font-size: 14px;
|
|
color: $dusty-gray;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
&__content-item-col {
|
|
max-width: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
max-width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&--selected {
|
|
.settings-page {
|
|
&__content {
|
|
&__tabs {
|
|
@media screen and (max-width: 575px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__modules {
|
|
@media screen and (max-width: 575px) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|