Fixed code blocks with line numbers not being rounded (8.0.0b1 regression)

This commit is contained in:
squidfunk 2021-11-14 08:47:16 +01:00
parent 0f5cba40ac
commit 1d6d8198ab
5 changed files with 10 additions and 8 deletions

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 %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.285ce4a3.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.1eb8fdc6.min.css' | url }}">
{% if config.theme.palette %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

View File

@ -169,7 +169,7 @@
} }
} }
// Code block line numbers (inline) // Code block line numbers (pymdownx-inline)
[data-linenos]::before { [data-linenos]::before {
position: sticky; position: sticky;
left: px2em(-16px, 13.6px); left: px2em(-16px, 13.6px);
@ -230,6 +230,8 @@
padding-right: 0; padding-right: 0;
font-size: px2em(13.6px); font-size: px2em(13.6px);
background-color: var(--md-code-bg-color); background-color: var(--md-code-bg-color);
border-top-left-radius: px2rem(2px);
border-bottom-left-radius: px2rem(2px);
user-select: none; user-select: none;
} }
@ -261,11 +263,11 @@
.highlighttable { .highlighttable {
margin: 1em 0; margin: 1em 0;
direction: ltr; direction: ltr;
border-radius: px2rem(2px);
// Omit rounded borders on contained code block // Remove rounded borders on left side
code { code {
border-radius: 0; border-top-right-radius: px2rem(2px);
border-bottom-right-radius: px2rem(2px);
} }
} }