Spaces:
Running
Running
MonkeyJuice
commited on
Commit
β’
95f378b
1
Parent(s):
895ccaa
update style
Browse files- createTagDom.py +4 -4
- style.css +4 -1
createTagDom.py
CHANGED
@@ -8,13 +8,13 @@ def create_tag_dom(label, ignore, prob):
|
|
8 |
result_html += '<div class="m5dd_list">'
|
9 |
else:
|
10 |
result_html += '<div class="m5dd_list use">'
|
11 |
-
result_html += '<span class="
|
12 |
-
result_html += '<span class="
|
13 |
result_html += '<span class="label action">' + str(label) + '</span>'
|
14 |
result_html += '<span class="prob">' + str(round(prob, 3)) + '</span>'
|
|
|
|
|
15 |
result_html += '<a class="wiki action" href="https://danbooru.donmai.us/wiki_pages/' + label + '" target="_blank">π</a>'
|
16 |
-
result_html += '<span class="add action">β</span>'
|
17 |
-
result_html += '<span class="dec action">β</span>'
|
18 |
result_html += '</div>'
|
19 |
|
20 |
return result_html
|
|
|
8 |
result_html += '<div class="m5dd_list">'
|
9 |
else:
|
10 |
result_html += '<div class="m5dd_list use">'
|
11 |
+
result_html += '<span class="add action">β</span>'
|
12 |
+
result_html += '<span class="dec action">β</span>'
|
13 |
result_html += '<span class="label action">' + str(label) + '</span>'
|
14 |
result_html += '<span class="prob">' + str(round(prob, 3)) + '</span>'
|
15 |
+
result_html += '<span class="up action">πΌ</span>'
|
16 |
+
result_html += '<span class="down action">π½</span>'
|
17 |
result_html += '<a class="wiki action" href="https://danbooru.donmai.us/wiki_pages/' + label + '" target="_blank">π</a>'
|
|
|
|
|
18 |
result_html += '</div>'
|
19 |
|
20 |
return result_html
|
style.css
CHANGED
@@ -2,15 +2,18 @@
|
|
2 |
display: flex;
|
3 |
cursor: pointer;
|
4 |
font-size: 1.2em;
|
5 |
-
padding:
|
|
|
6 |
}
|
7 |
|
8 |
.m5dd_list>span.label {
|
9 |
flex: 1;
|
|
|
10 |
}
|
11 |
|
12 |
.m5dd_list>span.prob {
|
13 |
color: #aaa;
|
|
|
14 |
}
|
15 |
|
16 |
.m5dd_list:nth-child(even) {
|
|
|
2 |
display: flex;
|
3 |
cursor: pointer;
|
4 |
font-size: 1.2em;
|
5 |
+
padding: .5em;
|
6 |
+
user-select: none;
|
7 |
}
|
8 |
|
9 |
.m5dd_list>span.label {
|
10 |
flex: 1;
|
11 |
+
padding: 0 .5em;
|
12 |
}
|
13 |
|
14 |
.m5dd_list>span.prob {
|
15 |
color: #aaa;
|
16 |
+
padding: 0 .5em;
|
17 |
}
|
18 |
|
19 |
.m5dd_list:nth-child(even) {
|