-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1328,7 +1328,9 @@ <h2 id="starter-template">Starter template <a class="anchor-link" href="#starter | |
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-yoEOGIfJg9mO8eOS9dgSYBXwb2hCCE+AMiJYavhAofzm8AoyVE241kjON695K1v5"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></</span><span class="nt">script</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 2: CoreUI PRO for Bootstrap Bundle with Popper --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></</span><span class="nt">script</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> <script src="https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js" integrity="sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv" crossorigin="anonymous"></script> | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> --></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 3: Separate Popper and CoreUI/CoreUI PRO for Bootstrap JS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1071,8 +1071,34 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html | |
<li>Add an appropriate <code>lang</code> attribute, like <code>lang="ar"</code>, on the <code><html></code> element.</li> | ||
</ol> | ||
<p>From there, you’ll need to include an RTL version of our CSS. For example, here’s the stylesheet for our compiled and minified CSS with RTL enabled:</p> | ||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">"stylesheet"</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></span> | ||
</span></span></code></pre></div><h3 id="starter-template">Starter template <a class="anchor-link" href="#starter-template" aria-label="Link to this section: Starter template"></a></h3> | ||
|
||
|
||
<ul class="nav nav-underline-border docs-code-tabs" role="tablist"> | ||
|
||
<li class="nav-item mb-0" role="presentation"> | ||
<button class="nav-link active" data-coreui-toggle="tab" data-coreui-target="#rtl-css-coreui" type="button" role="tab">CoreUI</button> | ||
</li> | ||
|
||
<li class="nav-item mb-0" role="presentation"> | ||
<button class="nav-link " data-coreui-toggle="tab" data-coreui-target="#rtl-css-coreui-pro" type="button" role="tab">CoreUI PRO</button> | ||
</li> | ||
|
||
</ul> | ||
<div class="tab-content docs-code-tab-content"> | ||
|
||
<div class="tab-pane fade show active" id="rtl-css-coreui" role="tabpanel" aria-labelledby="CoreUI-tab" tabindex="0"> | ||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">"stylesheet"</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></span> | ||
</span></span></code></pre></div> | ||
</div> | ||
|
||
<div class="tab-pane fade " id="rtl-css-coreui-pro" role="tabpanel" aria-labelledby="CoreUI PRO-tab" tabindex="0"> | ||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">"stylesheet"</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-Ckx+YwzO2ZiMlnEKmz7fXDaJYTIVcg4gjzN2E+KWwVfoaaS8vJDLE3Dt7NJ/p+66"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></span> | ||
</span></span></code></pre></div> | ||
</div> | ||
|
||
</div> | ||
|
||
<h3 id="starter-template">Starter template <a class="anchor-link" href="#starter-template" aria-label="Link to this section: Starter template"></a></h3> | ||
<p>You can see the above requirements reflected in this modified RTL starter template.</p> | ||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp"><!doctype html></span> | ||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"ar"</span> <span class="na">dir</span><span class="o">=</span><span class="s">"rtl"</span><span class="p">></span> | ||
|
@@ -1081,9 +1107,12 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html | |
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"utf-8"</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">name</span><span class="o">=</span><span class="s">"viewport"</span> <span class="na">content</span><span class="o">=</span><span class="s">"width=device-width, initial-scale=1"</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- CoreUI for Bootstrap CSS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 1: CoreUI for Bootstrap CSS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">"stylesheet"</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 2: CoreUI PRO for Bootstrap CSS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">"stylesheet"</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-Ckx+YwzO2ZiMlnEKmz7fXDaJYTIVcg4gjzN2E+KWwVfoaaS8vJDLE3Dt7NJ/p+66"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">title</span><span class="p">></span>مرحبا بالعالم!<span class="p"></</span><span class="nt">title</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">head</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">body</span><span class="p">></span> | ||
|
@@ -1094,7 +1123,12 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html | |
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 1: CoreUI for Bootstrap Bundle with Popper --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">"https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js"</span> <span class="na">integrity</span><span class="o">=</span><span class="s">"sha384-yoEOGIfJg9mO8eOS9dgSYBXwb2hCCE+AMiJYavhAofzm8AoyVE241kjON695K1v5"</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">"anonymous"</span><span class="p">></</span><span class="nt">script</span><span class="p">></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 2: Separate Popper and CoreUI for Bootstrap JS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 2: CoreUI PRO for Bootstrap Bundle with Popper --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> <script src="https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js" integrity="sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv" crossorigin="anonymous"></script> | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> --></span> | ||
</span></span><span class="line"><span class="cl"> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- Option 3: Separate Popper and CoreUI for Bootstrap JS --></span> | ||
</span></span><span class="line"><span class="cl"> <span class="c"><!-- | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script> | ||
</span></span></span><span class="line"><span class="cl"><span class="c"> <script src="https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.min.js" integrity="sha384-kiD3MgQ2eSqSjSfkoKS7/ipCvMvkfmpWHk3WRppeqnYxCVF0wQ+7gHzkXfJyvHbQ" crossorigin="anonymous"></script> | ||
|