mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
space saving tweaks for pricing screen
This commit is contained in:
parent
c689ce5555
commit
b6bc38c530
@ -1,11 +1,19 @@
|
|||||||
.coin {
|
.coin {
|
||||||
padding: var(--spacer) calc(var(--spacer) / 2);
|
padding: calc(var(--spacer) / 2);
|
||||||
|
padding-top: calc(var(--spacer) / 1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.coin:last-child {
|
.coin:last-child {
|
||||||
border-left: 1px solid var(--border-color);
|
border-left: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.token {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: calc(var(--spacer) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
composes: box from '@shared/atoms/Box.module.css';
|
composes: box from '@shared/atoms/Box.module.css';
|
||||||
padding: calc(var(--spacer) / 2);
|
padding: calc(var(--spacer) / 2);
|
||||||
@ -17,7 +25,8 @@
|
|||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: var(--background-body);
|
background-color: var(--background-body);
|
||||||
margin-bottom: calc(var(--spacer) / 2);
|
margin: 0;
|
||||||
|
margin-right: calc(var(--spacer) / 4);
|
||||||
fill: var(--font-color-text);
|
fill: var(--font-color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,8 +42,15 @@
|
|||||||
.tokenName {
|
.tokenName {
|
||||||
font-size: var(--font-size-base);
|
font-size: var(--font-size-base);
|
||||||
color: var(--font-color-text);
|
color: var(--font-color-text);
|
||||||
text-align: center;
|
margin-bottom: 0;
|
||||||
margin-bottom: calc(var(--spacer) / 6);
|
}
|
||||||
|
|
||||||
|
.weight {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.data {
|
.data {
|
||||||
@ -54,15 +70,6 @@
|
|||||||
top: calc(var(--spacer) / 2.5);
|
top: calc(var(--spacer) / 2.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.weight {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: calc(var(--spacer) / 2);
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: var(--font-size-small);
|
|
||||||
color: var(--color-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.weight strong {
|
.weight strong {
|
||||||
color: var(--font-color-text);
|
color: var(--font-color-text);
|
||||||
}
|
}
|
||||||
|
@ -22,16 +22,19 @@ export default function Coin({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.coin}>
|
<div className={styles.coin}>
|
||||||
<figure className={styles.icon}>
|
<div className={styles.token}>
|
||||||
<Logo />
|
<figure className={styles.icon}>
|
||||||
</figure>
|
<Logo />
|
||||||
|
</figure>
|
||||||
|
<div>
|
||||||
|
<h4 className={styles.tokenName}>
|
||||||
|
{datatokenOptions?.name || 'Data Token'}
|
||||||
|
</h4>
|
||||||
|
|
||||||
<h4 className={styles.tokenName}>
|
<div className={styles.weight}>
|
||||||
{datatokenOptions?.name || 'Data Token'}
|
Weight <strong>{weight}</strong>
|
||||||
</h4>
|
</div>
|
||||||
|
</div>
|
||||||
<div className={styles.weight}>
|
|
||||||
Weight <strong>{weight}</strong>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.data}>
|
<div className={styles.data}>
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
margin-top: var(--spacer);
|
margin-top: var(--spacer);
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
color: var(--color-secondary);
|
color: var(--color-secondary);
|
||||||
text-align: center;
|
padding-bottom: calc(var(--spacer) / 4);
|
||||||
padding-bottom: calc(var(--spacer) / 3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tokens {
|
.tokens {
|
||||||
|
@ -2,11 +2,15 @@ import React, { ReactElement } from 'react'
|
|||||||
import FormHelp from '@shared/FormInput/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Price from './Price'
|
import Price from './Price'
|
||||||
import Fees from './Fees'
|
import Fees from './Fees'
|
||||||
|
import styles from './Dynamic.module.css'
|
||||||
|
|
||||||
export default function Fixed({ content }: { content: any }): ReactElement {
|
export default function Fixed({ content }: { content: any }): ReactElement {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<FormHelp>{content.info}</FormHelp>
|
<FormHelp>{content.info}</FormHelp>
|
||||||
|
|
||||||
|
<h4 className={styles.title}>Price</h4>
|
||||||
|
|
||||||
<Price />
|
<Price />
|
||||||
<Fees tooltips={content.tooltips} pricingType="fixed" />
|
<Fees tooltips={content.tooltips} pricingType="fixed" />
|
||||||
</>
|
</>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: calc(var(--spacer) / 2);
|
gap: calc(var(--spacer) / 2);
|
||||||
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
||||||
padding: var(--spacer);
|
padding: calc(var(--spacer) / 2);
|
||||||
max-width: 30rem;
|
max-width: 30rem;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user