mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
d9924ca771
* Update fee card designs to show savings and MM fee
css touch up
More semantic html and remove unnecessary container wrapper
Update message for case when there are no savings, in new swaps fee card designs
Improve display of tilde in savings designs
* Ensure terms of service is shown when insufficient eth warning is shown on view-quote screen
* Logic simplification in fee-card.js
* Better center info tooltip icons in fee-card
* Add comment about use of \!important in fee card css
* Use container class property on info tooltip in fee card
* Remove function call that was made redundant with 980b14089
but not removed during rebase
245 lines
4.0 KiB
SCSS
245 lines
4.0 KiB
SCSS
.fee-card {
|
|
@include H7;
|
|
|
|
&__savings-and-quotes-header {
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
}
|
|
|
|
&__savings-and-quotes-header-first-part,
|
|
&__savings-and-quotes-header-second-part,
|
|
&__savings-and-quotes-header-third-part {
|
|
height: 39px;
|
|
background: $Blue-000;
|
|
border: 1px solid $Blue-500;
|
|
}
|
|
|
|
&__savings-and-quotes-header-first-part {
|
|
width: 22px;
|
|
border-top-left-radius: 8px;
|
|
border-bottom: none;
|
|
border-right: none;
|
|
}
|
|
|
|
&__savings-and-quotes-header-second-part {
|
|
width: 18px;
|
|
border: none;
|
|
|
|
&--top-border {
|
|
border-top: 1px solid $Blue-500;
|
|
}
|
|
}
|
|
|
|
&__savings-and-quotes-header-third-part {
|
|
width: 271px;
|
|
border-top-right-radius: 8px;
|
|
border-bottom: none;
|
|
border-left: none;
|
|
}
|
|
|
|
&__pig-icon-container {
|
|
position: absolute;
|
|
left: 14.5px;
|
|
bottom: 4px;
|
|
}
|
|
|
|
&__savings-and-quotes-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 234px;
|
|
width: 100%;
|
|
position: absolute;
|
|
left: 58px;
|
|
|
|
&--align-left {
|
|
left: 16px;
|
|
max-width: 272px;
|
|
}
|
|
}
|
|
|
|
&__savings-text {
|
|
@include H6;
|
|
|
|
font-weight: bold;
|
|
color: $Blue-500;
|
|
}
|
|
|
|
&__quote-link-container {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__quote-link-text {
|
|
@include H7;
|
|
|
|
color: $Blue-500;
|
|
}
|
|
|
|
&__caret-right {
|
|
color: $Blue-500;
|
|
width: 6px;
|
|
height: 6px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-left: 6px;
|
|
|
|
i {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
&__main {
|
|
border: 1px solid $Blue-500;
|
|
border-bottom-left-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
width: 100%;
|
|
max-width: 311px;
|
|
padding: 16px 16px 12px 16px;
|
|
}
|
|
|
|
&__row-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
justify-content: space-between;
|
|
|
|
&:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
|
|
div {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
&__row-header-text,
|
|
&__row-header-text--bold {
|
|
margin-right: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__row-header-text--bold {
|
|
color: $Black-100;
|
|
}
|
|
|
|
&__row,
|
|
&__top-bordered-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
&__top-bordered-row {
|
|
border-top: 1px solid #bbc0c5;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
&__row-label {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
img {
|
|
height: 10px;
|
|
width: 10px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&__info-tooltip-container {
|
|
height: 10px;
|
|
width: 10px;
|
|
justify-content: center;
|
|
|
|
div {
|
|
// Needed to override the style property added by the react-tippy library
|
|
display: flex !important;
|
|
height: 10px;
|
|
}
|
|
}
|
|
|
|
&__info-tooltip-paragraph {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
&__info-tooltip-paragraph:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&__row-fee {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&__link {
|
|
color: $Blue-500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__total-box {
|
|
border-top: 1px solid $Grey-100;
|
|
padding: 12px 16px 16px 16px;
|
|
}
|
|
|
|
&__total-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
&__total-secondary {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
font-weight: bold;
|
|
color: $Grey-500;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
&__row-header-secondary,
|
|
&__row-header-secondary--bold {
|
|
color: $Grey-500;
|
|
}
|
|
|
|
&__row-header-secondary,
|
|
&__row-header-secondary--bold {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
&__row-header-primary {
|
|
color: $Grey-500;
|
|
}
|
|
|
|
&__row-header-primary--bold {
|
|
color: $Black-100;
|
|
}
|
|
|
|
&__row-header-text--bold,
|
|
&__row-header-secondary--bold,
|
|
&__row-header-primary--bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&__bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&__tilde {
|
|
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
margin-right: -3.5px;
|
|
}
|
|
}
|
|
|
|
.info-tooltip {
|
|
> div {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 4px;
|
|
}
|
|
}
|