mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Fixed Admonition rendering for right-to-left languages
This commit is contained in:
parent
9bd185bc8e
commit
02260682ea
@ -238,7 +238,7 @@ to the left using only the `inline` modifier.
|
|||||||
_Example_:
|
_Example_:
|
||||||
|
|
||||||
``` markdown
|
``` markdown
|
||||||
!!! note inline end
|
!!! info inline end
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||||
massa, nec semper lorem quam in massa.
|
massa, nec semper lorem quam in massa.
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.fd16492e.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.fd16492e.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.4ac00218.min.js.map",
|
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.4ac00218.min.js.map",
|
||||||
"assets/stylesheets/main.css": "assets/stylesheets/main.5a75954c.min.css",
|
"assets/stylesheets/main.css": "assets/stylesheets/main.19753c6b.min.css",
|
||||||
"assets/stylesheets/main.css.map": "assets/stylesheets/main.5a75954c.min.css.map",
|
"assets/stylesheets/main.css.map": "assets/stylesheets/main.19753c6b.min.css.map",
|
||||||
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.9ed35d6f.min.css",
|
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.9ed35d6f.min.css",
|
||||||
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.9ed35d6f.min.css.map",
|
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.9ed35d6f.min.css.map",
|
||||||
"assets/stylesheets/palette.css": "assets/stylesheets/palette.196e0c26.min.css",
|
"assets/stylesheets/palette.css": "assets/stylesheets/palette.196e0c26.min.css",
|
||||||
|
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.19753c6b.min.css.map
Normal file
1
material/assets/stylesheets/main.19753c6b.min.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5a75954c.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.19753c6b.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.196e0c26.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.196e0c26.min.css' | url }}">
|
||||||
|
@ -125,6 +125,8 @@ $admonitions: (
|
|||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
margin: 0 px2rem(-16px) 0 px2rem(-12px);
|
margin: 0 px2rem(-16px) 0 px2rem(-12px);
|
||||||
padding: px2rem(8px) px2rem(40px) px2rem(8px) px2rem(12px);
|
padding: px2rem(8px) px2rem(40px) px2rem(8px) px2rem(12px);
|
||||||
|
border-right: px2rem(4px) solid $clr-blue-a200;
|
||||||
|
border-left: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset spacing, if title is the only element
|
// Reset spacing, if title is the only element
|
||||||
@ -146,7 +148,7 @@ $admonitions: (
|
|||||||
|
|
||||||
// Adjust for right-to-left languages
|
// Adjust for right-to-left languages
|
||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
right: px2rem(16px);
|
right: px2rem(12px);
|
||||||
left: initial;
|
left: initial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user