Fixed horizontal scrollbar between 1220px and 1234px

This commit is contained in:
squidfunk 2017-11-01 18:07:15 +01:00 committed by Martin Donath
parent a0308b0dce
commit 9b0bbe2e04
5 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,8 @@
mkdocs-material-2.x.x (2017-xx-xx)
* Added Russian translations
* Fixed #553: meta title and description only renders first character
* Fixed #542: Horizontal scrollbar between 1220px and 1234px
* Fixed #553: Metadata values only rendering first character
* Fixed favicon regression caused by deprecation upstream
mkdocs-material-2.0.1 (2017-10-31)

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@
<script src="{{ base_url }}/assets/javascripts/modernizr-e826f8942a.js"></script>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-462a8722ef.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-cc1e7c17e0.css">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-23f75ab9c7.palette.css">
{% endif %}
@ -139,7 +139,7 @@
{% block source %}
{% if page.meta.source %}
<h2 id="__source">{{ lang.t("meta.source") }}</h2>
{% set path = (page.meta.path | default([""])) %}
{% set path = page.meta.path | default([""]) %}
{% set file = page.meta.source %}
<a href="{{ [config.repo_url, path, file] | join('/') }}" title="{{ file }}" class="md-source-file">
{{ file }}

View File

@ -37,6 +37,12 @@ $md-toggle__drawer--checked:
html {
height: 100%;
font-size: 62.5%;
// Hack: some browsers on some operating systems don't account for scroll
// bars when firing media queries, so we need to do this for safety. This
// currently impacts the table of contents component between 1220 and 1234px
// and is to current knowledge not fixable.
overflow-x: hidden;
overflow-y: scroll;
// [screen medium +]: Set base font-size to 11px
@include break-from-device(screen medium) {

View File

@ -264,7 +264,7 @@
{% block source %}
{% if page.meta.source %}
<h2 id="__source">{{ lang.t("meta.source") }}</h2>
{% set path = (page.meta.path | default([""])) %}
{% set path = page.meta.path | default([""]) %}
{% set file = page.meta.source %}
<a href="{{ [config.repo_url, path, file] | join('/') }}"
title="{{ file }}" class="md-source-file">