MonkeyJuice commited on
Commit
95f378b
β€’
1 Parent(s): 895ccaa

update style

Browse files
Files changed (2) hide show
  1. createTagDom.py +4 -4
  2. 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="up action">πŸ”Ό</span>'
12
- result_html += '<span class="down 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 += '<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: 0.2em 0.5em;
 
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) {