diff options
author | Nathan Friend <nathan@gitlab.com> | 2019-04-15 16:25:48 +0300 |
---|---|---|
committer | Nathan Friend <nathan@gitlab.com> | 2019-04-15 16:25:48 +0300 |
commit | 12170f8320c3bbe5b6bbdbda83ac7a163826b34a (patch) | |
tree | b541b90a01ce8062ce5e0edd8da49e5ced6e7346 /app/assets/stylesheets/framework/common.scss | |
parent | b99b6bb0960f749e1ba9a129be9c0365e306ed96 (diff) |
Add two warning messages to the MR widget
This commit adds two new warning messages to the MR widget that handle
cases involving merge request pipelines.
Diffstat (limited to 'app/assets/stylesheets/framework/common.scss')
-rw-r--r-- | app/assets/stylesheets/framework/common.scss | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss index d72597a6147..ff6a24be51f 100644 --- a/app/assets/stylesheets/framework/common.scss +++ b/app/assets/stylesheets/framework/common.scss @@ -205,12 +205,12 @@ li.note { } } -.warning_message { - border-left: 4px solid $orange-200; - color: $orange-700; +@mixin message($background-color, $border-color, $text-color) { + border-left: 4px solid $border-color; + color: $text-color; padding: 10px; margin-bottom: 10px; - background: $orange-100; + background: $background-color; padding-left: 20px; &.centered { @@ -218,6 +218,14 @@ li.note { } } +.warning_message { + @include message($orange-100, $orange-200, $orange-700); +} + +.danger_message { + @include message($red-100, $red-200, $red-900); +} + .gitlab-promo { a { color: $gl-gray-350; |