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`
102 lines
1.8 KiB
SCSS
102 lines
1.8 KiB
SCSS
.confirm-seed-phrase {
|
|
&__back-button {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
&__shuffled-seed-words {
|
|
max-width: 575px;
|
|
}
|
|
|
|
&__seed-word {
|
|
display: inline-flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 18px;
|
|
width: 128px;
|
|
height: 41px;
|
|
margin: 4px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
cursor: move;
|
|
|
|
&--shuffled {
|
|
cursor: pointer;
|
|
margin: 6px;
|
|
}
|
|
|
|
&--selected {
|
|
color: $white;
|
|
}
|
|
|
|
&--dragging {
|
|
margin: 0;
|
|
}
|
|
|
|
&--empty {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
cursor: default;
|
|
|
|
&:hover,
|
|
&:active {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
cursor: default;
|
|
box-shadow: none !important;
|
|
}
|
|
}
|
|
|
|
&--hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
&--drop-hover {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
color: transparent;
|
|
}
|
|
|
|
@media screen and (max-width: 575px) {
|
|
font-size: .875rem;
|
|
padding: 6px 18px;
|
|
}
|
|
}
|
|
|
|
&__selected-seed-words {
|
|
/*rtl:ignore*/
|
|
direction: ltr;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
min-height: 161px;
|
|
max-width: 575px;
|
|
border: 1px solid #CDCDCD;
|
|
border-radius: 6px;
|
|
background-color: $white;
|
|
margin: 24px 0 36px;
|
|
padding: 12px;
|
|
|
|
&__pending-seed {
|
|
display: none;
|
|
}
|
|
|
|
&__selected-seed {
|
|
display: inline-flex;
|
|
|
|
&:hover {
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
}
|
|
}
|
|
|
|
&--dragging {
|
|
.confirm-seed-phrase__selected-seed-words__pending-seed {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.confirm-seed-phrase__selected-seed-words__selected-seed {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|