mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed copy-to-clipboard button overlaying code blocks
This commit is contained in:
parent
ee090a89ca
commit
a217be3ebd
@ -5,8 +5,8 @@
|
|||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.82f1750e.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.82f1750e.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.01088dc6.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.01088dc6.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.01088dc6.min.js.map",
|
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.01088dc6.min.js.map",
|
||||||
"assets/stylesheets/main.css": "assets/stylesheets/main.6d8ac7ac.min.css",
|
"assets/stylesheets/main.css": "assets/stylesheets/main.9ab9a68d.min.css",
|
||||||
"assets/stylesheets/main.css.map": "assets/stylesheets/main.6d8ac7ac.min.css.map",
|
"assets/stylesheets/main.css.map": "assets/stylesheets/main.9ab9a68d.min.css.map",
|
||||||
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.76317e44.min.css",
|
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.76317e44.min.css",
|
||||||
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.76317e44.min.css.map",
|
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.76317e44.min.css.map",
|
||||||
"assets/stylesheets/palette.css": "assets/stylesheets/palette.57a52cf1.min.css",
|
"assets/stylesheets/palette.css": "assets/stylesheets/palette.57a52cf1.min.css",
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
material/assets/stylesheets/main.9ab9a68d.min.css
vendored
Normal file
3
material/assets/stylesheets/main.9ab9a68d.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.9ab9a68d.min.css.map
Normal file
1
material/assets/stylesheets/main.9ab9a68d.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -41,7 +41,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.6d8ac7ac.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9ab9a68d.min.css' | url }}">
|
||||||
{% if palette.scheme or palette.primary or palette.accent %}
|
{% if palette.scheme or palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.57a52cf1.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.57a52cf1.min.css' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
width: px2em(24px);
|
width: px2em(24px);
|
||||||
height: px2em(24px);
|
height: px2em(24px);
|
||||||
color: var(--md-default-fg-color--lightest);
|
color: var(--md-default-fg-color--lightest);
|
||||||
|
background-color: var(--md-code-bg-color);
|
||||||
border-radius: px2rem(2px);
|
border-radius: px2rem(2px);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: color 125ms;
|
transition: color 125ms;
|
||||||
@ -42,6 +43,11 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make room for clipboard button in case of overflowing code
|
||||||
|
.md-typeset & + code {
|
||||||
|
padding-right: px2em(24px + 2 * 8px, 13.6px);
|
||||||
|
}
|
||||||
|
|
||||||
// Slightly smaller icon
|
// Slightly smaller icon
|
||||||
svg {
|
svg {
|
||||||
width: px2em(18px);
|
width: px2em(18px);
|
||||||
|
Loading…
Reference in New Issue
Block a user