mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added background color to code blocks in hovered links
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.644de097.min.css
vendored
Normal file
1
material/assets/stylesheets/main.644de097.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.644de097.min.css.map
Normal file
1
material/assets/stylesheets/main.644de097.min.css.map
Normal file
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.36ad6006.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.644de097.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.e6a45f82.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||||
|
|||||||
@@ -170,6 +170,16 @@ kbd {
|
|||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--md-accent-fg-color);
|
color: var(--md-accent-fg-color);
|
||||||
|
|
||||||
|
// Inline code block
|
||||||
|
code {
|
||||||
|
background-color: var(--md-accent-fg-color--transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inline code block
|
||||||
|
code {
|
||||||
|
color: currentcolor;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show outline for keyboard devices
|
// Show outline for keyboard devices
|
||||||
@@ -200,6 +210,7 @@ kbd {
|
|||||||
background-color: var(--md-code-bg-color);
|
background-color: var(--md-code-bg-color);
|
||||||
border-radius: px2rem(2px);
|
border-radius: px2rem(2px);
|
||||||
box-decoration-break: clone;
|
box-decoration-break: clone;
|
||||||
|
transition: background-color 125ms;
|
||||||
|
|
||||||
// Hide outline for pointer devices
|
// Hide outline for pointer devices
|
||||||
&:not(.focus-visible) {
|
&:not(.focus-visible) {
|
||||||
@@ -208,11 +219,6 @@ kbd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure link color in code blocks
|
|
||||||
a code {
|
|
||||||
color: currentcolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unformatted content
|
// Unformatted content
|
||||||
pre {
|
pre {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Reference in New Issue
Block a user