Skip to content

Commit

Permalink
Add live service tag and semantic colour name
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Aug 12, 2016
1 parent d87fa8e commit 043f450
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/stylesheets/components/_components-phase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@
background-color: $beta-colour;
color: $white;
}

&--live {
background-color: $live-colour;
color: $white;
}
}
2 changes: 1 addition & 1 deletion src/stylesheets/settings/_settings-colours.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ $body-text-colour: get-colour(grey, mid-dark);
// $discovery-colour: $fuschia; // Discovery badges and banners
$alpha-colour: get-colour(pink); // Alpha badges and banners
$beta-colour: get-colour(orange); // Beta badges and banners
// $live-colour: $grass-green; // Live badges and banners
$live-colour: get-colour(green); // Live badges and banners
// $banner-text-colour: #000; // Text colour for Alpha & Beta banners
$error-colour: get-colour(red); // Error text and border colour
$error-background-colour: get-colour(red, x-light); // Error background colour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block main %}

<h1>Alpha &amp; beta phases</h1>
<h1>Alpha, beta &amp; live phases</h1>

<nav>
<ul>
Expand All @@ -30,6 +30,9 @@
<li>
A beta service <strong class="phase-tag phase-tag--beta">BETA</strong>
</li>
<li>
A live service <strong class="phase-tag phase-tag--live">LIVE</strong>
</li>
</ul>

{%- endexample %}
Expand Down Expand Up @@ -68,6 +71,19 @@
</span>
</p>
{%- endexample %}

<h3>Live</h3>

{% example -%}
<p class="phase-banner">
<span class="phase-banner__tag">
<strong class="phase-tag phase-tag--live">LIVE</strong>
</span>
<span class="phase-banner__label">
Pathways is a Live Service
</span>
</p>
{%- endexample %}
</section>

{% endblock %}
2 changes: 1 addition & 1 deletion web/server/views/components/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

{{ item("Tabs", "/components/tabs", "Content is separated into different panes, with only one pane viewable at a time.") }}

{{ item("Alpha/beta", "/components/alpha-beta", "Phase tags and banner to denote alpha and beta services.") }}
{{ item("Alpha/beta", "/components/alpha-beta-live", "Phase tags and banner to denote alpha and beta services.") }}

{{ item("Navigation", "/components/navigation", "Lorem ipsum dolor sit amet, consectetur adipisicing elit.") }}

Expand Down
2 changes: 1 addition & 1 deletion web/server/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

{{ item("Tabs", "/components/tabs", "Content is separated into different panes, with only one pane viewable at a time.") }}

{{ item("Alpha/beta", "/components/alpha-beta", "Phase tags and banner to denote alpha and beta services") }}
{{ item("Alpha/beta", "/components/alpha-beta-live", "Phase tags and banner to denote alpha and beta services") }}

{{ item("Navigation", "/components/navigation", "Lorem ipsum dolor sit amet, consectetur adipisicing elit.") }}

Expand Down

0 comments on commit 043f450

Please sign in to comment.