Removed unnecessary box shadows on inline code blocks

This commit is contained in:
squidfunk 2020-04-06 14:36:41 +02:00
parent 74fb073b25
commit 34b7d6502c
8 changed files with 11 additions and 23 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.091f8c32.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.091f8c32.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.d28521c5.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d28521c5.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.898d9115.min.css",
"assets/stylesheets/main.css": "assets/stylesheets/main.c3000690.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.898d9115.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.c3000690.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.091f8c32.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.d28521c5.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -163,14 +163,11 @@ kbd {
// Inline code blocks
code {
margin: 0 px2em(4px, 13.6px);
padding: 0 px2em(4px, 13.6px);
font-size: px2em(13.6px);
word-break: break-word;
background-color: var(--md-code-bg-color);
border-radius: px2rem(2px);
box-shadow:
px2em( 4px, 13.6px) 0 0 var(--md-code-bg-color),
px2em(-4px, 13.6px) 0 0 var(--md-code-bg-color);
box-decoration-break: clone;
}
@ -258,13 +255,10 @@ kbd {
// Text highlighting marker
mark {
margin: 0 px2em(4px, 16px);
padding: 0 px2em(4px, 16px);
word-break: break-word;
background-color: transparentize($clr-yellow-500, 0.5);
border-radius: px2rem(2px);
box-shadow:
px2em( 4px, 16px) 0 0 transparentize($clr-yellow-500, 0.5),
px2em(-4px, 16px) 0 0 transparentize($clr-yellow-500, 0.5);
box-decoration-break: clone;
}

View File

@ -31,7 +31,7 @@
del.critic,
ins.critic,
.critic.comment {
margin: 0 px2em(4px, 16px);
padding: 0 px2em(4px, 16px);
border-radius: px2rem(2px);
box-decoration-break: clone;
}
@ -39,17 +39,11 @@
// Deletion
del.critic {
background-color: $codehilite-diff-deleted;
box-shadow:
px2em( 4px, 16px) 0 0 $codehilite-diff-deleted,
px2em(-4px, 16px) 0 0 $codehilite-diff-deleted;
}
// Addition
ins.critic {
background-color: $codehilite-diff-inserted;
box-shadow:
px2em( 4px, 16px) 0 0 $codehilite-diff-inserted,
px2em(-4px, 16px) 0 0 $codehilite-diff-inserted;
}
// Comment