uk
This commit is contained in:
parent
10e49ef743
commit
4dfb788e07
14 changed files with 88 additions and 79 deletions
|
@ -5008,66 +5008,3 @@ th, td {
|
||||||
.text-small-mobile {
|
.text-small-mobile {
|
||||||
font-size: min(3vw,14px) !important;
|
font-size: min(3vw,14px) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ukraine*/
|
|
||||||
:root {
|
|
||||||
--white: white !important;
|
|
||||||
--yellow: #ffd700 !important;
|
|
||||||
--blue: #0057b7 !important;
|
|
||||||
--primary: var(--yellow) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mod {
|
|
||||||
padding: 2px 5px 3px;
|
|
||||||
border-radius: 5px;
|
|
||||||
color: #fff !important;
|
|
||||||
background: linear-gradient(to bottom, var(--blue) 50%, var(--yellow) 50%) !important;
|
|
||||||
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#frontpage .col.h-100.custom-gutters .row .col, .srd {
|
|
||||||
background: linear-gradient(to bottom, var(--blue) 50%, var(--yellow) 50%) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#frontpage .btn.btn-secondary.text-small-m {
|
|
||||||
color: white !important;
|
|
||||||
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000 !important;
|
|
||||||
background: transparent !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-name {
|
|
||||||
color: var(--yellow) !important
|
|
||||||
}
|
|
||||||
|
|
||||||
.patron {
|
|
||||||
background-color: var(--blue) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow-up::before {
|
|
||||||
font-family: serif !important;
|
|
||||||
content: "🇺🇦";
|
|
||||||
opacity:0.3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.active.arrow-up::before {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow-down::before {
|
|
||||||
font-family: serif !important;
|
|
||||||
content: "🇷🇺";
|
|
||||||
opacity:0.3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.active.arrow-down::before {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#frontpage .btn {
|
|
||||||
background-color: var(--yellow) !important;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table a {
|
|
||||||
color: var(--primary) !important;
|
|
||||||
}
|
|
||||||
|
|
61
files/assets/css/ukraine.css
Normal file
61
files/assets/css/ukraine.css
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
:root {
|
||||||
|
--white: white !important;
|
||||||
|
--yellow: #ffd700 !important;
|
||||||
|
--blue: #0057b7 !important;
|
||||||
|
--primary: var(--yellow) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod {
|
||||||
|
padding: 2px 5px 3px;
|
||||||
|
border-radius: 5px;
|
||||||
|
color: #fff !important;
|
||||||
|
background: linear-gradient(to bottom, var(--blue) 50%, var(--yellow) 50%) !important;
|
||||||
|
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#frontpage .col.h-100.custom-gutters .row .col, .srd {
|
||||||
|
background: linear-gradient(to bottom, var(--blue) 50%, var(--yellow) 50%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#frontpage .btn.btn-secondary.text-small-m {
|
||||||
|
color: white !important;
|
||||||
|
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000 !important;
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
color: var(--yellow) !important
|
||||||
|
}
|
||||||
|
|
||||||
|
.patron {
|
||||||
|
background-color: var(--blue) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow-up::before {
|
||||||
|
font-family: serif !important;
|
||||||
|
content: "🇺🇦";
|
||||||
|
opacity:0.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active.arrow-up::before {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow-down::before {
|
||||||
|
font-family: serif !important;
|
||||||
|
content: "🇷🇺";
|
||||||
|
opacity:0.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active.arrow-down::before {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#frontpage .btn {
|
||||||
|
background-color: var(--yellow) !important;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table a {
|
||||||
|
color: var(--primary) !important;
|
||||||
|
}
|
|
@ -154,7 +154,7 @@ class User(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def mods(self, sub):
|
def mods(self, sub):
|
||||||
return self.id == AEVANN_ID or bool(g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none())
|
return self.admin_level == 3 or bool(g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none())
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def exiled_from(self, sub):
|
def exiled_from(self, sub):
|
||||||
|
|
|
@ -24,6 +24,8 @@ def exile_post(v, pid):
|
||||||
|
|
||||||
u = p.author
|
u = p.author
|
||||||
|
|
||||||
|
if u.mods(sub): abort(403)
|
||||||
|
|
||||||
if u.admin_level < 2 and not u.exiled_from(sub):
|
if u.admin_level < 2 and not u.exiled_from(sub):
|
||||||
exile = Exile(user_id=u.id, sub=sub, exiler_id=v.id)
|
exile = Exile(user_id=u.id, sub=sub, exiler_id=v.id)
|
||||||
g.db.add(exile)
|
g.db.add(exile)
|
||||||
|
@ -77,6 +79,8 @@ def exile_comment(v, cid):
|
||||||
|
|
||||||
u = c.author
|
u = c.author
|
||||||
|
|
||||||
|
if u.mods(sub): abort(403)
|
||||||
|
|
||||||
if u.admin_level < 2 and not u.exiled_from(sub):
|
if u.admin_level < 2 and not u.exiled_from(sub):
|
||||||
exile = Exile(user_id=u.id, sub=sub, exiler_id=v.id)
|
exile = Exile(user_id=u.id, sub=sub, exiler_id=v.id)
|
||||||
g.db.add(exile)
|
g.db.add(exile)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|
|
@ -7,7 +7,10 @@
|
||||||
<script src="/static/assets/js/bootstrap.js?v=245"></script>
|
<script src="/static/assets/js/bootstrap.js?v=245"></script>
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172">
|
||||||
|
{% if SITE_NAME == 'Drama' and not request.path.startswith('/s/') %}
|
||||||
|
<link rel="stylesheet" href="/static/assets/css/ukraine.css?v=1">
|
||||||
|
{% endif %}
|
||||||
<link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
|
@ -32,7 +35,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172">
|
||||||
|
{% if SITE_NAME == 'Drama' and not request.path.startswith('/s/') %}
|
||||||
|
<link rel="stylesheet" href="/static/assets/css/ukraine.css?v=1">
|
||||||
|
{% endif %}
|
||||||
|
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if sub and sub.css and not request.path.endswith('settings') %}
|
{% if sub and sub.css and not request.path.endswith('settings') %}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row justify-content-around">
|
<div class="row justify-content-around">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172">
|
||||||
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<title>2-Step Login - {{SITE_NAME}}</title>
|
<title>2-Step Login - {{SITE_NAME}}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
|
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=27">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/static/assets/css/main.css?v=171">
|
<link rel="stylesheet" href="/static/assets/css/main.css?v=172">
|
||||||
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=27">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue