From b101c03eb6ead023f7d846ab6b692f97d5fc444e Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Fri, 14 Nov 2014 11:14:34 +0100 Subject: [PATCH] add alert styles and layout_ref content demo --- .../app/views/layout_ref/content.jst.eco | 10 ++++++++ app/assets/stylesheets/zammad.css.scss | 25 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/app/assets/javascripts/app/views/layout_ref/content.jst.eco b/app/assets/javascripts/app/views/layout_ref/content.jst.eco index 58120f393..b534259fd 100644 --- a/app/assets/javascripts/app/views/layout_ref/content.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/content.jst.eco @@ -60,6 +60,16 @@
+

Alerts

+ +
<div class="alert alert--info" role="alert">Account must be manually configured</div>
+ + + + + +
+

User Selection

diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss index 4cdb79efd..9ba3b0e25 100644 --- a/app/assets/stylesheets/zammad.css.scss +++ b/app/assets/stylesheets/zammad.css.scss @@ -3335,6 +3335,31 @@ footer { color: hsl(204,3%,72%); } +.alert { + padding: 10px 15px; + border-radius: 3px; + + &.alert--info { + border-color: hsl(188,50%,72%); + background: hsl(191,53%,79%); + } + + &.alert--success { + border-color: hsl(145,51%,70%); + background: hsl(145,51%,77%); + } + + &.alert--warning { + border-color: hsl(43,92%,71%); + background: hsl(42,94%,80%); + } + + &.alert--danger { + border-color: hsl(9,72%,62%); + background: hsl(12,73%,66%); + } +} + .tags { margin-bottom: 20px; }