mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Remove float on inner content area
This commit is contained in:
parent
b54813ffd8
commit
e0855d4002
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user