Skip to content

Commit 6366caf

Browse files
authored
UX: fix alignment for RTL languages (#67)
1 parent 91741e4 commit 6366caf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

common/common.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ $max-width: 600px;
8787
line-height: 1;
8888
color: var(--primary-medium);
8989
height: 100%;
90-
padding-right: 0.25em;
9190
position: absolute;
91+
left: 0;
92+
.rtl & {
93+
right: 0;
94+
left: unset;
95+
}
96+
9297
.discourse-no-touch & {
9398
&:hover {
9499
background: transparent;
@@ -100,6 +105,10 @@ $max-width: 600px;
100105
}
101106
+ .search-menu-container .search-input {
102107
padding-left: 1.75em;
108+
.rtl & {
109+
padding-left: unset;
110+
padding-right: 1.75em;
111+
}
103112
}
104113
+ .search-menu-container .search-input .search-context {
105114
margin-left: 4px;

0 commit comments

Comments
 (0)