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

markdown display tweaks

This commit is contained in:
Matthias Kretschmann 2020-10-28 19:11:34 +01:00
parent 2d02d80938
commit 060862602b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 42 additions and 1 deletions

View File

@ -47,3 +47,22 @@
margin-top: var(--spacer);
margin-bottom: var(--spacer);
}
/* Markdown tweaks */
.description h1 {
font-size: var(--font-size-h3);
}
.description h2 {
font-size: var(--font-size-h4);
}
.description h3 {
font-size: var(--font-size-large);
}
.description h4,
.description h5 {
font-size: var(--font-size-base);
}

View File

@ -65,7 +65,10 @@ export default function AssetContent({
)}
</aside>
<Markdown text={metadata?.additionalInformation?.description || ''} />
<Markdown
className={styles.description}
text={metadata?.additionalInformation?.description || ''}
/>
<MetaSecondary metadata={metadata} />

View File

@ -40,6 +40,25 @@
margin-top: calc(var(--spacer) / 4);
}
/* Markdown tweaks */
.description h1 {
font-size: var(--font-size-h3);
}
.description h2 {
font-size: var(--font-size-h4);
}
.description h3 {
font-size: var(--font-size-large);
}
.description h4,
.description h5 {
font-size: var(--font-size-base);
}
.toggle {
position: absolute;
bottom: 0.15rem;