Skip to content

Commit 044c27b

Browse files
committed
refactor: adjust archive styles for improved RTL layout
1 parent 5cfd4f1 commit 044c27b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_sass/base/_rtl.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,16 @@ html[dir='rtl'] {
204204

205205
/* Archives */
206206
#archives {
207+
$timeline-width: 4px;
208+
207209
.year {
208-
margin-left: 0;
209-
margin-right: -4px;
210+
right: 2px;
211+
margin-right: -$timeline-width;
210212

211213
&::before {
212214
left: auto;
213215
right: 79px;
216+
float: right;
214217
}
215218

216219
&::after {
@@ -223,6 +226,7 @@ html[dir='rtl'] {
223226
&::before {
224227
left: auto;
225228
right: 77px;
229+
float: right;
226230
}
227231
}
228232

0 commit comments

Comments
 (0)