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

another MetaMain visual tweak

This commit is contained in:
Matthias Kretschmann 2021-04-26 16:40:51 +02:00
parent c0157dff21
commit 8453a07e36
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 31 additions and 9 deletions

View File

@ -1,7 +1,7 @@
.bookmark { .bookmark {
position: absolute; position: absolute;
top: -10px; top: -10px;
right: calc(var(--spacer) / 4); right: calc(var(--spacer) / 8);
appearance: none; appearance: none;
background: none; background: none;
border: none; border: none;

View File

@ -4,12 +4,30 @@
font-size: var(--font-size-small); font-size: var(--font-size-small);
} }
.meta p { .asset {
margin-bottom: 0; margin-left: -2rem;
margin-right: -2rem;
padding-left: 2rem;
padding-right: 3rem;
border-bottom: 1px solid var(--border-color);
margin-bottom: calc(var(--spacer) / 1.5);
padding-bottom: calc(var(--spacer) / 1.75);
} }
.published { @media (min-width: 40rem) {
margin-top: calc(var(--spacer) / 2); .asset {
margin-top: -0.65rem;
}
}
.assetType {
display: inline-block;
border-right: 1px solid var(--border-color);
padding-right: calc(var(--spacer) / 3.5);
margin-right: calc(var(--spacer) / 4);
}
.byline {
font-size: var(--font-size-small); font-size: var(--font-size-small);
} }

View File

@ -15,8 +15,12 @@ export default function MetaMain(): ReactElement {
return ( return (
<aside className={styles.meta}> <aside className={styles.meta}>
<AssetType type={type} accessType={accessType} /> <header className={styles.asset}>
<p> <AssetType
type={type}
accessType={accessType}
className={styles.assetType}
/>
<ExplorerLink <ExplorerLink
networkId={networkId} networkId={networkId}
path={ path={
@ -27,9 +31,9 @@ export default function MetaMain(): ReactElement {
> >
{`${ddo?.dataTokenInfo.name}${ddo?.dataTokenInfo.symbol}`} {`${ddo?.dataTokenInfo.name}${ddo?.dataTokenInfo.symbol}`}
</ExplorerLink> </ExplorerLink>
</p> </header>
<div className={styles.published}> <div className={styles.byline}>
Published By <Publisher account={owner} /> Published By <Publisher account={owner} />
<p> <p>
<Time date={ddo?.created} relative /> <Time date={ddo?.created} relative />