Skip to content

Commit

Permalink
docs: update RTL examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mrholek committed May 14, 2023
1 parent 97174ce commit ddc9c51
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
19 changes: 19 additions & 0 deletions docs/assets/scss/docs-pickers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// fusv-disable
$enable-ltr: false;
$enable-rtl: true;
// fusv-enable

@import "../../../scss/functions";
@import "../../../scss/variables";
@import "../../../scss/variables-dark";
@import "../../../scss/maps";
@import "../../../scss/mixins";
@import "../../../scss/utilities";

// stylelint-disable selector-no-qualifying-type
div[dir="rtl"] {
@import "../../../scss/calendar";
@import "../../../scss/date-picker";
@import "../../../scss/time-picker";
}
// stylelint-enable selector-no-qualifying-type
8 changes: 4 additions & 4 deletions docs/content/forms/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,19 @@ RTL support is built-in and can be explicitly controlled through the `$enable-rt
### Hebrew

{{< example >}}
<div class="row">
<div class="row" dir="rtl">
<div class="col-lg-4">
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך" data-coreui-toggle="date-picker" dir="rtl"></div>
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך" data-coreui-toggle="date-picker"></div>
</div>
</div>
{{< /example >}}

### Persian

{{< example >}}
<div class="row">
<div class="row" dir="rtl">
<div class="col-lg-4">
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع" data-coreui-toggle="date-picker" dir="rtl"></div>
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع" data-coreui-toggle="date-picker"></div>
</div>
</div>
{{< /example >}}
Expand Down
8 changes: 4 additions & 4 deletions docs/content/forms/date-range-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,19 @@ RTL support is built-in and can be explicitly controlled through the `$enable-rt
### Hebrew

{{< example >}}
<div class="row">
<div class="row" dir="rtl">
<div class="col-lg-5">
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך,תאריך סיום" data-coreui-toggle="date-range-picker" dir="rtl"></div>
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך,תאריך סיום" data-coreui-toggle="date-range-picker"></div>
</div>
</div>
{{< /example >}}

### Persian

{{< example >}}
<div class="row">
<div class="row" dir="rtl">
<div class="col-lg-5">
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع,تاریخ پایان" data-coreui-toggle="date-range-picker" dir="rtl"></div>
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع,تاریخ پایان" data-coreui-toggle="date-range-picker"></div>
</div>
</div>
{{< /example >}}
Expand Down
4 changes: 4 additions & 0 deletions docs/layouts/partials/stylesheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }}

<link href="{{ $style.Permalink | relURL }}" rel="stylesheet">

{{- $stylePickers := resources.Get "scss/docs-pickers.scss" | toCSS }}

<link href="{{ $stylePickers.Permalink | relURL }}" rel="stylesheet">
{{- end }}

0 comments on commit ddc9c51

Please sign in to comment.