Improved rendering of inline code blocks in Admonitions

This commit is contained in:
squidfunk 2020-04-05 13:20:36 +02:00
parent 00ad2d74d6
commit bb36045973
8 changed files with 13 additions and 11 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.dd105161.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.dd105161.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.0a2578d7.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.0a2578d7.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.5b460a48.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.5b460a48.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7f7c8775.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.7f7c8775.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.7584781b.min.css",
"assets/stylesheets/main.css": "assets/stylesheets/main.edefba4e.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.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

@ -41,7 +41,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7584781b.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.edefba4e.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
{% endif %}
@ -179,7 +179,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.5b460a48.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.dd105161.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.0a2578d7.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -164,7 +164,6 @@ kbd {
// Inline code blocks
code {
margin: 0 px2em(4px, 13.6px);
padding: px2em(1px, 13.6px) 0;
font-size: px2em(13.6px);
word-break: break-word;
background-color: var(--md-code-bg-color);
@ -260,7 +259,6 @@ kbd {
// Text highlighting marker
mark {
margin: 0 px2em(4px, 16px);
padding: px2em(1px, 16px) 0;
word-break: break-word;
background-color: transparentize($clr-yellow-500, 0.5);
border-radius: px2rem(2px);

View File

@ -32,11 +32,15 @@
ins.critic,
.critic.comment {
margin: 0 px2em(4px, 16px);
padding: px2em(1px, 16px) 0;
border-radius: px2rem(2px);
box-decoration-break: clone;
}
// Induce margin collapse
.critic.block {
overflow: auto;
}
// Deletion
del.critic {
background-color: $codehilite-diff-deleted;