From 55260c917a494a877d475cd231fcd1824f7c8f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Wed, 27 Aug 2014 10:46:20 +0200 Subject: [PATCH] help button common for all pages if necessary --- app/partials/admin-project-values-us-points.jade | 3 ++- app/partials/views/components/help.jade | 2 ++ app/styles/components/help.scss | 11 +++++++++++ app/styles/layout/admin-project-values.scss | 11 ----------- app/styles/main.scss | 1 + 5 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 app/partials/views/components/help.jade create mode 100644 app/styles/components/help.scss diff --git a/app/partials/admin-project-values-us-points.jade b/app/partials/admin-project-values-us-points.jade index d2349584..85b2931d 100644 --- a/app/partials/admin-project-values-us-points.jade +++ b/app/partials/admin-project-values-us-points.jade @@ -16,7 +16,8 @@ block content section.main.admin-roles header include views/components/mainTitle - a.icon.icon-idea(href="", title="About User Story (US) Points: Most people start off with 1 point = 1 man day of effort. If you're new to scrum & agile start there. After the first week if you and your team expected to accomplish 25 points (i.e. 5 people 5 full days) and only got half done, learn from your findings, and adjust expectations for the following week. By doing so you'll learn your teams true 'velocity.'") + - var helpText = "About User Story (US) Points: Most people start off with 1 point = 1 man day of effort. If you're new to scrum & agile start there. After the first week if you and your team expected to accomplish 25 points (i.e. 5 people 5 full days) and only got half done, learn from your findings, and adjust expectations for the following week. By doing so you'll learn your teams true 'velocity.'" + include views/components/help div.project-values-options a.button.button-green.show-add-new(href="", title="Add New") diff --git a/app/partials/views/components/help.jade b/app/partials/views/components/help.jade new file mode 100644 index 00000000..8359abec --- /dev/null +++ b/app/partials/views/components/help.jade @@ -0,0 +1,2 @@ +//Defined variable 'helpText' in parent template +a.icon.icon-idea.help(href="", title=helpText) diff --git a/app/styles/components/help.scss b/app/styles/components/help.scss new file mode 100644 index 00000000..55d5b943 --- /dev/null +++ b/app/styles/components/help.scss @@ -0,0 +1,11 @@ +a.help { + @include transition(color .2s linear); + color: $gray-light; + position: absolute; + right: 0; + top: 0; + &:hover { + @include transition(color .2s linear); + color: $green-taiga; + } +} diff --git a/app/styles/layout/admin-project-values.scss b/app/styles/layout/admin-project-values.scss index a2c3b63c..12f2b73b 100644 --- a/app/styles/layout/admin-project-values.scss +++ b/app/styles/layout/admin-project-values.scss @@ -2,17 +2,6 @@ header { position: relative; } - .icon-idea { - @include transition(color .2s linear); - position: absolute; - top: 0; - right: 0; - color: $gray-light; - &:hover { - @include transition(color .2s linear); - color: $green-taiga; - } - } } .project-values-options { diff --git a/app/styles/main.scss b/app/styles/main.scss index faa47f6d..63a1effa 100755 --- a/app/styles/main.scss +++ b/app/styles/main.scss @@ -44,6 +44,7 @@ $prefix-for-spec: true; @import 'components/select-color'; @import 'components/loader'; @import 'components/spinner'; +@import 'components/help'; //################################################# // Modules