mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-13 18:40:54 +01:00
Added background color to code blocks in hovered links
This commit is contained in:
parent
71dd84a0e9
commit
6b91c8dc10
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 %}
|
||||
{% endblock %}
|
||||
{% 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 %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||
|
@ -170,6 +170,16 @@ kbd {
|
||||
&:focus,
|
||||
&:hover {
|
||||
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
|
||||
@ -200,6 +210,7 @@ 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) {
|
||||
@ -208,11 +219,6 @@ kbd {
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure link color in code blocks
|
||||
a code {
|
||||
color: currentcolor;
|
||||
}
|
||||
|
||||
// Unformatted content
|
||||
pre {
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user