Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/anchor all elements #283

Merged
merged 5 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pydata_sphinx_theme/static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

{% macro head_pre_bootstrap() %}
<link href="{{ pathto('_static/css/theme.css', 1) }}" rel="stylesheet" />
<link href="{{ pathto('_static/css/index.b3fa5b9aeac04ae33e0073fadc1130d8.css', 1) }}" rel="stylesheet" />
<link href="{{ pathto('_static/css/index.4eb26a98c046fa117c2b75e31c15adbb.css', 1) }}" rel="stylesheet" />
{% endmacro %}

{% macro head_js_preload() %}
<link rel="preload" as="script" href="{{ pathto('_static/js/index.2e394030c035d5864108.js', 1) }}">
<link rel="preload" as="script" href="{{ pathto('_static/js/index.3edd59071b60732de7f5.js', 1) }}">
{% endmacro %}

{% macro body_post() %}
<script src="{{ pathto('_static/js/index.2e394030c035d5864108.js', 1) }}"></script>
<script src="{{ pathto('_static/js/index.3edd59071b60732de7f5.js', 1) }}"></script>
{% endmacro %}
16 changes: 4 additions & 12 deletions src/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ a {
font-family: var(--font-family-heading);
font-weight: 400;
line-height: 1.15;

&::before {
// offsetting html anchor titles to adjust for fixed header
display: block;
content: '';
height: 80px;
margin: -80px 0 0;
}
}

h1 {
Expand Down Expand Up @@ -117,13 +109,13 @@ pre {
box-shadow: 1px 1px 1px #d8d8d8;
}

dt[id]:not([id='']) {
// offsetting html elements with anchor attached to adjust for fixed header
:target {
&::before {
// offsetting html anchor titles to adjust for fixed header
display: block;
content: '';
height: 80px;
margin: -80px 0 0;
height: 60px;
margin: -60px 0 0;
background-color: white;
}
}