From 289a1df83f489fdf2fc9a82e186ac0f5ca386d9d Mon Sep 17 00:00:00 2001 From: codl Date: Tue, 23 Jul 2019 04:30:18 +0200 Subject: [PATCH] color login buttons in css instead of hardcoding colors into the html --- assets/styles.css | 8 ++++++++ templates/about.html | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/styles.css b/assets/styles.css index cdaeaae..c622145 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -227,6 +227,14 @@ button { background-color: #37d; } +.btn.primary.twitter-colored { + background-color: #1da1f2; +} + +.btn.primary.mastodon-colored { + background-color: #282c37; +} + .btn.secondary { background-color: rgba(255,255,255,0.5); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3); diff --git a/templates/about.html b/templates/about.html index 0b657bb..e74f2da 100644 --- a/templates/about.html +++ b/templates/about.html @@ -17,7 +17,7 @@ {% endif %}

- + @@ -26,7 +26,7 @@

{% for instance in mastodon_instances %} - + {% if loop.first %} {{picture(st, 'mastodon', (20,40,80), ('webp', 'png'))}} Log in with @@ -34,7 +34,7 @@ {{instance}} {% else %} - + {{picture(st, 'mastodon', (20,40,80), ('webp', 'png'))}} Log in with Mastodon