1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Reset font-size on body for correct inline spacing

This commit is contained in:
squidfunk 2019-02-12 19:21:14 +01:00
parent d088733747
commit 946f4f1509
5 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.0279f501.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.18bd1ba2.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}">
{% endif %}
@ -190,7 +190,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/application.daa9a053.js' | url }}"></script>
<script src="{{ 'assets/javascripts/application.c5c8ade4.js' | url }}"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -64,6 +64,9 @@ html {
body {
position: relative;
height: 100%;
// Hack: reset font-size to 10px, so the spacing for all inline elements is
// correct again. Otherwise the spacing would be based on 20px.
font-size: 0.5rem;
// [tablet portrait -]: Lock body to disable scroll bubbling
@include break-to-device(tablet portrait) {