1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 07:24:56 +01:00
metamask-extension/ui/css/itcss/components/send.scss

924 lines
16 KiB
SCSS
Raw Normal View History

2017-08-22 01:59:00 +02:00
.send-screen-wrapper {
display: flex;
2017-09-14 10:32:24 +02:00
flex-flow: column nowrap;
z-index: 25;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-09-14 18:56:40 +02:00
width: 100%;
overflow-y: auto;
}
2017-09-14 18:56:40 +02:00
section {
flex: 0 0 auto;
}
2017-08-22 01:59:00 +02:00
}
.send-screen-card {
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2017-09-14 10:32:24 +02:00
padding: 46px 40.5px 26px;
position: relative;
align-items: center;
display: flex;
flex-flow: column nowrap;
width: 498px;
flex: 1 0 auto;
2017-09-14 18:56:40 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-09-14 18:56:40 +02:00
top: 0;
width: 100%;
box-shadow: none;
padding: 12px;
}
2017-08-22 01:59:00 +02:00
}
/* Send Screen */
.send-screen section {
margin: 4px 16px;
}
.send-screen input {
@include H7;
2017-08-22 01:59:00 +02:00
width: 100%;
}
.send-eth-icon {
2017-09-14 10:32:24 +02:00
border-radius: 50%;
width: 70px;
height: 70px;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2017-09-14 10:32:24 +02:00
position: absolute;
top: -35px;
z-index: 25;
padding: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
2017-09-14 18:56:40 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-09-14 18:56:40 +02:00
position: relative;
top: 0;
}
}
.send-screen-input-wrapper {
width: 95%;
2017-08-24 18:24:48 +02:00
position: relative;
2017-09-12 08:18:54 +02:00
2017-09-14 10:32:24 +02:00
.fa-bolt {
padding-right: 4px;
}
.large-input {
@include Paragraph;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-default);
2017-09-14 10:32:24 +02:00
border-radius: 4px;
margin: 4px 0 20px;
}
.send-screen-gas-input {
border: 1px solid transparent;
}
2017-09-12 08:18:54 +02:00
&__error-message {
display: none;
}
&--error {
input,
.send-screen-gas-input {
2022-03-21 14:55:01 +01:00
border-color: var(--color-error-default) !important;
2017-09-12 08:18:54 +02:00
}
.send-screen-input-wrapper__error-message {
@include H7;
2017-09-12 08:18:54 +02:00
display: block;
position: absolute;
bottom: 4px;
left: 8px;
2022-03-21 14:55:01 +01:00
color: var(--color-error-default);
2017-09-12 08:18:54 +02:00
}
}
.send-screen-input-wrapper__error-message {
@include H7;
display: block;
position: absolute;
bottom: 4px;
left: 8px;
2022-03-21 14:55:01 +01:00
color: var(--color-error-default);
}
}
.send-screen-input {
width: 100%;
}
.send-screen-gas-input {
@include Paragraph;
width: 100%;
height: 41px;
border-radius: 3px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
border-width: 0;
border-style: none;
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 10px;
padding-right: 12px;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
}
.send-screen-amount-labels {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.send-screen-gas-labels {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.currency-toggle {
&__item {
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
cursor: pointer;
&--selected {
2022-03-21 14:55:01 +01:00
color: var(--color-text-default);
cursor: default;
}
}
}
2017-08-24 18:24:48 +02:00
.send-screen-gas-input-customize {
@include H7;
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
2017-08-24 18:24:48 +02:00
cursor: pointer;
2017-08-24 21:55:03 +02:00
}
.gas-tooltip-close-area {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
height: 100%;
}
.gas-tooltip-arrow {
height: 25px;
width: 25px;
z-index: 1200;
2022-03-21 14:55:01 +01:00
background: var(--color-background-default);
position: absolute;
transform: rotate(45deg);
left: 107px;
top: 294px;
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
}
2017-08-29 20:39:56 +02:00
.gas-tooltip {
display: flex;
justify-content: center;
}
.gas-tooltip-label {
@include Paragraph;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
}
.gas-tooltip-header {
padding-bottom: 12px;
}
.gas-tooltip-input-label {
margin-bottom: 5px;
}
.gas-tooltip-input-label i {
2022-03-21 14:55:01 +01:00
color: var(--color-icon-muted);
margin-left: 6px;
}
.gas-tooltip-input-detail {
@include H7;
position: absolute;
top: 4px;
right: 26px;
2022-03-21 14:55:01 +01:00
color: var(--color-text-muted);
}
.gas-tooltip-input-arrows {
@include H6;
position: absolute;
top: 0;
right: 4px;
width: 17px;
height: 28px;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-icon-muted);
border-left: 0;
display: flex;
flex-direction: column;
2022-03-21 14:55:01 +01:00
color: var(--color-text-muted);
padding: 1px 4px;
2017-10-25 10:08:14 +02:00
cursor: pointer;
}
2017-09-07 13:24:03 +02:00
2017-09-13 10:25:39 +02:00
.token-gas {
&__amount {
display: inline-block;
margin-right: 4px;
}
&__symbol {
display: inline-block;
}
}
2017-09-14 10:32:24 +02:00
.send-screen {
&__title {
@include H4;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2017-09-14 10:32:24 +02:00
}
&__subtitle {
@include H6;
2017-09-14 10:32:24 +02:00
margin: 10px 0 20px;
}
&__send-button,
&__cancel-button {
width: 163px;
text-align: center;
}
&__send-button__disabled {
opacity: 0.5;
cursor: auto;
}
2017-09-14 10:32:24 +02:00
}
2017-09-07 13:24:03 +02:00
.send-token {
display: flex;
flex-flow: column nowrap;
z-index: 25;
&__content {
width: 498px;
height: 605px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
padding: 46px 40.5px 26px;
position: relative;
align-items: center;
display: flex;
flex-flow: column nowrap;
flex: 1 0 auto;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
top: 0;
width: 100%;
box-shadow: none;
padding: 12px;
}
}
2017-09-07 13:24:03 +02:00
.identicon {
position: absolute;
top: -35px;
z-index: 25;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
position: relative;
top: 0;
flex: 0 0 auto;
}
2017-09-07 13:24:03 +02:00
}
&__title {
@include H4;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2017-09-07 13:24:03 +02:00
}
&__description,
&__balance-text,
&__token-symbol {
@include H6;
2017-09-07 13:24:03 +02:00
margin-top: 10px;
text-align: center;
2017-09-07 13:24:03 +02:00
}
&__token-balance {
@include H1;
2017-09-07 13:24:03 +02:00
margin-top: 13px;
.token-balance__amount {
padding-right: 12px;
}
2017-09-07 13:24:03 +02:00
}
2017-09-11 09:45:06 +02:00
&__button-group {
display: flex;
flex-flow: column nowrap;
align-items: center;
flex: 0 0 auto;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
margin-top: 24px;
}
button {
width: 163px;
}
}
2017-09-07 13:24:03 +02:00
}
2017-09-22 23:34:56 +02:00
.confirm-send-token {
&__hero-amount-wrapper {
width: 100%;
}
}
.send-v2 {
&__container {
width: 380px;
border-radius: 8px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
display: flex;
flex-flow: column nowrap;
z-index: 25;
align-items: center;
position: relative;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
width: 100%;
top: 0;
box-shadow: none;
2017-10-25 07:43:49 +02:00
flex: 1 1 auto;
}
}
&__send-header-icon-container {
z-index: 25;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
position: relative;
top: 0;
}
}
&__send-header-icon {
border-radius: 50%;
width: 48px;
height: 48px;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
z-index: 25;
padding: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
}
&__arrow-background {
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
height: 14px;
width: 14px;
position: absolute;
top: 52px;
left: 199px;
border-radius: 50%;
z-index: 100;
2017-10-19 19:53:56 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-10-19 19:53:56 +02:00
top: 36px;
}
}
&__header {
height: 88px;
width: 380px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-alternative);
position: relative;
display: flex;
justify-content: center;
align-items: center;
2017-10-19 19:53:56 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-10-19 19:53:56 +02:00
height: 59px;
2017-10-25 10:08:14 +02:00
width: 100vw;
2017-10-19 19:53:56 +02:00
}
}
&__header-tip {
height: 25px;
width: 25px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-alternative);
position: absolute;
transform: rotate(45deg);
left: 178px;
2017-10-25 10:08:14 +02:00
top: 75px;
2017-10-19 19:53:56 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-10-19 19:53:56 +02:00
top: 46px;
2017-10-25 10:08:14 +02:00
left: 0;
right: 0;
margin: 0 auto;
2017-10-19 19:53:56 +02:00
}
}
&__title {
@include H3;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
text-align: center;
margin-top: 25px;
}
&__copy {
@include H6;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
text-align: center;
margin-top: 10px;
width: 287px;
}
2017-10-17 22:13:20 +02:00
&__error {
@include H7;
2017-10-17 22:13:20 +02:00
left: 8px;
2022-03-21 14:55:01 +01:00
color: var(--color-error-default);
2017-10-17 22:13:20 +02:00
}
&__error-amount {
margin-top: 5px;
}
2019-01-23 19:09:56 +01:00
&__warning {
@include H7;
2019-01-23 19:09:56 +01:00
left: 8px;
color: var(--color-warning-default);
2019-01-23 19:09:56 +01:00
}
2017-10-17 22:13:20 +02:00
&__error-border {
2022-03-21 14:55:01 +01:00
color: var(--color-error-default);
2017-10-17 22:13:20 +02:00
}
&__form {
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2017-10-25 07:43:49 +02:00
margin: 0;
2017-10-19 23:08:52 +02:00
flex: 1 1 auto;
2017-10-19 19:53:56 +02:00
}
}
2017-10-25 07:43:49 +02:00
&__form-header,
&__form-header-copy {
2017-10-19 19:53:56 +02:00
width: 100%;
display: flex;
flex-flow: column;
align-items: center;
}
&__form-row {
margin: 1rem 1rem 0;
position: relative;
2017-10-19 19:53:56 +02:00
display: flex;
flex-flow: row;
flex: 1 0 auto;
justify-content: space-between;
align-items: center;
}
&__form-field-container {
display: flex;
flex-direction: column;
width: 277px;
}
2017-10-19 19:53:56 +02:00
&__form-field {
flex: 1 1 auto;
min-width: 0;
2018-02-13 07:39:15 +01:00
.currency-display {
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2018-02-13 07:39:15 +01:00
&__currency-symbol {
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2018-02-13 07:39:15 +01:00
}
&__converted-value,
&__converted-currency {
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2018-02-13 07:39:15 +01:00
}
}
.account-list-item {
&__account-secondary-balance {
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
2018-02-13 07:39:15 +01:00
}
}
2017-10-19 19:53:56 +02:00
}
&__form-label {
@include Paragraph;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
width: 95px;
flex: 0 0 auto;
}
&__from-dropdown,
&__asset-dropdown {
@include H7;
2017-10-19 19:53:56 +02:00
width: 100%;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
color: var(--color-text-default);
position: relative;
&__close-area {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
height: 100%;
}
&__list {
z-index: 1050;
position: absolute;
height: 220px;
width: 100%;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
margin-top: 11px;
margin-left: -1px;
overflow-y: scroll;
}
}
&__from-dropdown {
height: 73px;
}
&__asset-dropdown {
height: 54px;
border: none;
position: relative;
&__single-asset {
display: flex;
flex-flow: row nowrap;
align-items: center;
padding: 8px 8px;
}
&__caret {
color: var(--color-icon-default);
padding: 0 10px;
}
&__asset {
display: flex;
flex-flow: row nowrap;
align-items: center;
padding: 0 8px;
cursor: pointer;
}
&__asset-icon {
.identicon {
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
}
}
&__asset-data {
display: flex;
flex-flow: column nowrap;
margin-left: 8px;
flex-grow: 1;
}
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
&__asset-data {
width: 60%;
}
}
&__symbol {
@include Paragraph;
margin-bottom: 2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__name {
@include H7;
display: flex;
flex-flow: row nowrap;
&__label {
margin-right: 0.25rem;
min-width: 52px;
}
}
&__close-area {
z-index: 2000;
}
&__list {
z-index: 2050;
position: absolute;
height: 220px;
width: 100%;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
top: 65px;
left: 0;
box-sizing: content-box;
overflow-y: scroll;
margin-top: 0;
padding: 4px 0;
.send-v2__asset-dropdown__asset {
padding: 8px;
}
}
&__input-wrapper {
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
border-radius: 4px;
height: 100%;
&--opened {
position: relative;
z-index: 2050;
}
.send-v2__asset-dropdown__asset {
height: 100%;
&:hover {
background-color: var(--color-background-default-hover);
}
}
}
&__input {
@include Paragraph;
z-index: 1025;
position: relative;
height: 54px;
width: 100%;
border: none;
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
color: var(--color-text-alternative);
padding: 10px;
}
}
&__memo-text-area,
&__hex-data {
2017-10-06 12:30:45 +02:00
&__input {
@include Paragraph;
2018-09-14 01:23:04 +02:00
z-index: 1025;
position: relative;
2017-10-06 12:30:45 +02:00
height: 54px;
2017-10-19 19:53:56 +02:00
width: 100%;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-border-muted);
2017-10-06 12:30:45 +02:00
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
color: var(--color-text-alternative);
2017-10-06 12:30:45 +02:00
padding: 10px;
}
}
2017-10-26 18:43:12 +02:00
&__amount-max {
@include H7;
position: relative;
display: inline-block;
width: 56px;
height: 20px;
margin-top: 5px;
border-radius: 100px;
&__button {
width: 56px;
height: 20px;
position: absolute;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-primary-default);
border-radius: 100px;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
background: var(--color-background-default);
&__disabled {
2022-03-21 14:55:01 +01:00
opacity: 0.5;
cursor: auto;
}
}
input:checked + &__button {
2022-03-21 14:55:01 +01:00
background-color: var(--color-primary-default);
border: 1px solid var(--color-primary-default);
color: var(--color-primary-inverse);
}
}
&__amount-max input {
opacity: 0;
width: 0;
height: 0;
2017-10-26 18:43:12 +02:00
}
&__sliders-icon-container {
@include Paragraph;
display: flex;
align-items: center;
justify-content: center;
height: 24px;
width: 24px;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-primary-default);
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
position: absolute;
right: 15px;
top: 14px;
cursor: pointer;
}
&__sliders-icon {
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
}
&__memo-text-area {
&__input {
padding: 6px 10px;
}
}
&__footer {
height: 92px;
width: 100%;
display: flex;
justify-content: space-evenly;
align-items: center;
2022-03-21 14:55:01 +01:00
border-top: 1px solid var(--color-border-muted);
background: var(--color-background-default);
2017-10-19 23:08:52 +02:00
padding: 0 12px;
flex-shrink: 0;
}
&__next-btn,
&__cancel-btn {
width: 163px;
2017-10-24 10:19:00 +02:00
margin: 0 4px;
}
&__gas-modal-card {
width: 360px;
display: flex;
flex-flow: column;
align-items: flex-start;
padding-left: 20px;
&__title {
@include H4;
height: 26px;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
margin-top: 17px;
}
&__copy {
@include Paragraph;
height: 38px;
width: 314px;
2022-03-21 14:55:01 +01:00
color: var(--color-text-alternative);
margin-top: 17px;
}
.gas-tooltip-input-arrows {
@include H4;
width: 32px;
height: 54px;
2022-03-21 14:55:01 +01:00
border-left: 1px solid var(--color-border-muted);
color: var(--color-text-alternative);
right: 0;
padding: 0;
display: flex;
justify-content: space-around;
align-items: center;
}
.gas-tooltip-input-arrow-wrapper {
align-items: center;
align-self: stretch;
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: center;
}
input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
display: none;
}
input[type='number']:hover::-webkit-inner-spin-button {
-webkit-appearance: none;
display: none;
}
}
}
.advanced-gas-options-btn {
@include H6;
display: flex;
justify-content: flex-end;
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
cursor: pointer;
margin-top: 5px;
}
.sliders-icon-container {
@include Paragraph;
display: flex;
align-items: center;
justify-content: center;
height: 24px;
width: 24px;
2022-03-21 14:55:01 +01:00
border: 1px solid var(--color-primary-default);
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
position: absolute;
right: 15px;
top: 14px;
cursor: pointer;
}
.gas-fee-reset {
@include H6;
display: flex;
align-items: center;
justify-content: center;
height: 24px;
border-radius: 4px;
2022-03-21 14:55:01 +01:00
background-color: var(--color-background-default);
position: absolute;
right: 12px;
top: 14px;
cursor: pointer;
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
}
.sliders-icon {
2022-03-21 14:55:01 +01:00
color: var(--color-primary-default);
2018-07-16 22:51:02 +02:00
}