1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +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 {
margin-top: calc(var(--spacer) * 2);
font-size: var(--font-size-small);
padding: var(--spacer);
border-radius: var(--border-radius);
background: var(--brand-grey-dimmed);
display: grid;
gap: var(--spacer);
grid-template-columns: 1fr 1fr;

View File

@ -1,13 +1,17 @@
.grid {
display: grid;
gap: calc(var(--spacer) * 1.5);
gap: calc(var(--spacer) * 2);
position: relative;
margin-top: -1.5rem;
}
.content {
composes: box from '../../atoms/Box.module.css';
margin-top: var(--spacer);
}
@media (min-width: 60rem) {
.grid {
gap: calc(var(--spacer) * 3);
/* lazy golden ratio */
grid-template-columns: 1.618fr minmax(0, 1fr);
}
@ -15,7 +19,7 @@
.sticky {
position: sticky;
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 (
<article className={styles.grid}>
<div>
<div className={styles.content}>
<aside className={styles.meta}>
<p>{datePublished && <Time date={datePublished} />}</p>
{categories && (

View File

@ -15,3 +15,8 @@
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 = () => {
return (
<article className={styles.grid}>
<div>
<div className={styles.content}>
{sections.map((section) => {
const { title, component } = section
return <Section key={title} title={title} component={component} />