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:
parent
4e30eb14d1
commit
42e5ac864f
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 && (
|
||||
|
@ -15,3 +15,8 @@
|
||||
top: var(--spacer);
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
composes: box from '../atoms/Box.module.css';
|
||||
margin-top: var(--spacer);
|
||||
}
|
||||
|
@ -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} />
|
||||
|
Loading…
Reference in New Issue
Block a user