Fixed some spacings issues for right-to-left languages

This commit is contained in:
squidfunk 2021-10-17 12:31:15 +02:00
parent f9f4857af7
commit 53be9f3ec5
6 changed files with 14 additions and 6 deletions

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

@ -39,7 +39,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5d519cf3.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.db9e7362.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">

View File

@ -45,7 +45,11 @@
// Sidebar with navigation is visible
.md-sidebar--primary:not([hidden]) ~ .md-content > & {
// Adjust for left-to-right languages
[dir="ltr"] & {
margin-left: px2rem(24px);
}
// Adjust for right-to-left languages
[dir="rtl"] & {
@ -55,7 +59,11 @@
// Sidebar with table of contents is visible
.md-sidebar--secondary:not([hidden]) ~ .md-content > & {
// Adjust for left-to-right languages
[dir="ltr"] & {
margin-right: px2rem(24px);
}
// Adjust for right-to-left languages
[dir="rtl"] & {