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:
parent
cb5b805937
commit
22bc0512ca
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user