Skip to content

Commit

Permalink
use Sahel font for Farsi as suggested by iriman
Browse files Browse the repository at this point in the history
  • Loading branch information
michael63-osm committed Jul 8, 2020
1 parent bb68be8 commit d570f37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<link rel='shortcut icon' href='{{site.baseurl}}/img/favicon.ico' type='image/x-icon' />
<link href="https://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" rel="stylesheet" >
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic|Quattrocento+Sans:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
{% if page.lang == "fa" %}
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css" rel="stylesheet" type="text/css" />
{% endif %}
<script src="{{ site.baseurl }}/vendor/jquery-1.8.2.min.js"></script>
<script src="{{ site.baseurl }}/vendor/jquery-ui-1.9.2.custom.js"></script>
<script>
Expand Down
12 changes: 12 additions & 0 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,18 @@ blockquote p:before {
-o-transition: all 200ms linear;
}

/* font configuration for Farsi */
[lang="fa"] body,
[lang="fa"] .doc ol > li:before,
[lang="fa"] .doc ul > li:before,
[lang="fa"] .doc ul li,.doc ol li, .doc p,
[lang="fa"] blockquote p,
[lang="fa"] .searchbox input,
[lang="fa"] .ui-menu-item {
font-family: Sahel, sans-serif !important;
font-size: 1em;
}

/* --------------------------------------------------------
Layout
-------------------------------------------------------- */
Expand Down

0 comments on commit d570f37

Please sign in to comment.