1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02: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 {
position: absolute;
top: -10px;
right: calc(var(--spacer) / 4);
right: calc(var(--spacer) / 8);
appearance: none;
background: none;
border: none;

View File

@ -4,12 +4,30 @@
font-size: var(--font-size-small);
}
.meta p {
margin-bottom: 0;
.asset {
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 {
margin-top: calc(var(--spacer) / 2);
@media (min-width: 40rem) {
.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);
}

View File

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