Skip to content

Commit 006ae11

Browse files
author
Saeid Darvish
committed
change theme fonts -> vazir
1 parent 8d9d52e commit 006ae11

7 files changed

Lines changed: 11 additions & 17 deletions

File tree

_templates/sphinx_minoo_theme/includes/header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1">
44
<meta name="google-site-verification" content="IK2uIb0qP_6M9oopAJzjrXSMXGbyifQfX7nRlr2b0vI" />
55
<link rel="alternate" href="https://python.coderz.ir/{{ pagename }}.html" hreflang="fa-ir" />
6+
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vazir-font@28.0.0/dist/font-face.css">
67

78
{{ metatags }}
89

-79.6 KB
Binary file not shown.
-79.5 KB
Binary file not shown.
-45.7 KB
Binary file not shown.
-35.8 KB
Binary file not shown.

_templates/sphinx_minoo_theme/static/minoo-20210407.css

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ list[purple:[title:AB47BC,sub:CE93D8]-green:[title:66BB6A,sub:A5D6A7]-blue[title
88
box[note,attention[body:90CAF9,title:42A5F5]-tip,important[body:80CBC4,title:26A69A]-hint,warning[body:FFAB91,title:FF7043]-error,danger[body:EF9A9A,title:EF5350]-caution[body:C5E1A5,title:9CCC65]-admonition[body:B0BEC5,title:78909C]]
99
*/
1010

11+
12+
1113
/* sphinx_rtd_theme fonts */
1214
@font-face{font-family:"Inconsolata";font-style:normal;font-weight:400;src:local("Inconsolata"),url(fonts/Inconsolata.ttf) format("truetype")}@font-face{font-family:"Inconsolata";font-style:normal;font-weight:700;src:local("Inconsolata Bold"),local("Inconsolata-Bold"),url(fonts/Inconsolata-Bold.ttf) format("truetype")}@font-face{font-family:"Lato";font-style:normal;font-weight:400;src:local("Lato Regular"),local("Lato-Regular"),url(fonts/Lato-Regular.ttf) format("truetype")}@font-face{font-family:"Lato";font-style:normal;font-weight:700;src:local("Lato Bold"),local("Lato-Bold"),url(fonts/Lato-Bold.ttf) format("truetype")}@font-face{font-family:"Roboto Slab";font-style:normal;font-weight:400;src:local("Roboto Slab Regular"),local("RobotoSlab-Regular"),url(fonts/RobotoSlab-Regular.ttf) format("truetype")}@font-face{font-family:"Roboto Slab";font-style:normal;font-weight:700;src:local("Roboto Slab Bold"),local("RobotoSlab-Bold"),url(fonts/RobotoSlab-Bold.ttf) format("truetype")}
1315

1416
/* HTML elements */
15-
body{font-family:'Samim',"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;font-weight:normal;color:#212121;min-height:100%;font-size:16px;overflow-x:hidden}
17+
body{font-family:vazir, sans-serif;font-weight:normal;color:#252525;min-height:100%;font-size:1.5rem;overflow-x:hidden}
1618
html{height:100%}
1719
a,ul>li>a,ol>li>a{text-decoration:none!important;color:#5C6BC0;padding:0}
1820
a:hover,ul>li>a:hover,ol>li>a:hover{color:#66BB6A}
1921
i{vertical-align:middle}
2022
h1,h2,h3,h4,h5,h6{font-weight:bold;color:#000000;display:inline-block}
2123
h1,h2,h3{padding:10px 15px 10px 0}
2224
h1{background-color:#5C6BC0;color:#FFFFFF;line-height:26px;border-right:5px #E8EAF6 solid}
23-
p{line-height:24px;margin:0;font-size:16px}
25+
p{line-height:24px;margin:0;font-size:1.5rem}
2426
h1{font-size:150%}
2527
h2{font-size:125%}
2628
h3{font-size:115%}
@@ -37,8 +39,8 @@ code,kbd,pre,samp{background-color:#E8EAF6;border-radius:0;border:none;direction
3739
code,kbd,samp{padding:2px 6px;white-space:pre}
3840
code{color:#212121}
3941
pre{margin:0;overflow-wrap:normal;text-align:left}
40-
ul,ol{padding-right:24px;font-size:16px}
41-
ul li{list-style:disc;font-size:16px}
42+
ul,ol{padding-right:24px;font-size:1.5rem}
43+
ul li{list-style:disc;font-size:1.5rem}
4244
dl dt{font-weight:bold}
4345
dl dd{margin:0 24px 12px 0}
4446

@@ -80,7 +82,7 @@ box-shadow: 0px 0px 1px 1px rgba(66,66,66,1);}
8082
#body-donate{width:100%;height:auto;display:inline-block;color:#fff;margin-bottom:24px;margin-top:2px;position:relative;}
8183
#body-top>a{display:inline-block;height:auto;vertical-align:bottom;height:auto}
8284
#body-top>a:hover{color:#66BB6A}
83-
#body-top>span{width:auto;height:28px;line-height:16px;display:inline-block;vertical-align:bottom}
85+
#body-top>span{width:auto;height:28px;line-height:1.5rem;display:inline-block;vertical-align:bottom}
8486
#body-top>a>i,#body-top>span>i{display:inline-block}
8587
#top-src{float:left}
8688
.top-src{float:left;margin-right:24px}
@@ -234,22 +236,13 @@ ul li{text-align:justify}
234236
.red{color:#E65100}
235237
.emoji-size{font-size:20px;color:#E65100}
236238
p,blockquote{text-align:justify}
237-
body{font-size:16px}
239+
body{font-size:1.5rem}
238240
.table-ltr{direction:ltr !important;text-align:center;margin-bottom: -24px !important;}
239241
.table-ltr th{text-align:center !important}
240242
.reportmenufield{background-color:#ec407a !important}
241243
.reportmenufield:hover{border-right:5px #f48fb1 solid !important}
242244
.exercisesmenufield{background-color:#ef5350 !important}
243245
.exercisesmenufield:hover{border-right:5px #ef9a9a solid !important}
244-
@font-face {
245-
font-family: 'Samim';
246-
src: url('fonts/Samim.eot'),
247-
url('fonts/Samim.woff2') format('woff2'),
248-
url('fonts/Samim.woff') format('woff'),
249-
url('fonts/Samim.ttf') format('truetype');
250-
font-weight: normal;
251-
font-style: normal;
252-
}
253246
h1 a.toc-backref, h2 a.toc-backref{color:#fff !important}
254247

255248

@@ -279,7 +272,7 @@ color: #fff !important;
279272
display: block;
280273
width: 100%;
281274
float: none;
282-
padding: 16px;
275+
padding: 1.5rem;
283276
background-color: #4CAF50;
284277
color: #fff;
285278
font-weight: 800;

preface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* `Python <https://www.python.org>`_
2828
* `Sphinx <http://www.sphinx-doc.org>`_
2929
* `Minoo Theme <https://github.com/saeiddrv/SphinxMinooTheme>`_
30-
* `Samim Font <https://github.com/rastikerdar/samim-font>`_
30+
* `Vazir Font <https://rastikerdar.github.io/vazir-font>`_
3131
* `GitHub <https://github.com>`_
3232
* `Read the Docs <https://readthedocs.org>`_
3333

0 commit comments

Comments
 (0)