mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 00:28:06 +01:00
d589d2dec0
* Create RTL stylesheets using `gulp-rtl` * Handle RTL stylesheet special cases Certain blocks of Sass were set to bypass "rtlcss" using ignore comments. Certain icons had to be flipped 180 degrees. * Switch stylesheets when locale changes A second stylesheet has been added to each HTML page for use with right-to-left locales. It is disabled by default. It is enabled on startup if a RTL locale is set, and when switching to a RTL locale. Similarly the LTR stylesheet is disabled when a RTL locale is used. Unfortunately there is an unpleasant flash of unstyled content when switching between a LTR and a RTL locale. There is also a slightly longer page load time when using a RTL locale (<1s difference). We couldn't think of an easy way to avoid these problems. * Set `dir="auto"` as default on `TextFields`
229 lines
4.1 KiB
SCSS
229 lines
4.1 KiB
SCSS
.networks-tab {
|
|
&__content {
|
|
margin-top: 24px;
|
|
display: flex;
|
|
height: 100%;
|
|
max-width: 739px;
|
|
justify-content: space-between;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
margin-top: 0px;
|
|
}
|
|
}
|
|
|
|
&__body {
|
|
padding-right: 24px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&__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;
|
|
position: absolute;
|
|
margin-left: 10px;
|
|
|
|
[dir='rtl'] & {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&__network-form {
|
|
flex: 0.5 0 auto;
|
|
max-width: 343px;
|
|
max-height: 465px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
|
|
.page-container__footer {
|
|
border-top: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
width: 93%;
|
|
}
|
|
|
|
header {
|
|
padding: 10px 0px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: flex;
|
|
flex: auto;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
&__network-form-row {
|
|
@media screen and (max-width: 575px) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 93%;
|
|
}
|
|
}
|
|
|
|
&__network-form-label {
|
|
font-family: Roboto;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #000000;
|
|
}
|
|
|
|
&__networks-list {
|
|
flex: 0.5 0 auto;
|
|
max-width: 343px;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
max-width: 100vw;
|
|
width: 100vw;
|
|
overflow-y: scroll;
|
|
}
|
|
}
|
|
|
|
&__add-network-button-wrapper {
|
|
display: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: flex;
|
|
padding-top: 19px;
|
|
padding-bottom: 23px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-top: 1px solid #D8D8D8;
|
|
|
|
.button {
|
|
width: 178px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__add-network-header-button-wrapper {
|
|
justify-content: center;
|
|
|
|
.button {
|
|
width: 138px;
|
|
padding: 10px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__networks-list--selection {
|
|
@media screen and (max-width: 575px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__networks-list-item {
|
|
display: flex;
|
|
padding: 13px 0px 13px 17px;
|
|
position: relative;
|
|
|
|
.menu-icon-circle {
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 575px) {
|
|
padding: 20px 23px 21px 17px;
|
|
border-bottom: 1px solid #D8D8D8;
|
|
}
|
|
}
|
|
|
|
&__networks-list-item:last-of-type {
|
|
@media screen and (max-width: 575px) {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
&__networks-list-name {
|
|
margin-left: 11px;
|
|
font-family: Roboto;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 16px;
|
|
line-height: 23px;
|
|
color: #6A737D;
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&__networks-list-arrow {
|
|
display: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: block;
|
|
background-image: url('/images/caret-right.svg');
|
|
width: 24px;
|
|
height: 24px;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
right: 10px;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 24px;
|
|
|
|
[dir='rtl'] & {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&__networks-list-name--selected {
|
|
font-weight: bold;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
.network-form {
|
|
&__footer {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
margin: .75rem 0;
|
|
|
|
.btn-default {
|
|
margin-right: .375rem;
|
|
}
|
|
|
|
.btn-secondary {
|
|
margin-left: .375rem;
|
|
}
|
|
|
|
.btn-danger {
|
|
margin-right: 3.75rem;
|
|
}
|
|
}
|
|
}
|