Skip to content

Commit cea6729

Browse files
authored
feat: add RTL support to docs/[...path] page (#362)
1 parent 9d1fce1 commit cea6729

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/pages/docs/[...path].vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const showEmptyState = computed(() => docsData.value?.status !== 'ok')
134134
<!-- Sidebar TOC -->
135135
<aside
136136
v-if="docsData?.toc && !showEmptyState"
137-
class="hidden lg:block w-64 xl:w-72 shrink-0 border-r border-border"
137+
class="hidden lg:block w-64 xl:w-72 shrink-0 border-ie border-border"
138138
>
139139
<div class="docs-sidebar sticky overflow-y-auto p-4">
140140
<h2 class="text-xs font-semibold text-fg-subtle uppercase tracking-wider mb-4">
@@ -210,7 +210,7 @@ const showEmptyState = computed(() => docsData.value?.status !== 'ok')
210210
}
211211
212212
.toc-content > ul > li > ul {
213-
@apply mt-2 pl-3 border-l border-border/50;
213+
@apply mt-2 ps-3 border-is border-border/50;
214214
}
215215
216216
.toc-content > ul > li > ul a {
@@ -325,16 +325,16 @@ const showEmptyState = computed(() => docsData.value?.status !== 'ok')
325325
}
326326
327327
/*
328-
* Fenced code blocks in descriptions use a subtle left-border style.
328+
* Fenced code blocks in descriptions use a subtle start-border style.
329329
*
330330
* Design rationale: We use two visual styles for code examples:
331331
* 1. Boxed style (bg + border + padding) - for formal @example JSDoc tags
332332
* and function signatures. These are intentional, structured sections.
333-
* 2. Left-border style (blockquote-like) - for inline code in descriptions.
333+
* 2. Start-border style (blockquote-like) - for inline code in descriptions.
334334
* These are illustrative/casual and shouldn't compete with the signature.
335335
*/
336336
.docs-content .docs-description .shiki {
337-
@apply text-sm pl-4 py-3 my-4 border-l-2 border-border;
337+
@apply text-sm ps-4 py-3 my-4 border-is-2 border-border;
338338
white-space: pre-wrap;
339339
word-break: break-word;
340340
}
@@ -384,7 +384,7 @@ const showEmptyState = computed(() => docsData.value?.status !== 'ok')
384384
}
385385
386386
.docs-content dd {
387-
@apply text-sm text-fg-subtle ml-4 mb-3;
387+
@apply text-sm text-fg-subtle ms-4 mb-3;
388388
}
389389
390390
/* Returns paragraph */

0 commit comments

Comments
 (0)