Skip to content

Commit 676d34b

Browse files
withloveewaylan
authored andcommitted
Proper use of bootstrap grid (#15)
* Use bootstrap grid properly * Put <div class="row"> inside 'block content' * Move <hr> up so that it stretches across the window
1 parent 552a78a commit 676d34b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

mkdocs_bootstrap/base.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@
6060

6161
<div class="container">
6262
{%- block content %}
63-
<div class="col-md-3">{% include "toc.html" %}</div>
64-
<div class="col-md-9" role="main">{% include "content.html" %}</div>
63+
<div class="row">
64+
<div class="col-md-3">{% include "toc.html" %}</div>
65+
<div class="col-md-9" role="main">{% include "content.html" %}</div>
66+
</div>
6567
{%- endblock %}
6668
</div>
6769

68-
<footer class="col-md-12">
70+
<hr>
71+
<footer class="container">
6972
{%- block footer %}
70-
<hr>
7173
{% if config.copyright %}
7274
<center>{{ config.copyright }}</center>
7375
{% endif %}

mkdocs_bootstrap/css/base.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ ul.nav li.main {
1313
font-weight: bold;
1414
}
1515

16-
div.col-md-3 {
17-
padding-left: 0;
18-
}
19-
2016
div.col-md-9 {
2117
padding-bottom: 100px;
2218
}

0 commit comments

Comments
 (0)