aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-24 16:28:18 +0800
committerFabio Berger <me@fabioberger.com>2018-04-24 16:28:18 +0800
commit4c5a632095ce6394d5b8c0cc68d56ca90b95c28f (patch)
treea98ddb2dfa620406152f5ae812263f3698641fd6 /packages/react-shared/src/components
parent870693b968de3f29b0ac97f6f92715613e1064e3 (diff)
downloaddexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar.gz
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar.bz2
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar.lz
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar.xz
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.tar.zst
dexon-sol-tools-4c5a632095ce6394d5b8c0cc68d56ca90b95c28f.zip
Revert "Fix CI test failure"
This reverts commit 870693b968de3f29b0ac97f6f92715613e1064e3.
Diffstat (limited to 'packages/react-shared/src/components')
-rw-r--r--packages/react-shared/src/components/anchor_title.tsx17
1 files changed, 7 insertions, 10 deletions
diff --git a/packages/react-shared/src/components/anchor_title.tsx b/packages/react-shared/src/components/anchor_title.tsx
index 33bb3f684..f44354097 100644
--- a/packages/react-shared/src/components/anchor_title.tsx
+++ b/packages/react-shared/src/components/anchor_title.tsx
@@ -27,6 +27,12 @@ const styles: Styles = {
transform: 'rotate(45deg)',
cursor: 'pointer',
},
+ headers: {
+ WebkitMarginStart: 0,
+ WebkitMarginEnd: 0,
+ fontWeight: 'bold',
+ display: 'block',
+ },
h1: {
fontSize: '1.8em',
},
@@ -52,16 +58,7 @@ export class AnchorTitle extends React.Component<AnchorTitleProps, AnchorTitleSt
opacity = this.state.isHovering ? 0.6 : 1;
}
return (
- <div
- className="relative flex"
- style={{
- ...styles[this.props.headerSize],
- fontWeight: 'bold',
- display: 'block',
- WebkitMarginStart: 0,
- WebkitMarginEnd: 0,
- }}
- >
+ <div className="relative flex" style={{ ...styles[this.props.headerSize], ...styles.headers }}>
<div className="inline-block" style={{ paddingRight: 4 }}>
{this.props.title}
</div>