mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
b9d9112b97
* dealt with most of the problems in the Create Account dialog * Fixed "newAccountNumberName" localizations * In another language, don't allow accounts named, for instance, Cuenta 3 * Editing an account name later now follows the same rules * Fixing lint errors * Responding to the review by @adonesky1 * Worked with @montelaidev to alter the RegExp, in order to catch spaces before and after the account name * Fixed line breaks for eslint
124 lines
2.1 KiB
SCSS
124 lines
2.1 KiB
SCSS
@import 'connect-hardware/index';
|
|
@import 'import-account/index';
|
|
|
|
.new-account {
|
|
width: 375px;
|
|
background-color: var(--color-background-default);
|
|
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
|
|
z-index: 25;
|
|
height: unset;
|
|
overflow: auto;
|
|
scrollbar-width: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
@include screen-sm-min {
|
|
position: absolute;
|
|
}
|
|
|
|
&__header {
|
|
display: flex;
|
|
flex-flow: column;
|
|
border-bottom: 1px solid var(--color-border-muted);
|
|
}
|
|
|
|
&__title {
|
|
@include H2;
|
|
|
|
color: var(--color-text-alternative);
|
|
font-weight: 500;
|
|
margin-top: 22px;
|
|
margin-left: 29px;
|
|
}
|
|
|
|
&__tabs {
|
|
margin-left: 22px;
|
|
display: flex;
|
|
margin-top: 10px;
|
|
|
|
&__tab {
|
|
@include H4;
|
|
|
|
height: 54px;
|
|
padding: 15px 10px;
|
|
color: var(--color-text-muted);
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__tab:hover {
|
|
color: var(--color-text-default);
|
|
border-bottom: none;
|
|
}
|
|
|
|
&__selected {
|
|
color: var(--color-primary-default);
|
|
border-bottom: 3px solid var(--color-primary-default);
|
|
cursor: initial;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.new-account-create-form {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
padding: 30px;
|
|
|
|
&__input-label {
|
|
@include Paragraph;
|
|
|
|
color: var(--color-text-alternative);
|
|
align-self: flex-start;
|
|
}
|
|
|
|
&__input {
|
|
@include Paragraph;
|
|
|
|
height: 54px;
|
|
width: 315.84px;
|
|
border: 1px solid var(--color-border-muted);
|
|
border-radius: 4px;
|
|
background-color: var(--color-background-default);
|
|
color: var(--color-text-default);
|
|
margin-top: 15px;
|
|
padding: 0 20px;
|
|
|
|
&__error {
|
|
border: 1px solid var(--color-error-alternative);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--color-text-muted);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&__error {
|
|
@include H7;
|
|
|
|
left: 8px;
|
|
color: var(--color-error-default);
|
|
}
|
|
|
|
&__error-amount {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
&__buttons {
|
|
margin-top: 22px;
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
&__button {
|
|
width: 150px;
|
|
min-width: initial;
|
|
}
|
|
}
|