From 37cf2eb691b19998b69b8ad9bf8489837d00c81a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 10 Aug 2013 21:10:24 +0300 Subject: [PATCH] More readable notice/alert messages --- app/assets/stylesheets/common.scss | 27 +++++++++++++++++++-------- app/views/layouts/_flash.html.haml | 4 ++-- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 2ab3a1b..abd38a0 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -46,15 +46,26 @@ table a code { /** FLASH message **/ .flash-container { display: none; - .alert { - cursor: pointer; - margin: 0; - text-align: center; - border-radius: 0; + cursor: pointer; + margin: 0; + text-align: center; + border-radius: 0; + color: #fff; - span { - font-size: 14px; - } + span { + font-size: 14px; + } + + .flash-notice { + background: #49C; + padding: 10px; + text-shadow: 0 1px 1px #178; + } + + .flash-alert { + background: #C67; + text-shadow: 0 1px 1px #945; + padding: 10px; } } diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml index f9ef068..2585030 100644 --- a/app/views/layouts/_flash.html.haml +++ b/app/views/layouts/_flash.html.haml @@ -1,8 +1,8 @@ .flash-container - if alert - .alert.alert-error + .flash-alert %span= alert - elsif notice - .alert.alert-info + .flash-notice %span= notice -- libgit2 0.21.2