mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +01:00
beb6047384
This reverts commit f30d261e69
.
The custom HD path option was found to be unsafe to use, because the
displayed list of accounts would differ depending on which application
was open on the Ledger device. Essentially Ledger was accepting invalid
inputs, and returning junk responses.
This was too dangerous to ship, as it could leave users with an account
that they can't reliably recover. If we don't know how the derivation
is happening, then allowing this import puts our users at risk of
losing funds.
We can re-introduce this functionality after adding validation to
ensure that we only allow inputs that are handled correctly by Ledger.
362 lines
5.1 KiB
SCSS
362 lines
5.1 KiB
SCSS
.hw-tutorial {
|
|
width: 375px;
|
|
border-top: 1px solid #d2d8dd;
|
|
border-bottom: 1px solid #d2d8dd;
|
|
overflow: visible;
|
|
display: block;
|
|
padding: 15px 30px;
|
|
}
|
|
|
|
.hw-connect {
|
|
width: 100%;
|
|
|
|
&__header {
|
|
&__title {
|
|
@include H3;
|
|
|
|
margin-top: 5px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
&__msg {
|
|
@include H6;
|
|
|
|
color: #9b9b9b;
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
&__btn-wrapper {
|
|
flex: 1;
|
|
flex-direction: row;
|
|
display: flex;
|
|
}
|
|
|
|
&__connect-btn {
|
|
width: 315px;
|
|
margin: 20px;
|
|
}
|
|
|
|
&__connect-btn.disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&__btn {
|
|
background: #fbfbfb;
|
|
border: 1px solid #e5e5e5;
|
|
height: 100px;
|
|
width: 150px;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 5px;
|
|
padding: 0;
|
|
|
|
&__img {
|
|
width: 95px;
|
|
}
|
|
}
|
|
|
|
&__btn.selected {
|
|
border-color: #00a8ee;
|
|
width: 149px;
|
|
}
|
|
|
|
&__btn:first-child {
|
|
margin-right: 15px;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
&__btn:last-child {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
&__hdPath {
|
|
@include H6;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin-top: 15px;
|
|
margin-bottom: 30px;
|
|
|
|
&__title {
|
|
display: flex;
|
|
margin-top: 10px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
&__select {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
&__learn-more {
|
|
@include H6;
|
|
|
|
margin-top: 15px;
|
|
color: #5b5d67;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
|
|
&__arrow {
|
|
transform: rotate(90deg);
|
|
display: block;
|
|
text-align: center;
|
|
height: 30px;
|
|
margin: 0 auto 10px;
|
|
}
|
|
}
|
|
|
|
&__title {
|
|
@include H4;
|
|
|
|
padding-top: 10px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
&__unlock-title {
|
|
@include H3;
|
|
|
|
padding-top: 10px;
|
|
font-weight: 400;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
&__msg {
|
|
@include H6;
|
|
|
|
color: #9b9b9b;
|
|
margin-top: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
&__error {
|
|
color: #f7861c;
|
|
margin: 20px 20px 10px;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
&__link {
|
|
color: #2f9ae0;
|
|
}
|
|
|
|
&__footer {
|
|
&__title {
|
|
@include H4;
|
|
|
|
padding-top: 15px;
|
|
padding-bottom: 12px;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
}
|
|
|
|
&__msg {
|
|
@include H6;
|
|
|
|
color: #9b9b9b;
|
|
margin-top: 12px;
|
|
margin-bottom: 27px;
|
|
width: 100%;
|
|
display: block;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
&__link {
|
|
color: #2f9ae0;
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
&__get-hw {
|
|
width: 100%;
|
|
padding-bottom: 10px;
|
|
padding-top: 10px;
|
|
|
|
&__msg {
|
|
@include H6;
|
|
|
|
color: #9b9b9b;
|
|
}
|
|
|
|
&__link {
|
|
@include H4;
|
|
|
|
text-align: center;
|
|
color: #2f9ae0;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&__step-asset {
|
|
margin: 0 auto 20px;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.hw-account-list {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-flow: column;
|
|
width: 100%;
|
|
|
|
&__title_wrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
}
|
|
|
|
&__title {
|
|
@include H5;
|
|
|
|
margin-bottom: 23px;
|
|
align-self: flex-start;
|
|
color: $scorpion;
|
|
font-weight: bold;
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
&__device {
|
|
@include Paragraph;
|
|
|
|
margin-bottom: 23px;
|
|
align-self: flex-end;
|
|
color: $scorpion;
|
|
display: flex;
|
|
}
|
|
|
|
&__item {
|
|
@include Paragraph;
|
|
|
|
flex-direction: row;
|
|
display: flex;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
&__item:nth-of-type(even) {
|
|
background-color: #fbfbfb;
|
|
}
|
|
|
|
&__item:nth-of-type(odd) {
|
|
background: rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
&__item:hover {
|
|
background-color: rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
&__item__index {
|
|
display: flex;
|
|
width: 24px;
|
|
}
|
|
|
|
&__item__radio {
|
|
display: flex;
|
|
flex: 1;
|
|
|
|
input {
|
|
padding: 10px;
|
|
margin-top: 13px;
|
|
}
|
|
}
|
|
|
|
&__item__label {
|
|
display: flex;
|
|
flex: 1;
|
|
padding-left: 10px;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
&__item__balance {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
&__item__link {
|
|
display: flex;
|
|
margin-top: 13px;
|
|
}
|
|
|
|
&__item__link img {
|
|
width: 15px;
|
|
height: 15px;
|
|
}
|
|
}
|
|
|
|
.hw-list-pagination {
|
|
display: flex;
|
|
align-self: flex-end;
|
|
margin-top: 10px;
|
|
|
|
&__button {
|
|
@include H6;
|
|
|
|
background: #fff;
|
|
height: 19px;
|
|
display: flex;
|
|
color: #33a4e7;
|
|
border: none;
|
|
min-width: 46px;
|
|
margin-right: 0;
|
|
margin-left: 16px;
|
|
padding: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
}
|
|
|
|
.new-external-account-form {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
padding: 15px 30px 0;
|
|
|
|
&.unsupported-browser {
|
|
height: 210px;
|
|
overflow: auto;
|
|
scrollbar-width: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&.account-list {
|
|
height: auto;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
&__buttons {
|
|
margin-top: 39px;
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
&__button:not(:last-child) {
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
|
|
.hw-forget-device-container {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
padding: 22px;
|
|
|
|
a {
|
|
@include H6;
|
|
|
|
color: #2f9ae0;
|
|
cursor: pointer;
|
|
}
|
|
}
|