Move current default css into theme_turquoise. Always pick a theme.

This commit is contained in:
voussoir 2020-09-25 16:27:47 -07:00
parent f5d8898e14
commit 41353b2eb4
6 changed files with 40 additions and 31 deletions

View file

@ -180,7 +180,7 @@ def render_template(request, template_name, **kwargs):
old_theme = request.cookies.get('etiquette_theme', None) old_theme = request.cookies.get('etiquette_theme', None)
new_theme = request.args.get('theme', None) new_theme = request.args.get('theme', None)
theme = '' if new_theme == '' else new_theme or old_theme theme = 'turquoise' if new_theme == '' else new_theme or old_theme
response = flask.render_template( response = flask.render_template(
template_name, template_name,

View file

@ -1,17 +1,3 @@
:root
{
--color_text_normal: black;
--color_text_link: blue;
--color_textfields: white;
--color_text_placeholder: gray;
--color_transparency: rgba(0, 0, 0, 0.1);
--color_dropshadow: rgba(0, 0, 0, 0.25);
--color_shadow: rgba(0, 0, 0, 0.5);
--color_highlight: rgba(255, 255, 255, 0.5);
}
@media screen and (min-width: 800px) @media screen and (min-width: 800px)
{ {
:root :root
@ -244,7 +230,7 @@ button:active
} }
.message_bubble * .message_bubble *
{ {
color: var(--color_text_normal); color: var(--color_text_bubble);
} }
.message_positive .message_positive
{ {

View file

@ -1,11 +1,5 @@
:root :root
{ {
--color_primary: #00d8f4;
--color_secondary: #ffffd4;
--color_tag_object_bg: #fff;
--color_tag_object_fg: blue;
--size_sticky_side: 300px; --size_sticky_side: 300px;
--size_sticky_bottom: 150px; --size_sticky_bottom: 150px;
} }

View file

@ -2,12 +2,19 @@
{ {
--color_primary: #f6ffff; --color_primary: #f6ffff;
--color_secondary: #aad7ff; --color_secondary: #aad7ff;
--color_textfields: white;
--color_transparency: rgba(0, 0, 0, 0.1);
--color_text_normal: #000; --color_text_normal: #000;
--color_text_link: #00f; --color_text_link: #00f;
--color_text_bubble: black; --color_text_bubble: black;
--color_textfields: white;
--color_text_placeholder: gray;
--color_transparency: rgba(0, 0, 0, 0.1);
--color_dropshadow: rgba(0, 0, 0, 0.25);
--color_shadow: rgba(0, 0, 0, 0.5);
--color_highlight: rgba(255, 255, 255, 0.5);
--color_tag_object_bg: #fff; --color_tag_object_bg: #fff;
--color_tag_object_fg: black; --color_tag_object_fg: black;
} }

View file

@ -2,12 +2,19 @@
{ {
--color_primary: #222; --color_primary: #222;
--color_secondary: #3b4d5d; --color_secondary: #3b4d5d;
--color_textfields: var(--color_secondary);
--color_transparency: rgba(255, 255, 255, 0.05);
--color_text_normal: #efefef; --color_text_normal: #efefef;
--color_text_link: #1edeff; --color_text_link: #1edeff;
--color_text_bubble: black; --color_text_bubble: black;
--color_textfields: var(--color_secondary);
--color_text_placeholder: gray;
--color_transparency: rgba(255, 255, 255, 0.05);
--color_dropshadow: rgba(0, 0, 0, 0.25);
--color_shadow: rgba(0, 0, 0, 0.5);
--color_highlight: rgba(255, 255, 255, 0.5);
--color_tag_object_bg: #e6e6e6; --color_tag_object_bg: #e6e6e6;
--color_tag_object_fg: black; --color_tag_object_fg: black;
} }
@ -17,8 +24,3 @@ button *
{ {
color: black; color: black;
} }
.message_bubble,
.message_bubble *
{
color: black;
}

View file

@ -0,0 +1,20 @@
:root
{
--color_primary: #00d8f4;
--color_secondary: #ffffd4;
--color_text_normal: black;
--color_text_link: blue;
--color_text_bubble: black;
--color_textfields: white;
--color_text_placeholder: gray;
--color_transparency: rgba(0, 0, 0, 0.1);
--color_dropshadow: rgba(0, 0, 0, 0.25);
--color_shadow: rgba(0, 0, 0, 0.5);
--color_highlight: rgba(255, 255, 255, 0.5);
--color_tag_object_bg: #fff;
--color_tag_object_fg: blue;
}