aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-02 01:02:20 +0800
committerFabio Berger <me@fabioberger.com>2018-08-02 01:02:20 +0800
commit32e1c2ac970069f5251bd3cd7a31072f0547cf2c (patch)
treef26e27ed4bedb52552132593063a5024cec4483b /packages/react-docs
parent5e3bbbbb3c5be91be7c81f92f42e34edd02ea264 (diff)
downloaddexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.gz
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.bz2
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.lz
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.xz
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.zst
dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.zip
Add padding above anchor titles so they show up nice when scrolled to
Diffstat (limited to 'packages/react-docs')
-rw-r--r--packages/react-docs/src/components/property_block.tsx2
-rw-r--r--packages/react-docs/src/components/type_definition.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/react-docs/src/components/property_block.tsx b/packages/react-docs/src/components/property_block.tsx
index 6e7f90c6c..466082a91 100644
--- a/packages/react-docs/src/components/property_block.tsx
+++ b/packages/react-docs/src/components/property_block.tsx
@@ -34,7 +34,7 @@ export class PropertyBlock extends React.Component<PropertyBlockProps, PropertyB
return (
<div
id={`${this.props.sectionName}-${property.name}`}
- className="pb4"
+ className="pb4 pt2"
key={`property-${property.name}-${property.type.name}`}
onMouseOver={this._setAnchorVisibility.bind(this, true)}
onMouseOut={this._setAnchorVisibility.bind(this, false)}
diff --git a/packages/react-docs/src/components/type_definition.tsx b/packages/react-docs/src/components/type_definition.tsx
index a23f27181..26fbbf75c 100644
--- a/packages/react-docs/src/components/type_definition.tsx
+++ b/packages/react-docs/src/components/type_definition.tsx
@@ -100,7 +100,7 @@ export class TypeDefinition extends React.Component<TypeDefinitionProps, TypeDef
return (
<div
id={this.props.shouldAddId ? typeDefinitionAnchorId : ''}
- className="pb2"
+ className="pb2 pt2"
style={{ overflow: 'hidden', width: '100%' }}
onMouseOver={this._setAnchorVisibility.bind(this, true)}
onMouseOut={this._setAnchorVisibility.bind(this, false)}