1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

minimize deprecated entities, spacing tweaks

This commit is contained in:
Matthias Kretschmann 2019-01-22 16:17:13 +01:00
parent cb5b805937
commit 22bc0512ca
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 16 additions and 16 deletions

View File

@ -210,7 +210,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
{deprecation && (
<div className={styles.deprecation}>
<strong>Deprecated:</strong> use{' '}
<strong>Deprecated</strong>: use{' '}
<code>
<a href={`#${parentAnchor}/${slugify(deprecatedUse)}`}>
{deprecatedUse}
@ -220,14 +220,15 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
</div>
)}
{(() => {
switch (kindString) {
case 'Method':
return <MethodDetails property={property} />
case 'Property':
return <PropertyDetails property={property} />
}
})()}
{!deprecation &&
(() => {
switch (kindString) {
case 'Method':
return <MethodDetails property={property} />
case 'Property':
return <PropertyDetails property={property} />
}
})()}
{fileName && (
<a

View File

@ -35,7 +35,7 @@
&[data-deprecated='true'] {
> *:not(.deprecation) {
opacity: .4;
opacity: .5;
}
.sourceLink {
@ -113,9 +113,7 @@
.deprecation {
font-size: $font-size-small;
padding: $spacer / 3;
border: 1px solid $red;
border-radius: $border-radius;
margin-bottom: $spacer / 4;
strong {
color: $red;
@ -140,10 +138,11 @@
}
.subHeading {
font-size: $font-size-h5;
font-size: $font-size-base;
border-bottom: 1px solid $brand-grey-lighter;
padding-bottom: $spacer / 3;
margin-bottom: $spacer / 3;
padding-bottom: $spacer / 4;
margin-bottom: $spacer / 4;
color: $brand-grey;
}
.parameters {