Skip to content

Commit

Permalink
Fixed some spacing issues for right-to-left languages
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Oct 2, 2021
1 parent 12666a3 commit 2d3354b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
2 changes: 2 additions & 0 deletions material/assets/stylesheets/main.1c75ef36.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.1c75ef36.min.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions material/assets/stylesheets/main.5a8d6a6f.min.css

This file was deleted.

1 change: 0 additions & 1 deletion material/assets/stylesheets/main.5a8d6a6f.min.css.map

This file was deleted.

2 changes: 1 addition & 1 deletion material/base.html
Expand Up @@ -39,7 +39,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5a8d6a6f.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1c75ef36.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">
Expand Down
6 changes: 6 additions & 0 deletions src/assets/stylesheets/main/layout/_nav.scss
Expand Up @@ -305,6 +305,12 @@
margin-right: px2rem(-4px);
font-size: px2rem(24px);

// Adjust for right-to-left languages
[dir="rtl"] & {
margin-right: 0;
margin-left: px2rem(-4px);
}

// Navigation icon in link to next level
&::after {
display: block;
Expand Down
18 changes: 9 additions & 9 deletions src/assets/stylesheets/main/layout/_source.scss
Expand Up @@ -161,22 +161,22 @@
mask-repeat: no-repeat;
mask-size: contain;
content: "";

// Adjust for right-to-left languages
[dir="rtl"] & {
margin-right: initial;
margin-left: px2rem(2px);
}
}

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

// Adjust for right-to-left languages
[dir="rtl"] & {
margin-right: initial;
margin-left: px2rem(2px);

// Adjust spacing for repository fact icon
&:nth-child(1n+2)::before {
// Adjust for right-to-left languages
[dir="rtl"] & {
margin-right: px2rem(8px);
margin-left: initial;
margin-left: px2rem(2px);
}
}

Expand Down

0 comments on commit 2d3354b

Please sign in to comment.