mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 11:36:53 +02:00
CSS revamp - Improve typography and overall styling (#757)
* Improve CSS code * Fix blog layout * Fix * Refactor onPageNav * More fixes * Fix docs nav * Use alternative hack * Tweak clearfix
This commit is contained in:
parent
169a5e6ded
commit
1094dbd352
18 changed files with 1474 additions and 1114 deletions
|
@ -43,17 +43,11 @@ class Site extends React.Component {
|
|||
}
|
||||
|
||||
// We do not want a lang attribute for the html tag if we don't have a language set
|
||||
let htmlElementProps;
|
||||
const htmlElementProps = {};
|
||||
if (this.props.language) {
|
||||
htmlElementProps = {
|
||||
lang: this.props.language,
|
||||
};
|
||||
} else {
|
||||
htmlElementProps = {};
|
||||
htmlElementProps.lang = this.props.language;
|
||||
}
|
||||
|
||||
const className = this.props.className || '';
|
||||
|
||||
return (
|
||||
<html {...htmlElementProps}>
|
||||
<Head
|
||||
|
@ -64,11 +58,7 @@ class Site extends React.Component {
|
|||
language={this.props.language}
|
||||
version={this.props.version}
|
||||
/>
|
||||
<body
|
||||
className={classNames({
|
||||
[className]: className,
|
||||
separateOnPageNav: this.props.config.onPageNav == 'separate',
|
||||
})}>
|
||||
<body className={this.props.className}>
|
||||
<HeaderNav
|
||||
config={this.props.config}
|
||||
baseUrl={this.props.config.baseUrl}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue