mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +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`
80 lines
1.3 KiB
SCSS
80 lines
1.3 KiB
SCSS
.tab-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.tab-bar__tab {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: flex-start;
|
|
min-width: 0;
|
|
flex: 0 0 auto;
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
padding: 16px 24px;
|
|
opacity: .5;
|
|
transition: opacity 200ms ease-in-out;
|
|
|
|
@media screen and (min-width: 576px) {
|
|
&:hover {
|
|
opacity: .4;
|
|
}
|
|
|
|
&:active {
|
|
opacity: .6;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 575px) {
|
|
font-size: 18px;
|
|
padding: 24px;
|
|
border-bottom: 1px solid $alto;
|
|
opacity: 1;
|
|
}
|
|
|
|
&__content {
|
|
flex: 1 1 auto;
|
|
width: 0;
|
|
|
|
&__description {
|
|
display: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 300;
|
|
margin-top: 8px;
|
|
min-height: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__caret {
|
|
display: none;
|
|
|
|
@media screen and (max-width: 575px) {
|
|
display: block;
|
|
background-image: url('/images/caret-right.svg');
|
|
width: 36px;
|
|
height: 36px;
|
|
opacity: .5;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
|
|
[dir='rtl'] & {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&--active {
|
|
opacity: 1 !important;
|
|
}
|
|
}
|
|
|
|
.tab-bar__grow-tab {
|
|
flex-grow: 1;
|
|
}
|