1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-14 17:24:51 +01:00

more asset details style fixes

This commit is contained in:
Matthias Kretschmann 2020-07-15 14:45:08 +02:00
parent 4e30eb14d1
commit 42e5ac864f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 14 additions and 8 deletions

View File

@ -1,9 +1,6 @@
.metaFull { .metaFull {
margin-top: calc(var(--spacer) * 2); margin-top: calc(var(--spacer) * 2);
font-size: var(--font-size-small); font-size: var(--font-size-small);
padding: var(--spacer);
border-radius: var(--border-radius);
background: var(--brand-grey-dimmed);
display: grid; display: grid;
gap: var(--spacer); gap: var(--spacer);
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;

View File

@ -1,13 +1,17 @@
.grid { .grid {
display: grid; display: grid;
gap: calc(var(--spacer) * 1.5); gap: calc(var(--spacer) * 2);
position: relative; position: relative;
margin-top: -1.5rem; margin-top: -1.5rem;
} }
.content {
composes: box from '../../atoms/Box.module.css';
margin-top: var(--spacer);
}
@media (min-width: 60rem) { @media (min-width: 60rem) {
.grid { .grid {
gap: calc(var(--spacer) * 3);
/* lazy golden ratio */ /* lazy golden ratio */
grid-template-columns: 1.618fr minmax(0, 1fr); grid-template-columns: 1.618fr minmax(0, 1fr);
} }
@ -15,7 +19,7 @@
.sticky { .sticky {
position: sticky; position: sticky;
top: calc(var(--spacer) / 2); top: calc(var(--spacer) / 2);
margin-top: calc(var(--spacer) * 1.5); margin-top: var(--spacer);
} }
} }

View File

@ -24,7 +24,7 @@ export default function AssetContent({
return ( return (
<article className={styles.grid}> <article className={styles.grid}>
<div> <div className={styles.content}>
<aside className={styles.meta}> <aside className={styles.meta}>
<p>{datePublished && <Time date={datePublished} />}</p> <p>{datePublished && <Time date={datePublished} />}</p>
{categories && ( {categories && (

View File

@ -15,3 +15,8 @@
top: var(--spacer); top: var(--spacer);
} }
} }
.content {
composes: box from '../atoms/Box.module.css';
margin-top: var(--spacer);
}

View File

@ -32,7 +32,7 @@ const Section = ({ title, component }: { title: string; component: any }) => {
const HistoryPage: React.FC = () => { const HistoryPage: React.FC = () => {
return ( return (
<article className={styles.grid}> <article className={styles.grid}>
<div> <div className={styles.content}>
{sections.map((section) => { {sections.map((section) => {
const { title, component } = section const { title, component } = section
return <Section key={title} title={title} component={component} /> return <Section key={title} title={title} component={component} />