diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-12 16:07:28 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-12 16:07:28 +0200 |
commit | 52d03846055708a1e7e780ec19e761dc9f422b58 (patch) | |
tree | c8100468fc46e5e2c6cbf5d4fb3f0b4945840e41 /packages | |
parent | 961b9d7031347c2c108b22c9c4cf85ce3e0c63d0 (diff) | |
download | gitbook-52d03846055708a1e7e780ec19e761dc9f422b58.zip gitbook-52d03846055708a1e7e780ec19e761dc9f422b58.tar.gz gitbook-52d03846055708a1e7e780ec19e761dc9f422b58.tar.bz2 |
Improve some CSS for default theme
Diffstat (limited to 'packages')
5 files changed, 13 insertions, 10 deletions
diff --git a/packages/gitbook-plugin-headings/_assets/website/headings.css b/packages/gitbook-plugin-headings/_assets/website/headings.css index 2d98332..b606ab6 100644 --- a/packages/gitbook-plugin-headings/_assets/website/headings.css +++ b/packages/gitbook-plugin-headings/_assets/website/headings.css @@ -1,6 +1,3 @@ -.Page { - overflow: visible; -} .Headings-Container { position: relative; diff --git a/packages/gitbook-plugin-theme-default/less/Page.less b/packages/gitbook-plugin-theme-default/less/Page.less index 979377c..bd709dd 100644 --- a/packages/gitbook-plugin-theme-default/less/Page.less +++ b/packages/gitbook-plugin-theme-default/less/Page.less @@ -7,6 +7,7 @@ padding: 20px 15px 40px 15px; .gitbook-markdown(@md-color: @page-color, @md-line-height: @page-line-height); + overflow: visible; .glossary-term { cursor: help; diff --git a/packages/gitbook-plugin-theme-default/less/Sidebar.less b/packages/gitbook-plugin-theme-default/less/Sidebar.less index 8e159dc..82d4165 100644 --- a/packages/gitbook-plugin-theme-default/less/Sidebar.less +++ b/packages/gitbook-plugin-theme-default/less/Sidebar.less @@ -3,4 +3,5 @@ background: @sidebar-background; background: rgb(250, 250, 250); border-right: 1px solid @sidebar-border-color; + overflow-y: auto; } diff --git a/packages/gitbook-plugin-theme-default/less/Summary.less b/packages/gitbook-plugin-theme-default/less/Summary.less index e717d63..d6ad42d 100644 --- a/packages/gitbook-plugin-theme-default/less/Summary.less +++ b/packages/gitbook-plugin-theme-default/less/Summary.less @@ -3,12 +3,16 @@ } .SummaryPart { - > h1 { - padding: @summary-article-padding-v @summary-article-padding-h; - padding-top: 20px; - text-transform: uppercase; - color: @summary-header-color; - } + +} + +.SummaryPart-Title { + padding: @summary-article-padding-v @summary-article-padding-h; + padding-top: 20px; + text-transform: uppercase; + color: @summary-header-color; + font-size: inherit; + font-weight: inherit; } .SummaryArticles { diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js index 01f3044..d0fbde6 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Summary.js +++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js @@ -58,7 +58,7 @@ const SummaryPart = React.createClass({ const { part } = this.props; const { title, articles } = part; - const titleEL = title ? <h2>{title}</h2> : null; + const titleEL = title ? <h2 className="SummaryPart-Title">{title}</h2> : null; return ( <GitBook.InjectedComponent matching={{ role: 'summary:part' }} props={this.props}> |