forked from MarseyWorld/MarseyWorld
master
parent
8e33a3e57a
commit
3ebe3efd36
|
@ -1,7 +1,7 @@
|
|||
for theme in ['transparent', 'win98', 'midnight', 'dark', 'light', 'coffee', 'tron', '4chan']:
|
||||
with open(f"./files/assets/css/{theme}_ff66ac.css", encoding='utf-8') as t:
|
||||
with open(f"./files/assets/css2/{theme}_ff66ac.css", encoding='utf-8') as t:
|
||||
text = t.read()
|
||||
for color in ['ff66ac','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"./files/assets/css/{theme}_{color}.css", encoding='utf-8', mode='w') as nt:
|
||||
with open(f"./files/assets/css2/{theme}_{color}.css", encoding='utf-8', mode='w') as nt:
|
||||
nt.write(newtext)
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
|
||||
{% if v %}
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
|
|
|
@ -247,15 +247,15 @@
|
|||
{% block stylesheets %}
|
||||
|
||||
{% if v %}
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<link href="/assets/css/fa.css" rel="stylesheet">
|
||||
<link href="/assets/css2/fa.css" rel="stylesheet">
|
||||
{% block fixedMobileBarJS %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
</script>
|
||||
|
||||
{% if v %}
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
|
||||
<div class="row justify-content-around">
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
{% endblock %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel="stylesheet">
|
||||
|
||||
<link href="/assets/css/fa.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link href="/assets/css2/fa.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
@ -71,10 +71,10 @@
|
|||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
|
||||
<link href="/assets/css/fa.css" rel="stylesheet">
|
||||
<link href="/assets/css2/fa.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body id="settings" style="overflow-x: hidden; {% if v and v.background %} background:url(/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %}">
|
||||
|
|
|
@ -39,12 +39,12 @@
|
|||
|
||||
|
||||
{% if v %}
|
||||
<link id="css-link" rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
<link id="css-link" rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% else %}
|
||||
<link id="css-link" rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link id="css-link" rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
|
||||
<link href="/assets/css/fa.css" rel="stylesheet">
|
||||
<link href="/assets/css2/fa.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body id="settings2" style="overflow-x: hidden; {% if v and v.background %} background:url(/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %}">
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
|
||||
{% block stylesheets %}
|
||||
{% if v %}
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
<link href="/assets/css/fa.css" rel="stylesheet"> </head>
|
||||
<link href="/assets/css2/fa.css" rel="stylesheet"> </head>
|
||||
|
||||
<body id="submit" style="overflow-x: hidden; {% if v and v.background %} background:url(/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %}display: block;">
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
{% if u and u.profilecss %}
|
||||
{% block stylesheets %}
|
||||
{% if v %}
|
||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
<link rel="stylesheet" href="/assets/css2/{{v.theme}}_{{v.themecolor}}.css">
|
||||
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/css2/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="/assets/css/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
<link rel="stylesheet" href="/assets/css2/{{'DEFAULT_THEME' | app_config}}.css">
|
||||
{% endif %}
|
||||
{% if u and u.profilecss %}
|
||||
<link rel="stylesheet" href="/@{{u.username}}/profilecss">
|
||||
|
|
16
push.sh
16
push.sh
|
@ -5,14 +5,14 @@ git push
|
|||
|
||||
npm install -g sass
|
||||
apt install ruby-sass
|
||||
sass ./files/assets/css/transparent.scss ./files/assets/css/transparent_ff66ac.css
|
||||
sass ./files/assets/css/win98.scss ./files/assets/css/win98_ff66ac.css
|
||||
sass ./files/assets/css/midnight.scss ./files/assets/css/midnight_ff66ac.css
|
||||
sass ./files/assets/css/dark.scss ./files/assets/css/dark_ff66ac.css
|
||||
sass ./files/assets/css/light.scss ./files/assets/css/light_ff66ac.css
|
||||
sass ./files/assets/css/coffee.scss ./files/assets/css/coffee_ff66ac.css
|
||||
sass ./files/assets/css/tron.scss ./files/assets/css/tron_ff66ac.css
|
||||
sass ./files/assets/css/4chan.scss ./files/assets/css/4chan_ff66ac.css
|
||||
sass ./files/assets/css2/transparent.scss ./files/assets/css2/transparent_ff66ac.css
|
||||
sass ./files/assets/css2/win98.scss ./files/assets/css2/win98_ff66ac.css
|
||||
sass ./files/assets/css2/midnight.scss ./files/assets/css2/midnight_ff66ac.css
|
||||
sass ./files/assets/css2/dark.scss ./files/assets/css2/dark_ff66ac.css
|
||||
sass ./files/assets/css2/light.scss ./files/assets/css2/light_ff66ac.css
|
||||
sass ./files/assets/css2/coffee.scss ./files/assets/css2/coffee_ff66ac.css
|
||||
sass ./files/assets/css2/tron.scss ./files/assets/css2/tron_ff66ac.css
|
||||
sass ./files/assets/css2/4chan.scss ./files/assets/css2/4chan_ff66ac.css
|
||||
python ./compilecss.py
|
||||
python3 ./compilecss.py
|
||||
git add .
|
||||
|
|
Loading…
Reference in New Issue