Skip to content

Commit 447380b

Browse files
committed
edit : minor edits.
1 parent f28f52a commit 447380b

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

mafia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def index():
3131
return render_template("index.html",
3232
image_name=image_name,
3333
role_name=role, role_name_fa=role2fa[role],
34-
description=descriptions[role],
34+
description=descriptions[role], description_fa=descriptions_fa[role],
3535
player_id=id - 1,
3636
is_farsi=True)
3737

static/css/style.css

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
1+
.description {
2+
text-align: justify;
3+
text-justify: auto;
4+
padding-left: 10%;
5+
padding-right: 10%;
6+
}
7+
8+
#fa {
9+
direction: rtl;
10+
color: rgb(189, 185, 181);
11+
}
12+
113
h1 {
214
font-size: 30px;
315
padding: 0 0 0 0;
416
margin: 0 0 0 0;
517
}
18+
619
h2 {
720
font-size: 25px;
821
color: rgb(172, 161, 147);
922
padding: 0 0 0 0;
1023
margin: 0 0 0 0;
1124
}
25+
1226
p {
1327
font-size: 10px;
1428
color: rgb(163, 157, 150);
1529
padding: 0 0 0 0;
1630
margin: 0 0 0 0;
1731
}
32+
1833
table, td, th {
1934
width: 100%;
2035
text-align: center;
@@ -32,10 +47,3 @@ th, td {
3247
.id_section {
3348
font-size: 10px;
3449
}
35-
36-
.description {
37-
text-align: justify;
38-
text-justify: auto;
39-
padding-left: 10%;
40-
padding-right: 10%;
41-
}

templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ <h2 id="fa">{{ role_name_fa }}</h2>
1919
{% block desc %}
2020
<p>{{ description }}</p>
2121
{% if is_farsi == True %}
22-
<p id="fa">...</p>
22+
<p id="fa">{{ description_fa }}</p>
2323
{% endif %}
2424
{% endblock %}
2525

2626
{% block id_sec %}
27+
<hr>
2728
<p class="id_section">Your id (Tell it to the God): {{ player_id }}</p>
2829
{% endblock %}

0 commit comments

Comments
 (0)