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

Merge pull request #109 from squidfunk/fix/horizontal-scrollbar-in-content-area

Remove float on inner content area
This commit is contained in:
Martin Donath 2017-01-14 22:45:06 +01:00 committed by GitHub
commit e3ac58a7c6
3 changed files with 4 additions and 6 deletions

View File

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

View File

@ -35,8 +35,8 @@
// [screen +]: Add space for table of contents
@include break-from-device(screen) {
margin-left: 24.2rem;
// Hack: setting overflow to auto is necessary in combination with floating
// the inner container left, as this omits massive repaints
// Hack: setting overflow to auto induces margin collapse which omits
// massive repaints because of the margins of the inner elements
overflow: auto;
}
@ -47,8 +47,6 @@
// [screen +]: Increase spacing
@include break-from-device(screen) {
margin: 2.4rem;
// Hack: necessary to omit massive repaints when scrolling
float: left;
// Hack: remove bottom spacing, due to margin collapse
:last-child {