From 0bc93ff4c3af759dbaafea0a913925612d63c911 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Sat, 10 Oct 2015 14:08:02 -0400 Subject: [PATCH] Backporting changes from github --- scss/_alerts.scss | 146 ++++++++++++++++++++------------------------- scss/_buttons.scss | 4 +- 2 files changed, 68 insertions(+), 82 deletions(-) diff --git a/scss/_alerts.scss b/scss/_alerts.scss index f28f2ad4..7f993638 100644 --- a/scss/_alerts.scss +++ b/scss/_alerts.scss @@ -1,106 +1,92 @@ -.flash-messages { - margin-top: 15px; - margin-bottom: 15px; -} - -.flash, -.flash-global { +// Default flash +.flash { position: relative; + padding: 15px; font-size: 14px; - line-height: 1.6; + line-height: 1.5; color: #246; background-color: #e2eef9; - border: solid 1px #bac6d3; - - &.flash-warn { - color: #4c4a42; - background-color: #fff9ea; - border-color: #dfd8c2; - } - - &.flash-error { - color: #911; - background-color: #fcdede; - border-color: #d2b2b2; - } - - .flash-close { - float: right; - padding: 17px; // bigger hit area - margin-top: -15px; // negative margins to account for bigger padding - margin-right: -15px; - margin-left: 20px; - color: inherit; - text-decoration: none; - cursor: pointer; - opacity: 0.6; - - &:hover { - opacity: 1; - } - } + border: 1px solid #bac6d3; + border-radius: 3px; p:last-child { margin-bottom: 0; } +} - // Flashes can have an action button instead of the cross. - .flash-action { - float: right; - margin-top: -4px; - margin-left: 20px; - } +// Contain the flash messages +.flash-messages { + margin-bottom: 20px; +} - // Make links stand out - a { - font-weight: bold; +// Close button +.flash-close { + float: right; + width: 34px; + height: 44px; + margin: -11px; + color: inherit; + line-height: 40px; + text-align: center; + cursor: pointer; + opacity: 0.6; + // Undo `