1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Fixed direction for code annotations in right-to-left languages

This commit is contained in:
squidfunk 2021-12-13 17:17:00 +01:00
parent 539ddad271
commit 1453e946fb
4 changed files with 8 additions and 3 deletions

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cf6950a3.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.23b6d78a.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

View File

@ -136,6 +136,11 @@
white-space: normal;
outline: none;
// Adjust for right-to-left languages
[dir="rtl"] & {
direction: rtl;
}
// Annotation is not hidden (e.g. when copying)
&:not([hidden]) {
display: inline-block;