A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/pages/confirm-approve/confirm-approve-content/index.scss

390 lines
6.0 KiB

.confirm-approve-content {
display: flex;
flex-flow: column;
align-items: center;
width: 100%;
font-style: normal;
&__icon-display-content {
display: flex;
height: 51px;
width: 65%;
margin-top: 16px;
padding: 12px 12px 14px 12px;
border: 1px solid $ui-1;
box-sizing: border-box;
border-radius: 100px;
align-items: center;
position: relative;
}
&__metafoxlogo,
&__siteinfo {
position: absolute;
}
&__siteinfo {
left: 39px;
}
&__address-display-content {
display: flex;
height: 27px;
width: 50%;
padding: 12px 12px 14px 12px;
background-color: $ui-1;
border-radius: 100px;
align-items: center;
}
&__siteimage-identicon {
width: 33px;
height: 33px;
border: solid #fff;
}
&__address-identicon {
margin: 4px 8px 0 4px;
}
&__copy-address,
&__etherscan-link {
padding: 0 0 0 8px;
}
&__etherscan-link {
img {
width: 9px;
height: 9px;
}
}
.app-header__logo-container {
margin-right: 0;
}
.app-header__metafox-logo--icon {
height: 33px;
width: 33px;
}
&__full-tx-content {
display: flex;
flex-flow: column;
align-items: center;
max-width: 100%;
font-style: normal;
}
&__card-wrapper {
width: 100%;
}
&__title {
@include H3;
width: 100%;
display: flex;
justify-content: center;
text-align: center;
margin-top: 22px;
padding-left: 24px;
padding-right: 24px;
}
&__description {
@include H6;
margin-top: 16px;
margin-bottom: 16px;
color: #6a737d;
text-align: center;
padding-left: 24px;
padding-right: 24px;
}
&__card,
&__card--no-border {
display: flex;
flex-flow: column;
border-bottom: 1px solid #d2d8dd;
position: relative;
padding-left: 24px;
padding-right: 24px;
&__bold-text {
@include H6;
font-weight: bold;
}
&__thin-text {
@include H7;
color: #6a737d;
}
}
&__card--no-border {
border-bottom: none;
}
&__card-header {
display: flex;
flex-flow: row;
margin-top: 20px;
align-items: center;
position: relative;
&__symbol {
width: auto;
}
&__symbol--aligned {
width: 100%;
}
&__title,
&__title-value {
@include H6;
font-weight: bold;
}
&__title {
width: 100%;
margin-left: 16px;
}
&__title--aligned {
margin-left: 27px;
position: absolute;
width: auto;
}
}
&__card-content {
margin-top: 6px;
margin-bottom: 12px;
}
&__card-content--aligned {
margin-left: 42px;
}
&__transaction-total-symbol {
width: 16px;
display: flex;
justify-content: center;
align-items: center;
height: 16px;
&__x {
display: flex;
justify-content: center;
align-items: center;
div {
width: 22px;
height: 2px;
background: $primary-blue;
position: absolute;
}
div:first-of-type {
transform: rotate(45deg);
}
div:last-of-type {
transform: rotate(-45deg);
}
}
&__circle {
width: 14px;
height: 14px;
border: 2px solid $primary-blue;
border-radius: 50%;
background: white;
position: absolute;
}
}
Connect Ledger via WebHID (#12411) * Connect ledger via webhid if that option is available * Explicitly setting preference for webhid * Use ledgerTransportType enum instead of booleans for ledger live and webhid preferences * Use single setLEdgerTransport preference methods and property * Temp * Lint fix * Unit test fix * Remove async keyword from setLedgerTransportPreference function definition in preferences controller * Fix ledgelive setting toggle logic * Migrate useLedgerLive preference property to ledgerTransportType * Use shared constants for ledger transport type enums * Use constant for ledger usb vendor id * Use correct property to check if ledgerLive preference is set when deciding whether to ask for webhid connection * Update eth-ledger-bridge-keyring to v0.9.0 * Only show ledger live transaction helper messages if using ledger live * Only show ledger live part of tutorial if ledger live setting is on * Fix ledger related prop type errors * Explicitly use u2f enum instead of empty string as a transport type; default transport type to webhid if available; use constants for u2f and webhid * Cleanup * Wrap ledger webhid device request in try/catch * Clean up * Lint fix * Ensure user can easily connect their ledger wallet when they need to. * Fix locales * Fix/improve locales changes * Remove unused isFirefox property from confirm-transaction-base.container.js * Disable transaction and message signing confirmation if ledger webhid requires connection * Ensure translation keys for ledger connection options in settings dropdown can be properly detected by verify-locales * Drop .component from ledger-instruction-field file name * Move renderLedgerLiveStep to module scope * Remove ledgerLive from function and message names in ledger-instruction-field * Wrap ledger connection logic in ledger-instruction-field in try catch * Clean up signature-request.component.js * Check whether the signing address, and not the selected address, is a ledger account in singature-request.container * Ensure ledger instructions and webhid connection button are shown on signature-request-original signatures * Improve webhid selection handling in select-ledger-transport-type onChange handler * Move metamask redux focused ledger selectors to metamask duck * Lint fix * Use async await in checkWebHidStatusRef.current * Remove unnecessary use of ref in ledger-instruction-field.js * Lint fix * Remove unnecessary try/catch in ledger-instruction-field.js * Check if from address, not selected address, is from a ledger account in confirm-approve * Move findKeyringForAddress to metamask duck * Fix typo in function name * Ensure isEqualCaseInsensitive handles possible differences in address casing * Fix Learn More link size in advanced settings tab * Update app/scripts/migrations/066.js Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Update ui/pages/settings/advanced-tab/advanced-tab.component.test.js Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Add jsdoc comments for new selectors * Use jest.spyOn for mocking navigator in ledger webhid migration tests * Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType * Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType * Fix font size of link in ledger connection description in advanced settings * Fix return type in setLedgerTransportPreference comment * Clean up connectHardware code for webhid connection in actions.js * Update app/scripts/migrations/066.test.js Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Update ui/ducks/metamask/metamask.js Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Add migration test for when useLedgerLive is true in a browser that supports webhid * Lint fix * Fix inline-link size Co-authored-by: Mark Stacey <markjstacey@gmail.com>
3 years ago
&__ledger-instruction-wrapper {
padding-left: 10px;
padding-right: 10px;
}
&__transaction-details-content {
display: flex;
flex-flow: row;
justify-content: space-between;
.confirm-approve-content__small-text {
width: 160px;
}
&__fee {
display: flex;
flex-flow: column;
align-items: flex-end;
text-align: right;
}
&__primary-fee {
@include H4;
font-weight: bold;
color: #000;
}
&__secondary-fee {
@include H6;
font-weight: normal;
color: #8c8e94;
}
}
&__view-full-tx-button-wrapper {
display: flex;
flex-flow: row;
margin-bottom: 16px;
justify-content: center;
i {
margin-left: 6px;
display: flex;
color: #3099f2;
align-items: center;
}
}
&__view-full-tx-button {
display: flex;
flex-flow: row;
}
&__edit-submission-button-container {
display: flex;
flex-flow: row;
padding-top: 15px;
padding-bottom: 30px;
border-bottom: 1px solid #d2d8dd;
width: 100%;
justify-content: center;
padding-left: 24px;
padding-right: 24px;
}
&__large-text {
@include H4;
color: #24292e;
}
&__medium-link-text {
@include H6;
font-weight: 500;
color: $primary-blue;
}
&__medium-text,
&__label {
@include H6;
color: #24292e;
}
&__label {
font-weight: bold;
margin-right: 4px;
}
&__small-text,
&__small-blue-text,
&__info-row {
@include H7;
color: #6a737d;
}
&__small-blue-text {
color: $primary-blue;
}
&__info-row {
display: flex;
justify-content: space-between;
margin-bottom: 6px;
}
&__data,
&__permission {
width: 100%;
}
&__permission {
.flex-row {
margin-top: 14px;
}
}
&__data {
&__data-block {
overflow-wrap: break-word;
margin-right: 16px;
margin-top: 12px;
}
}
&__footer {
display: flex;
align-items: flex-end;
margin-top: 16px;
padding-left: 34px;
padding-right: 24px;
.confirm-approve-content__small-text {
margin-left: 16px;
}
}
&__custom-nonce-warning {
width: 100%;
height: 30px;
}
&__custom-nonce-content {
display: flex;
height: 49px;
margin-top: 5px;
margin-bottom: 6px;
padding: 12px 12px 14px 12px;
border: 1px solid #bbc0c5;
box-sizing: border-box;
border-radius: 6px;
align-items: center;
}
&__custom-nonce-header {
flex: 1;
align-items: center;
}
&__custom-nonce-value {
flex: 0;
}
& &__custom-nonce-edit {
@include H7;
width: auto;
}
}
.confirm-approve-content--full {
height: auto;
}