1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 21:00:13 +01:00
metamask-extension/ui/app/pages/first-time-flow/index.scss
Nick Doiron d589d2dec0 Right-to-left CSS (using module for conversion) (#7072)
* 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`
2019-09-03 14:47:54 -03:00

166 lines
2.7 KiB
SCSS

@import 'welcome/index';
@import 'select-action/index';
@import 'seed-phrase/index';
@import 'end-of-flow/index';
@import 'metametrics-opt-in/index';
.first-time-flow {
width: 100%;
background-color: $white;
display: flex;
justify-content: center;
&__wrapper {
@media screen and (min-width: $break-large) {
max-width: 742px;
display: flex;
flex-direction: column;
width: 100%;
margin-top: 2%;
}
.app-header__metafox-logo {
margin-bottom: 40px;
@media screen and (max-width: $break-small) {
margin-bottom: 0px;
}
}
}
&__form {
display: flex;
flex-direction: column;
}
&__create-back {
margin-bottom: 16px;
}
&__header {
font-size: 2.5rem;
margin-bottom: 24px;
color: black;
}
&__subheader {
margin-bottom: 16px;
}
&__input {
max-width: 350px;
}
&__textarea-wrapper {
margin-bottom: 8px;
display: inline-flex;
padding: 0;
position: relative;
min-width: 0;
flex-direction: column;
max-width: 350px;
}
&__textarea-label {
margin-bottom: 9px;
color: #1B344D;
font-size: 18px;
}
&__textarea {
/*rtl:ignore*/
direction: ltr;
font-size: 1rem;
font-family: Roboto;
height: 190px;
border: 1px solid #CDCDCD;
border-radius: 6px;
background-color: #FFFFFF;
padding: 16px;
margin-top: 8px;
}
&__breadcrumbs {
margin: 36px 0;
}
&__unique-image {
margin-bottom: 20px;
}
&__markdown {
border: 1px solid #979797;
border-radius: 8px;
background-color: $white;
height: 200px;
overflow-y: auto;
color: #757575;
font-size: .75rem;
line-height: 15px;
text-align: justify;
margin: 0;
padding: 16px 20px;
height: 30vh;
}
&__text-block {
margin-bottom: 24px;
color: black;
@media screen and (max-width: $break-small) {
margin-bottom: 16px;
font-size: .875rem;
}
}
&__button {
margin: 35px 0 14px;
width: 140px;
height: 44px;
}
&__checkbox-container {
display: flex;
align-items: center;
margin-top: 24px;
}
&__checkbox {
background: #FFFFFF;
border: 1px solid #CDCDCD;
box-sizing: border-box;
height: 34px;
width: 34px;
display: flex;
justify-content: center;
align-items: center;
&:hover {
border: 1.5px solid #2f9ae0;
}
.fa-check {
color: #2f9ae0
}
}
&__checkbox-label {
font-family: Roboto;
font-style: normal;
font-weight: normal;
line-height: normal;
font-size: 18px;
color: #939090;
margin-left: 18px;
}
&__link-text {
color: $curious-blue;
}
}