Skip to content

Commit 9003b4b

Browse files
authored
Improve full width usage of content. (#141)
1 parent 84dd5ab commit 9003b4b

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

pydata_sphinx_theme/docs-navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="container-xl">
33

44
{% if logo %}
5-
<a class="col-5 col-md-3 navbar-brand" href="{{ pathto(master_doc) }}">
5+
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
66
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
77
</a>
88
{% endif %}

pydata_sphinx_theme/static/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/_navbar.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
}
44

55
.navbar-brand {
6+
position: relative;
7+
height: 45px;
8+
width: auto;
9+
610
img {
11+
max-width: 100%;
12+
height: 100%;
713
width: auto;
8-
height: 45px;
914
}
1015
}
1116

@@ -29,4 +34,4 @@
2934

3035
.navbar-header a {
3136
padding: 0 15px;
32-
}
37+
}

src/scss/index.scss

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
// override bootstrap variables
1+
// Override bootstrap variables
22
$spacer: 1rem;
3-
4-
// include core Bootstrap
3+
$container-max-widths: (
4+
sm: 540px,
5+
md: 720px,
6+
lg: 960px,
7+
xl: 1400px
8+
);
9+
10+
// Include core Bootstrap
511
@import '../../node_modules/bootstrap/scss/bootstrap';
612

7-
// import custom fonts
13+
// Import custom fonts
814
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400|Lato:400');
915

1016
@import './base';
1117
@import './navbar';
1218

13-
@media (min-width: 1500px) {
14-
.container,
15-
.container-sm,
16-
.container-md,
17-
.container-lg,
18-
.container-xl {
19-
max-width: 1400px;
20-
}
21-
}
19+
// Custom css, TODO: to be refactored in different partials
2220
.deprecated {
2321
margin-bottom: 10px;
2422
margin-top: 10px;

0 commit comments

Comments
 (0)