1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

normalize deprecated itcss font styles (#9696)

This commit is contained in:
Brad Decker 2020-10-29 10:03:45 -05:00 committed by GitHub
parent fe69182056
commit 50728ed9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 90 additions and 69 deletions

View File

@ -42,9 +42,10 @@
} }
.network-indicator { .network-indicator {
@include H8;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 0.6em;
&__down-arrow { &__down-arrow {
height: 8px; height: 8px;
@ -58,16 +59,16 @@
} }
.fa-question-circle { .fa-question-circle {
font-size: $font-size-paragraph;
margin: 0 4px 0 6px; margin: 0 4px 0 6px;
font-size: 1rem;
flex: 0 0 auto; flex: 0 0 auto;
} }
} }
.network-name { .network-name {
@include H7;
padding: 0 4px; padding: 0 4px;
font-size: 12px;
line-height: 14px;
flex: 1 1 auto; flex: 1 1 auto;
color: $tundora; color: $tundora;
font-weight: 500; font-weight: 500;
@ -163,20 +164,20 @@
} }
.network-dropdown-title { .network-dropdown-title {
@include H4;
height: 25px; height: 25px;
width: 120px; width: 120px;
color: $white; color: $white;
font-size: 18px;
line-height: 25px;
text-align: center; text-align: center;
} }
.network-dropdown-content { .network-dropdown-content {
@include H6;
min-height: 36px; min-height: 36px;
width: 265px; width: 265px;
color: $dusty-gray; color: $dusty-gray;
font-size: 14px;
line-height: 18px;
} }
.network-caret { .network-caret {

View File

@ -39,8 +39,9 @@
} }
.send-screen input { .send-screen input {
@include H7;
width: 100%; width: 100%;
font-size: 12px;
} }
.send-eth-icon { .send-eth-icon {
@ -70,11 +71,11 @@
} }
.large-input { .large-input {
@include Paragraph;
border: 1px solid $dusty-gray; border: 1px solid $dusty-gray;
border-radius: 4px; border-radius: 4px;
margin: 4px 0 20px; margin: 4px 0 20px;
font-size: 16px;
line-height: 22.4px;
} }
.send-screen-gas-input { .send-screen-gas-input {
@ -92,22 +93,22 @@
} }
.send-screen-input-wrapper__error-message { .send-screen-input-wrapper__error-message {
@include H7;
display: block; display: block;
position: absolute; position: absolute;
bottom: 4px; bottom: 4px;
font-size: 12px;
line-height: 12px;
left: 8px; left: 8px;
color: $red; color: $red;
} }
} }
.send-screen-input-wrapper__error-message { .send-screen-input-wrapper__error-message {
@include H7;
display: block; display: block;
position: absolute; position: absolute;
bottom: 4px; bottom: 4px;
font-size: 12px;
line-height: 12px;
left: 8px; left: 8px;
color: $red; color: $red;
} }
@ -118,6 +119,8 @@
} }
.send-screen-gas-input { .send-screen-gas-input {
@include Paragraph;
width: 100%; width: 100%;
height: 41px; height: 41px;
border-radius: 3px; border-radius: 3px;
@ -129,7 +132,6 @@
align-items: center; align-items: center;
padding-left: 10px; padding-left: 10px;
padding-right: 12px; padding-right: 12px;
font-size: 16px;
color: $scorpion; color: $scorpion;
} }
@ -158,8 +160,9 @@
} }
.send-screen-gas-input-customize { .send-screen-gas-input-customize {
@include H7;
color: $primary-blue; color: $primary-blue;
font-size: 12px;
cursor: pointer; cursor: pointer;
} }
@ -173,6 +176,8 @@
} }
.customize-gas-tooltip-container { .customize-gas-tooltip-container {
@include Paragraph;
position: absolute; position: absolute;
bottom: 50px; bottom: 50px;
width: 237px; width: 237px;
@ -182,7 +187,6 @@
box-shadow: $alto 0 0 5px; box-shadow: $alto 0 0 5px;
z-index: 1050; z-index: 1050;
padding: 13px 19px; padding: 13px 19px;
font-size: 16px;
border-radius: 4px; border-radius: 4px;
font-weight: 500; font-weight: 500;
} }
@ -219,7 +223,8 @@
} }
.gas-tooltip-label { .gas-tooltip-label {
font-size: 16px; @include Paragraph;
color: $tundora; color: $tundora;
} }
@ -237,10 +242,11 @@
} }
.customize-gas-input { .customize-gas-input {
@include Paragraph;
width: 178px; width: 178px;
height: 28px; height: 28px;
border: 1px solid $alto; border: 1px solid $alto;
font-size: 16px;
color: $nile-blue; color: $nile-blue;
padding-left: 8px; padding-left: 8px;
} }
@ -250,14 +256,17 @@
} }
.gas-tooltip-input-detail { .gas-tooltip-input-detail {
@include H7;
position: absolute; position: absolute;
top: 4px; top: 4px;
right: 26px; right: 26px;
font-size: 12px;
color: $silver-chalice; color: $silver-chalice;
} }
.gas-tooltip-input-arrows { .gas-tooltip-input-arrows {
@include H6;
position: absolute; position: absolute;
top: 0; top: 0;
right: 4px; right: 4px;
@ -268,7 +277,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
color: #9b9b9b; color: #9b9b9b;
font-size: 0.8em;
padding: 1px 4px; padding: 1px 4px;
cursor: pointer; cursor: pointer;
} }
@ -286,15 +294,15 @@
.send-screen { .send-screen {
&__title { &__title {
@include H4;
color: $scorpion; color: $scorpion;
font-size: 18px;
line-height: 29px;
} }
&__subtitle { &__subtitle {
@include H6;
margin: 10px 0 20px; margin: 10px 0 20px;
font-size: 14px;
line-height: 24px;
} }
&__send-button, &__send-button,
@ -347,23 +355,23 @@
} }
&__title { &__title {
@include H4;
color: $scorpion; color: $scorpion;
font-size: 18px;
line-height: 29px;
} }
&__description, &__description,
&__balance-text, &__balance-text,
&__token-symbol { &__token-symbol {
@include H6;
margin-top: 10px; margin-top: 10px;
font-size: 14px;
line-height: 24px;
text-align: center; text-align: center;
} }
&__token-balance { &__token-balance {
font-size: 40px; @include H1;
line-height: 40px;
margin-top: 13px; margin-top: 13px;
.token-balance__amount { .token-balance__amount {
@ -433,12 +441,13 @@
} }
&__send-arrow-icon { &__send-arrow-icon {
@include H4;
color: #f28930; color: #f28930;
transform: rotate(-45deg); transform: rotate(-45deg);
position: absolute; position: absolute;
top: -2px; top: -2px;
left: 0; left: 0;
font-size: 1.12em;
} }
&__arrow-background { &__arrow-background {
@ -489,25 +498,25 @@
} }
&__title { &__title {
@include H3;
color: $scorpion; color: $scorpion;
font-size: 22px;
line-height: 29px;
text-align: center; text-align: center;
margin-top: 25px; margin-top: 25px;
} }
&__copy { &__copy {
@include H6;
color: $gray; color: $gray;
font-size: 14px;
line-height: 19px;
text-align: center; text-align: center;
margin-top: 10px; margin-top: 10px;
width: 287px; width: 287px;
} }
&__error { &__error {
font-size: 12px; @include H7;
line-height: 12px;
left: 8px; left: 8px;
color: $red; color: $red;
} }
@ -517,8 +526,8 @@
} }
&__warning { &__warning {
font-size: 12px; @include H7;
line-height: 12px;
left: 8px; left: 8px;
color: $orange; color: $orange;
} }
@ -549,6 +558,7 @@
flex-flow: row; flex-flow: row;
flex: 1 0 auto; flex: 1 0 auto;
justify-content: space-between; justify-content: space-between;
align-items: center;
} }
&__form-field-container { &__form-field-container {
@ -582,22 +592,21 @@
} }
&__form-label { &__form-label {
@include Paragraph;
color: $scorpion; color: $scorpion;
font-size: 16px;
line-height: 22px;
width: 95px; width: 95px;
font-weight: 400;
flex: 0 0 auto; flex: 0 0 auto;
} }
&__from-dropdown, &__from-dropdown,
&__asset-dropdown { &__asset-dropdown {
@include H7;
width: 100%; width: 100%;
border: 1px solid $alto; border: 1px solid $alto;
border-radius: 4px; border-radius: 4px;
background-color: $white; background-color: $white;
line-height: 16px;
font-size: 12px;
color: $tundora; color: $tundora;
position: relative; position: relative;
@ -670,14 +679,16 @@
} }
&__symbol { &__symbol {
font-size: 16px; @include Paragraph;
margin-bottom: 2px; margin-bottom: 2px;
} }
&__name { &__name {
@include H7;
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;
font-size: 12px;
&__label { &__label {
margin-right: 0.25rem; margin-right: 0.25rem;
@ -729,6 +740,8 @@
} }
&__input { &__input {
@include Paragraph;
z-index: 1025; z-index: 1025;
position: relative; position: relative;
height: 54px; height: 54px;
@ -738,14 +751,14 @@
background-color: $white; background-color: $white;
color: $tundora; color: $tundora;
padding: 10px; padding: 10px;
font-size: 16px;
line-height: 21px;
} }
} }
&__memo-text-area, &__memo-text-area,
&__hex-data { &__hex-data {
&__input { &__input {
@include Paragraph;
z-index: 1025; z-index: 1025;
position: relative; position: relative;
height: 54px; height: 54px;
@ -755,13 +768,12 @@
background-color: $white; background-color: $white;
color: $tundora; color: $tundora;
padding: 10px; padding: 10px;
font-size: 16px;
line-height: 21px;
} }
} }
&__amount-max { &__amount-max {
font-size: 12px; @include H7;
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 56px; width: 56px;
@ -815,6 +827,8 @@
} }
&__sliders-icon-container { &__sliders-icon-container {
@include Paragraph;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -827,7 +841,6 @@
right: 15px; right: 15px;
top: 14px; top: 14px;
cursor: pointer; cursor: pointer;
font-size: 1em;
} }
&__sliders-icon { &__sliders-icon {
@ -872,12 +885,13 @@
} }
&__header { &__header {
@include H3;
height: 52px; height: 52px;
border-bottom: 1px solid $alto; border-bottom: 1px solid $alto;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
font-size: 22px;
@media screen and (max-width: $break-small) { @media screen and (max-width: $break-small) {
flex: 0 0 auto; flex: 0 0 auto;
@ -913,12 +927,13 @@
} }
&__footer { &__footer {
@include H3;
height: 75px; height: 75px;
border-top: 1px solid $alto; border-top: 1px solid $alto;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
font-size: 22px;
position: relative; position: relative;
@media screen and (max-width: $break-small) { @media screen and (max-width: $break-small) {
@ -944,8 +959,9 @@
} }
&__revert { &__revert {
@include Paragraph;
color: $silver-chalice; color: $silver-chalice;
font-size: 16px;
margin-left: 21.25px; margin-left: 21.25px;
} }
@ -962,12 +978,12 @@
} }
&__error-message { &__error-message {
@include H7;
display: block; display: block;
position: absolute; position: absolute;
top: -18px; top: -18px;
right: 0; right: 0;
font-size: 12px;
line-height: 12px;
color: $red; color: $red;
width: 100%; width: 100%;
text-align: center; text-align: center;
@ -986,19 +1002,19 @@
padding-left: 20px; padding-left: 20px;
&__title { &__title {
@include H4;
height: 26px; height: 26px;
color: $tundora; color: $tundora;
font-size: 20px;
line-height: 26px;
margin-top: 17px; margin-top: 17px;
} }
&__copy { &__copy {
@include Paragraph;
height: 38px; height: 38px;
width: 314px; width: 314px;
color: $tundora; color: $tundora;
font-size: 14px;
line-height: 19px;
margin-top: 17px; margin-top: 17px;
} }
@ -1015,10 +1031,11 @@
} }
.gas-tooltip-input-arrows { .gas-tooltip-input-arrows {
@include H4;
width: 32px; width: 32px;
height: 54px; height: 54px;
border-left: 1px solid #dadada; border-left: 1px solid #dadada;
font-size: 18px;
color: $tundora; color: $tundora;
right: 0; right: 0;
padding: 0; padding: 0;
@ -1049,15 +1066,18 @@
} }
.advanced-gas-options-btn { .advanced-gas-options-btn {
@include H6;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
font-size: 14px;
color: #2f9ae0; color: #2f9ae0;
cursor: pointer; cursor: pointer;
margin-top: 5px; margin-top: 5px;
} }
.sliders-icon-container { .sliders-icon-container {
@include Paragraph;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -1070,10 +1090,11 @@
right: 15px; right: 15px;
top: 14px; top: 14px;
cursor: pointer; cursor: pointer;
font-size: 1em;
} }
.gas-fee-reset { .gas-fee-reset {
@include H6;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -1084,8 +1105,6 @@
right: 12px; right: 12px;
top: 14px; top: 14px;
cursor: pointer; cursor: pointer;
font-size: 1em;
font-size: 14px;
color: #2f9ae0; color: #2f9ae0;
} }

View File

@ -1,4 +1,6 @@
.simple-dropdown { .simple-dropdown {
@include Paragraph;
height: 56px; height: 56px;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
@ -6,7 +8,6 @@
border: 1px solid $alto; border: 1px solid $alto;
border-radius: 4px; border-radius: 4px;
background-color: $white; background-color: $white;
font-size: 16px;
color: #4d4d4d; color: #4d4d4d;
cursor: pointer; cursor: pointer;
position: relative; position: relative;