Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-pages.css: override markbind's default
container-fluid
styling
MarkBind automatically wraps the entire document in a div with the `container-fluid` style class set: <div id="app" class="container-fluid"> ... the document ... </div> Bootstrap defines the container-fluid style class to have padding on the left and right: .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } This makes our top navigation bar have empty space on the left and right, which looks ugly. Unfortunately, we can't remove the container-fluid style class since MarkBind controls that part of the rendering. So, let's fix this by overriding the container-fluid style rules on #app in our gh-pages.css file. MarkBind's default footer styling actually uses a (rather strange) workaround: footer { margin-left: -15px; margin-right: -15px; } Once the #app.container-fluid padding is overridden, footer's workaround is no longer needed (and in fact will produce worse results by adding scrollbars to the document since its margins will extend outside the document). So, let's workaround footer's workaround by overriding it.
- Loading branch information