diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2018-02-02 07:24:00 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2018-02-02 07:24:00 +0300 |
commit | 544ef61750d760501267258205e349ce08ca57cb (patch) | |
tree | c628582688f3df3be7e5fbe06e98421f2e6aa5e2 /content | |
parent | ee40b522d79d97ce22cdeaaa3e71c4cec7d96b7d (diff) |
Add title independent of markdown content
So the frontmatter data can be displayed right below the title
See https://gitlab.com/gitlab-com/gitlab-docs/issues/157#note_57237814
Diffstat (limited to 'content')
-rw-r--r-- | content/assets/javascripts/docs.js | 2 | ||||
-rw-r--r-- | content/assets/stylesheets/stylesheet.scss | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/content/assets/javascripts/docs.js b/content/assets/javascripts/docs.js index ae70aad0..4d894590 100644 --- a/content/assets/javascripts/docs.js +++ b/content/assets/javascripts/docs.js @@ -10,7 +10,7 @@ function toggleNavigation() { // move document nav to sidebar (function() { - var nav = document.querySelectorAll('.breadcrumbs +ul'); + var nav = document.querySelectorAll('.js-article-content > ul:first-child'); var main = document.querySelectorAll('.main.class'); // if the document has a top level nav diff --git a/content/assets/stylesheets/stylesheet.scss b/content/assets/stylesheets/stylesheet.scss index c03020ca..0d7c4bbe 100644 --- a/content/assets/stylesheets/stylesheet.scss +++ b/content/assets/stylesheets/stylesheet.scss @@ -164,8 +164,6 @@ h6 { padding: 20px 40px; position: relative; width: auto; - display: flex; - flex-direction: column; max-width: 900px; box-shadow: 0 3px 3px $main-box-shadow; background: $main-background-color; @@ -259,7 +257,6 @@ h6 { .breadcrumbs { margin: 0; - order: -3; font-style: italic; li { @@ -428,10 +425,12 @@ h6 { font-style: italic; margin-bottom: 15px; } -.main h1 { - order: -2; + +.article-content { + > h1:first-of-type { + display: none; + } } -// // Override bootstrap's alert color .alert { |