forked from rDrama/rDrama
css
parent
32afb49800
commit
8cda9dd166
|
@ -1,7 +1,7 @@
|
|||
for theme in ['dark', 'light', 'coffee', 'tron', '4chan']:
|
||||
with open(f"D:/#D/drama/assets/style/{theme}_ff66ac.css", encoding='utf-8') as t:
|
||||
with open(f"./drama/assets/style/{theme}_ff66ac.css", encoding='utf-8') as t:
|
||||
text = t.read()
|
||||
for color in ['805ad5','62ca56','38a169','80ffff','2a96f3','62ca56','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58']:
|
||||
newtext = text.replace("ff66ac", color).replace("ff4097", color).replace("ff1a83", color).replace("ff3390", color).replace("rgba(255, 102, 172, 0.25)", color)
|
||||
with open(f"D:/#D/drama/assets/style/{theme}_{color}.css", encoding='utf-8', mode='w') as nt:
|
||||
with open(f"./drama/assets/style/{theme}_{color}.css", encoding='utf-8', mode='w') as nt:
|
||||
nt.write(newtext)
|
|
@ -319,11 +319,13 @@
|
|||
|
||||
<li class="list-inline-item"><a href="javascript:void(0);" role="button" class="copy-link" data-clipboard-text="{{p.permalink | full_link}}"><i class="fas fa-copy"></i>Copy link</a></li>
|
||||
|
||||
{% if v and p.id in v.subscribed_idlist() %}
|
||||
{% if v and not (v.admin_level == 6 and v.id == p.author_id) %}
|
||||
{% if p.id in v.subscribed_idlist() %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/unsubscribe/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-eye-slash"></i>Unsubscribe</a></li>
|
||||
{% elif v %}
|
||||
{% else %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/subscribe/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-eye"></i>Subscribe</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if v and p.id in v.saved_idlist() %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/unsave_post/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-save"></i>Unsave</a></li>
|
||||
|
|
|
@ -139,11 +139,13 @@
|
|||
|
||||
<li class="list-inline-item"><a href="javascript:void(0);" role="button" class="copy-link" data-clipboard-text="{{p.permalink | full_link}}"><i class="fas fa-copy"></i>Copy link</a></li>
|
||||
|
||||
{% if v and p.id in v.subscribed_idlist() %}
|
||||
{% if v and not (v.admin_level == 6 and v.id == p.author_id) %}
|
||||
{% if p.id in v.subscribed_idlist() %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/unsubscribe/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-eye-slash"></i>Unsubscribe</a></li>
|
||||
{% elif v %}
|
||||
{% else %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/subscribe/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-eye"></i>Subscribe</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if v and p.id in v.saved_idlist() %}
|
||||
<li class="list-inline-item"><a href="javascript:void(0)" onclick="post('/unsave_post/{{p.id}}', function(){window.location.reload(true);})"><i class="fas fa-save"></i>Unsave</a></li>
|
||||
|
|
Loading…
Reference in New Issue