summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-12-20 17:21:02 -0600
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-20 23:19:38 -0200
commite9587d5038cbaeca718d6dc08acf906780c0eed0 (patch)
tree29d292d794d9406698c06ebb466f323f3f6d538d
parentb86f45004e931655176220d451cde1e9320a1db1 (diff)
downloadgitlab-ce-e9587d5038cbaeca718d6dc08acf906780c0eed0.tar.gz
apply margin on alert banners only when there is one or more alerts
-rw-r--r--app/assets/stylesheets/framework/layout.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/stylesheets/framework/layout.scss b/app/assets/stylesheets/framework/layout.scss
index 59fae61a44f..5365b62e456 100644
--- a/app/assets/stylesheets/framework/layout.scss
+++ b/app/assets/stylesheets/framework/layout.scss
@@ -33,10 +33,12 @@ body {
}
.alert-wrapper {
- margin-bottom: $gl-padding;
-
.alert {
margin-bottom: 0;
+
+ &:last-child {
+ margin-bottom: $gl-padding;
+ }
}
/* Stripe the background colors so that adjacent alert-warnings are distinct from one another */