Remove float on inner content area

This commit is contained in:
squidfunk 2017-01-14 22:40:55 +01:00
parent b54813ffd8
commit e0855d4002
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"> <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-e0a21a99ab.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-40db29787e.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

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