Commit 37cf2eb691b19998b69b8ad9bf8489837d00c81a

Authored by Dmitriy Zaporozhets
1 parent 11ecf007

More readable notice/alert messages

app/assets/stylesheets/common.scss
... ... @@ -46,15 +46,26 @@ table a code {
46 46 /** FLASH message **/
47 47 .flash-container {
48 48 display: none;
49   - .alert {
50   - cursor: pointer;
51   - margin: 0;
52   - text-align: center;
53   - border-radius: 0;
  49 + cursor: pointer;
  50 + margin: 0;
  51 + text-align: center;
  52 + border-radius: 0;
  53 + color: #fff;
54 54  
55   - span {
56   - font-size: 14px;
57   - }
  55 + span {
  56 + font-size: 14px;
  57 + }
  58 +
  59 + .flash-notice {
  60 + background: #49C;
  61 + padding: 10px;
  62 + text-shadow: 0 1px 1px #178;
  63 + }
  64 +
  65 + .flash-alert {
  66 + background: #C67;
  67 + text-shadow: 0 1px 1px #945;
  68 + padding: 10px;
58 69 }
59 70 }
60 71  
... ...
app/views/layouts/_flash.html.haml
1 1 .flash-container
2 2 - if alert
3   - .alert.alert-error
  3 + .flash-alert
4 4 %span= alert
5 5  
6 6 - elsif notice
7   - .alert.alert-info
  7 + .flash-notice
8 8 %span= notice
... ...