1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 05:12:18 +01:00
metamask-extension/ui/app/pages/confirm-approve/confirm-approve-content/index.scss
Dan J Miller 2673eef3c4
Redesign approve screen (#7271)
* Redesign approve screen

* Add translations to approve screen components

* Show account in header of approve screen

* Use state prop bool for unlimited vs custom check in edit-approval-permission

* Set option to custom on input change in edit-approval-permission

* Allow setting of approval amount to unlimited in edit-approval-permission

* Fix height of confirm-approval popup

* Ensure decimals prop passted to confirm-approve.component is correct type

* Ensure first param passed to calcTokenValue in confirm-approve.util is the correct type

* Fix e2e test of permission editing

* Remove unused code from edit-approval-permission.container
2019-11-05 11:43:48 -03:30

307 lines
5.0 KiB
SCSS

.confirm-approve-content {
display: flex;
flex-flow: column;
align-items: center;
width: 100%;
height: 100%;
font-family: Roboto;
font-style: normal;
&__identicon-wrapper {
display: flex;
width: 100%;
justify-content: center;
margin-top: 22px;
padding-left: 24px;
padding-right: 24px;
}
&__full-tx-content {
display: flex;
flex-flow: column;
align-items: center;
width: 390px;
font-family: Roboto;
font-style: normal;
padding-left: 24px;
padding-right: 24px;
}
&__card-wrapper {
width: 100%;
}
&__title {
font-weight: normal;
font-size: 24px;
line-height: 34px;
width: 100%;
display: flex;
justify-content: center;
text-align: center;
margin-top: 22px;
padding-left: 24px;
padding-right: 24px;
}
&__description {
font-weight: normal;
font-size: 14px;
line-height: 20px;
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 {
font-weight: bold;
font-size: 14px;
line-height: 20px;
}
&__thin-text {
font-weight: normal;
font-size: 12px;
line-height: 17px;
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 {
font-weight: bold;
font-size: 14px;
line-height: 20px;
}
&__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: #037DD6;
position: absolute;
}
div:first-of-type {
transform: rotate(45deg);
}
div:last-of-type {
transform: rotate(-45deg);
}
}
&__circle {
width: 14px;
height: 14px;
border: 2px solid #037DD6;
border-radius: 50%;
background: white;
position: absolute;
}
}
&__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 {
font-weight: bold;
font-size: 18px;
line-height: 25px;
color: #000000;
}
&__secondary-fee {
font-weight: normal;
font-size: 14px;
line-height: 20px;
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 {
font-size: 18px;
line-height: 25px;
color: #24292E;
}
&__medium-link-text {
font-size: 14px;
line-height: 20px;
font-weight: 500;
color: #037DD6;
}
&__medium-text,
&__label {
font-weight: normal;
font-size: 14px;
line-height: 20px;
color: #24292E;
}
&__label {
font-weight: bold;
margin-right: 4px;
}
&__small-text, &__small-blue-text, &__info-row {
font-weight: normal;
font-size: 12px;
line-height: 17px;
color: #6A737D;
}
&__small-blue-text {
color: #037DD6;
}
&__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;
}
}
}
.confirm-approve-content--full {
height: auto;
}