mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Mitigate flicker on code blocks when switching color scheme
This commit is contained in:
parent
c86a724d5b
commit
041e95b505
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 %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8ab0c697.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.75693d7e.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||
|
@ -180,6 +180,7 @@ kbd {
|
||||
// Inline code block
|
||||
code {
|
||||
color: currentcolor;
|
||||
transition: background-color 125ms;
|
||||
}
|
||||
|
||||
// Show outline for keyboard devices
|
||||
@ -210,7 +211,6 @@ kbd {
|
||||
background-color: var(--md-code-bg-color);
|
||||
border-radius: px2rem(2px);
|
||||
box-decoration-break: clone;
|
||||
transition: background-color 125ms;
|
||||
|
||||
// Hide outline for pointer devices
|
||||
&:not(.focus-visible) {
|
||||
|
Loading…
Reference in New Issue
Block a user