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

View File

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