1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 15:40:15 +01:00

Fixed copy-to-clipboard button overlaying code blocks

This commit is contained in:
squidfunk 2020-08-01 19:16:07 +02:00
parent ee090a89ca
commit a217be3ebd
7 changed files with 13 additions and 7 deletions

View File

@ -5,8 +5,8 @@
"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.map": "assets/javascripts/worker/search.01088dc6.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.6d8ac7ac.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.6d8ac7ac.min.css.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.9ab9a68d.min.css",
"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.map": "assets/stylesheets/overrides.76317e44.min.css.map",
"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

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.6d8ac7ac.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9ab9a68d.min.css' | url }}">
{% if palette.scheme or palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.57a52cf1.min.css' | url }}">
{% endif %}

View File

@ -33,6 +33,7 @@
width: px2em(24px);
height: px2em(24px);
color: var(--md-default-fg-color--lightest);
background-color: var(--md-code-bg-color);
border-radius: px2rem(2px);
cursor: pointer;
transition: color 125ms;
@ -42,6 +43,11 @@
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
svg {
width: px2em(18px);