Merge branch 'master' into refactor/sidebar-height-spacing

This commit is contained in:
squidfunk 2017-01-26 23:08:31 +01:00
commit 33616c7deb
3 changed files with 15 additions and 10 deletions

View File

@ -45,7 +45,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-fe760eefaa.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d548d09cd7.css">
{% if config.extra.palette %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %} {% endif %}

View File

@ -80,18 +80,23 @@
} }
} }
// Correct headline offset with padding due to margin layering
h1[id] {
padding-top: 0.8rem;
// Hide anchor for top-level heading, as it makes no sense // Hide anchor for top-level heading, as it makes no sense
h1[id] .headerlink { &.headerlink {
display: none; display: none;
} }
}
// Correct anchor offset for link blurring // Correct anchor offset for link blurring
@each $level, $delta in ( @each $level, $delta in (
h2: 0.2rem, h2: 0.4rem,
h3: 0.4rem, h3: 0.7rem,
h4: 0.6rem, h4: 0.8rem,
h5: 1rem, h5: 1.1rem,
h6: 1rem h6: 1.1rem
) { ) {
// Un-targeted anchor // Un-targeted anchor