From fa7472c1720e9b8cf6ca9fb14c8616bcc66e1e4d Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Tue, 30 Jun 2015 16:12:04 +0200 Subject: [PATCH] add notice styles --- app/styles/app.scss | 1 + app/styles/app/modules/icons.sass | 3 +++ app/styles/app/modules/notice.sass | 16 ++++++++++++++++ app/templates/jobs/pre.hbs | 2 +- public/images/svg/notice-flag.svg | 7 +++++++ 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 app/styles/app/modules/notice.sass create mode 100644 public/images/svg/notice-flag.svg diff --git a/app/styles/app.scss b/app/styles/app.scss index 764e55ba..e3cdcc54 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -38,6 +38,7 @@ @import "app/modules/media"; @import "app/modules/switch"; @import "app/modules/memberlist"; +@import "app/modules/notice"; @import "app/layout"; @import "app/layouts/dashboard"; diff --git a/app/styles/app/modules/icons.sass b/app/styles/app/modules/icons.sass index f10322c2..ec27b927 100644 --- a/app/styles/app/modules/icons.sass +++ b/app/styles/app/modules/icons.sass @@ -192,3 +192,6 @@ border-left : 5px solid transparent border-right : 5px solid transparent border-top : 5px solid $dashboard-text-color + +.icon-flag + background-image: inline-image('svg/notice-flag.svg') diff --git a/app/styles/app/modules/notice.sass b/app/styles/app/modules/notice.sass new file mode 100644 index 00000000..0bb6b34f --- /dev/null +++ b/app/styles/app/modules/notice.sass @@ -0,0 +1,16 @@ +.notice + padding: 0.3em 0.5em 0.2em + margin-bottom: .5em + background-color: #F9F3D3 + color: #AF9112 + border-radius: 4px + a + color: #AF9112 + text-decoration: underline + + .icon-flag + @extend %icon + width: 1.3em + height: 1.5em + margin: 0 .6em 0 .2em + vertical-align: middle \ No newline at end of file diff --git a/app/templates/jobs/pre.hbs b/app/templates/jobs/pre.hbs index 3d48169b..44ddda6f 100644 --- a/app/templates/jobs/pre.hbs +++ b/app/templates/jobs/pre.hbs @@ -5,7 +5,7 @@
Hang tight, the log cannot be shown until the build has started.
{{/if}} {{#if view.job.isLegacyInfrastructure}} -

This job runs on our legacy infrastructure. Read more about upgrading in our docs

+

This job runs on our legacy infrastructure. Read more about upgrading in our docs

{{/if}}
diff --git a/public/images/svg/notice-flag.svg b/public/images/svg/notice-flag.svg new file mode 100644 index 00000000..16ab669c --- /dev/null +++ b/public/images/svg/notice-flag.svg @@ -0,0 +1,7 @@ + + + + +