Fix documention header styles (#1742)

This commit is contained in:
Paul McBride 2017-06-03 20:01:13 +01:00 committed by Adam Miskiewicz
parent 3abbb950e8
commit 48b09bfdae
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,10 @@ body, #root, html {
.md-header:hover a {
visibility: visible;
}
.link-header a:first-of-type {
visibility: visible;
color: #182026;
}
.nextLink {
float: right;
}

View File

@ -64,8 +64,10 @@ const MDPage = ({ navigation, docPath }) => (
})
.join('-');
const Header = getHeadingForLevel(level);
const linkHeader = id ? '' : 'link-header';
const className = `md-header ${linkHeader}`;
return (
<Header id={id} className="md-header">
<Header id={id} className={className}>
{children} <a href={`#${id}`} title={children}>#</a>
</Header>
);