Skip to content

Commit 4fc155f

Browse files
some styling updates (smaller max-width, more margin around h1)
1 parent 54fa93f commit 4fc155f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

web/pandas/_templates/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@
5656
</nav>
5757
</header>
5858
<main role="main">
59-
<div class="container">
59+
{% block body_container %}
60+
<div class="container container-main">
6061
{% block body %}{% endblock %}
6162
</div>
63+
{% endblock %}
6264
</main>
6365
<footer class="container pt-4 pt-md-5 border-top">
6466
<ul class="list-inline social-buttons float-end">

web/pandas/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "layout.html" %}
2-
{% block body %}
2+
{% block body_container %}
33
<div class="container">
44
<div class="row">
55
<div class="col-md-9">

web/pandas/static/css/pandas.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ h1 {
99
font-size: 2.4rem;
1010
font-weight: 700;
1111
color: #130654;
12+
margin: 2.4rem 0 2.4rem;
1213
}
1314
h2 {
1415
font-size: 1.8rem;
@@ -136,6 +137,12 @@ h2:hover a.headerlink, h3:hover a.headerlink {
136137
transition: opacity 0.5s;
137138
}
138139

140+
@media (min-width: 992px) {
141+
.container-main {
142+
max-width: 960px;
143+
}
144+
}
145+
139146

140147
/** Copied from the pydata-sphinx-theme **/
141148
div.admonition, .admonition {

0 commit comments

Comments
 (0)