Skip to content

Commit 2a084c6

Browse files
author
Karl Brightman
committed
Move style guide title to sidebar
1 parent 1193f88 commit 2a084c6

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/rsg-components/Layout/Layout.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030

3131
.heading {
3232
composes: reset font from "../../styles/common.css";
33-
margin: 0 0 30px 0;
34-
font-size: 48px;
33+
composes: border from "../../styles/colors.css";
34+
border-width: 0 0 1px 0;
35+
margin: 0;
36+
font-size: 18px;
3537
font-weight: normal;
38+
display: block;
39+
padding: 15px;
3640
}
3741

3842
.empty {

src/rsg-components/Layout/Renderer.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ const Renderer = ({ title, components, toc }) => (
66
<div className={s.root}>
77
<main className={s.wrapper}>
88
<div className={s.content}>
9-
<h1 className={s.heading}>{title}</h1>
109
<div className={s.components}>
1110
{components}
1211
<footer className={s.footer}>
1312
Generated with <a className={s.link} href="https://github.com/sapegin/react-styleguidist">React Styleguidist</a>
1413
</footer>
1514
</div>
1615
</div>
17-
<div className={s.sidebar}>{toc}</div>
16+
<div className={s.sidebar}>
17+
<h1 className={s.heading}>{title}</h1>
18+
{toc}
19+
</div>
1820
</main>
1921
</div>
2022
);

src/rsg-components/TableOfContents/TableOfContents.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.root {
22
composes: reset font from "../../styles/common.css";
33
list-style-type: none;
4-
padding: 15px 30px;
4+
padding: 15px;
55
}
66

77
.item {

0 commit comments

Comments
 (0)