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 && (
|
{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,7 +220,8 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{(() => {
|
{!deprecation &&
|
||||||
|
(() => {
|
||||||
switch (kindString) {
|
switch (kindString) {
|
||||||
case 'Method':
|
case 'Method':
|
||||||
return <MethodDetails property={property} />
|
return <MethodDetails property={property} />
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user