From f7b16e2bb9098a87a2bcdbb9a8c7a5641805850b Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 23 Apr 2015 15:29:21 +0200 Subject: [PATCH 1/2] css, templates: render text over avatars with text-shadow for more contrast --- static/css/main.css | 4 ++++ templates/avatars.hamlet | 2 +- templates/home.hamlet | 2 +- templates/select.hamlet | 2 +- templates/selectCash.hamlet | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index 6eba2ef..037d591 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -42,6 +42,10 @@ article#func.article { z-index: 1; } +.article .avatar p { + text-shadow: -1px 0 1px white, 0 1px 1px white, 1px 0 1px white, 0 -1px 1px white; +} + img.flag { height: 2em; } diff --git a/templates/avatars.hamlet b/templates/avatars.hamlet index 3fd2a3d..09e7d88 100644 --- a/templates/avatars.hamlet +++ b/templates/avatars.hamlet @@ -9,7 +9,7 @@ $if null avatars $else $forall (Entity aId avatar) <- avatars
- +

#{avatarIdent avatar}