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

Fixed inconsistent scaling of line numbers for smaller code blocks

This commit is contained in:
squidfunk 2020-11-03 17:54:36 +01:00
parent af17dad6f5
commit aaa65f4df6
6 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.fd16492e.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.4ac00218.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.813c30d6.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.813c30d6.min.css.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.2cb7adb3.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.2cb7adb3.min.css.map",
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.88a3f51b.min.css",
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.88a3f51b.min.css.map",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.f0267088.min.css",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.813c30d6.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2cb7adb3.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f0267088.min.css' | url }}">

View File

@ -183,7 +183,7 @@
// Disable user selection, so code can be easily copied without
// accidentally also copying the line numbers
.linenos {
padding: px2rem(10.5px) px2em(16px, 13.6px);
padding: px2em(10.5px, 13.6px) px2em(16px, 13.6px);
padding-right: 0;
font-size: px2em(13.6px);
background-color: var(--md-code-bg-color);