1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

restore pricing screens styling

This commit is contained in:
Matthias Kretschmann 2021-10-27 17:23:18 +01:00
parent 9960742b37
commit 928a352975
Signed by: m
GPG Key ID: 606EEEF3C479A91F
7 changed files with 27 additions and 0 deletions

View File

@ -22,6 +22,11 @@
fill: var(--font-color-text); fill: var(--font-color-text);
} }
.icon svg {
width: 100%;
height: 100%;
}
.coin:last-child .icon { .coin:last-child .icon {
fill: var(--brand-violet); fill: var(--brand-violet);
} }

View File

@ -42,6 +42,8 @@
@media screen and (min-width: 40rem) { @media screen and (min-width: 40rem) {
.tokens { .tokens {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
margin-left: -4rem;
margin-right: -4rem;
} }
} }

View File

@ -12,6 +12,13 @@
background: var(--background-highlight); background: var(--background-highlight);
} }
@media screen and (min-width: 40rem) {
.fees {
margin-left: -4rem;
margin-right: -4rem;
}
}
.fees > div { .fees > div {
margin-bottom: 0; margin-bottom: 0;
justify-self: center; justify-self: center;

View File

@ -14,6 +14,13 @@
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
} }
@media (min-width: 40rem) {
.price {
margin-left: -4rem;
margin-right: -4rem;
}
}
.grid { .grid {
display: grid; display: grid;
gap: calc(var(--spacer) / 2); gap: calc(var(--spacer) / 2);

View File

@ -0,0 +1,3 @@
.pricing input {
text-align: center;
}

View File

@ -10,6 +10,7 @@ import Dynamic from './Dynamic'
import Fixed from './Fixed' import Fixed from './Fixed'
import Free from './Free' import Free from './Free'
import content from '../../../../../content/price.json' import content from '../../../../../content/price.json'
import styles from './index.module.css'
export default function PricingFields(): ReactElement { export default function PricingFields(): ReactElement {
const { appConfig } = useSiteMetadata() const { appConfig } = useSiteMetadata()
@ -72,6 +73,7 @@ export default function PricingFields(): ReactElement {
items={tabs} items={tabs}
handleTabChange={handleTabChange} handleTabChange={handleTabChange}
defaultIndex={type === 'fixed' ? 0 : 1} defaultIndex={type === 'fixed' ? 0 : 1}
className={styles.pricing}
/> />
) )

View File

@ -1,4 +1,5 @@
.form { .form {
composes: box from '@shared/atoms/Box.module.css'; composes: box from '@shared/atoms/Box.module.css';
margin-bottom: var(--spacer); margin-bottom: var(--spacer);
padding: 0;
} }