Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Commit

Permalink
Add notice that components are outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
creuter committed Mar 9, 2017
1 parent 6d29bea commit 72b9f18
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 4 deletions.
9 changes: 9 additions & 0 deletions source/_outdated_notice.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="refills-wrapper">
<div class="refills-notice">
<span>
Refills requires Bourbon 5.0+ and Neat < 2.0, &ge; 1.6. We're working on
another version with a focus on accessibility, which you can preview
<a href="http://refills.netlify.com">here</a>.
</span>
</div>
</div>
1 change: 1 addition & 0 deletions source/components.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ title: Components
<%= partial "refills-menu" %>

<div id="example">
<%= partial "outdated_notice" %>

<section id="accordion" class="refill">
<div class="refills-wrapper">
Expand Down
1 change: 1 addition & 0 deletions source/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ title: Patterns
<%= partial "refills-menu" %>

<div id="example">
<%= partial "outdated_notice" %>

<section id="accordion-tabs" class="refill">
<div class="refills-wrapper">
Expand Down
1 change: 1 addition & 0 deletions source/stylesheets/all.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import "refills-styles";
@import "refills-header";
@import "refills-menu";
@import "refills-notice";
@import "refill";
@import "refills-footer";
@import "bourbon-nav";
Expand Down
19 changes: 19 additions & 0 deletions source/stylesheets/refills-notice.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$_notice-color: #fff6bf;

.refills-notice {
background-color: $_notice-color;
border-radius: 3px;
color: shade($_notice-color, 60%);
padding: 2em 1em;
text-align: center;

a {
color: shade($_notice-color, 70%);
text-decoration: underline;

&:focus,
&:hover {
color: shade($_notice-color, 90%);
}
}
}
9 changes: 5 additions & 4 deletions source/type-systems.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ title: Type Systems
<%= partial "refills-menu" %>

<div id="example">

<%= partial "outdated_notice" %>

<div id="type-systems">

<section class="refill">
Expand Down Expand Up @@ -55,7 +56,7 @@ title: Type Systems
<div class="refill-snippet"><%= code_for("type_system_serif") %></div>
</div>
</section>

<section class="refill">
<div class="refills-wrapper">
<div class="line-behind-text"><h6>Slab Serif</h6></div>
Expand All @@ -73,9 +74,9 @@ title: Type Systems
<div class="refill-centering"><%= partial "type_system_traditional" %></div>
</div>
<div class="refill-snippet"><%= code_for("type_system_traditional") %></div>
</div>
</div>
</section>

</div>
</div>
</div>
Expand Down

0 comments on commit 72b9f18

Please sign in to comment.