10000 Fixed some spacing issues for right-to-left languages · squidfunk/mkdocs-material@2d3354b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d3354b

Browse files
committed
Fixed some spacing issues for right-to-left languages
1 parent 12666a3 commit 2d3354b

File tree

7 files changed

+19
-13
lines changed

7 files changed

+19
-13
lines changed

material/assets/stylesheets/main.1c75ef36.min.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.1c75ef36.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.5a8d6a6f.min.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

material/assets/stylesheets/main.5a8d6a6f.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% endif %}
4040
{% endblock %}
4141
{% block styles %}
42-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5a8d6a6f.min.css' | url }}">
42+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1c75ef36.min.css' | url }}">
4343
{% if config.theme.palette %}
4444
{% set palette = config.theme.palette %}
4545
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">

src/assets/stylesheets/main/layout/_nav.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@
305305
margin-right: px2rem(-4px);
306306
font-size: px2rem(24px);
307307

308+
// Adjust for right-to-left languages
309+
[dir="rtl"] & {
310+
margin-right: 0;
311+
margin-left: px2rem(-4px);
312+
}
313+
308314
// Navigation icon in link to next level
309315
&::after {
310316
display: block;

src/assets/stylesheets/main/layout/_source.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,22 +161,22 @@
161161
mask-repeat: no-repeat;
162162
mask-size: contain;
163163
content: "";
164+
165+
// Adjust for right-to-left languages
166+
[dir="rtl"] & {
167+
margin-right: initial;
168+
margin-left: px2rem(2px);
169+
}
164170
}
165171

166172
// Adjust spacing for repository fact icon
167173
&:nth-child(1n+2)::before {
168174
margin-left: px2rem(8px);
169-
}
170175

171-
// Adjust for right-to-left languages
172-
[dir="rtl"] & {
173-
margin-right: initial;
174-
margin-left: px2rem(2px);
175-
176-
// Adjust spacing for repository fact icon
177-
&:nth-child(1n+2)::before {
176+
// Adjust for right-to-left languages
177+
[dir="rtl"] & {
178178
margin-right: px2rem(8px);
179-
margin-left: initial;
179+
margin-left: px2rem(2px);
180180
}
181181
}
182182

0 commit comments

Comments
 (0)
0