mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed code blocks with line numbers not being rounded (8.0.0b1 regression)
This commit is contained in:
parent
0f5cba40ac
commit
1d6d8198ab
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.1eb8fdc6.min.css.map
Normal file
1
material/assets/stylesheets/main.1eb8fdc6.min.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 }}">
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user