Skip to content

Commit

Permalink
Merge pull request #74 from indiana-university/release/0.6.0
Browse files Browse the repository at this point in the history
Release 0.6.0
  • Loading branch information
levimcg authored Mar 18, 2021
2 parents 7d8196e + 306915a commit b005fb0
Show file tree
Hide file tree
Showing 7 changed files with 1,648 additions and 1,610 deletions.
2 changes: 1 addition & 1 deletion dist/rvt-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rivet-icons",
"version": "0.5.0",
"version": "0.6.0",
"description": "Icon set for Indiana University's Rivet design system",
"files": [
"dist/**/*"
Expand Down
17 changes: 13 additions & 4 deletions src/_includes/demo-styles.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@
margin: 0;
padding: 0;
flex-wrap: wrap;
gap: 1rem;
}
.rvt-icons-demo li {
width: 16rem;
.rvt-icons-demo li a {
color: inherit;
text-decoration: none;
display: block;
padding: 2rem;
width: 10rem;
text-align: center;
margin-bottom: 4rem;
}
.rvt-icons-demo li a:hover {
background-color: #f7f7f7;
}
.rvt-icons-demo__title {
Expand Down Expand Up @@ -46,6 +53,8 @@
}
.rvt-icon {
display: block;
margin: 0 auto;
width: 1rem;
height: 1rem;
}
Expand Down
11 changes: 6 additions & 5 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ layout: "layouts/base.njk"
<hr>
<ul class="rvt-icons-demo rvt-p-top-xxl">
{% for icon in collections.icons %}
<li id="{{ icon | replace('.svg', '')}}">
<div>
{% set iconHash = icon | replace('.svg', '') %}
<li id="{{ iconHash }}">
<a href="#{{ iconHash }}">
<svg class="rvt-icon">
<use xlink:href="./svg/rvt-icons.svg#{{ icon | replace('.svg', '')}}"></use>
</svg>
</div>
{% set iconTitle = icon | replace('-', ' ') | replace('.svg', '') | replace('rvt icon ', '') | capitalize %}
<div class="rvt-icons-demo__title">{{ iconTitle }}</div>
{% set iconTitle = icon | replace('-', ' ') | replace('.svg', '') | replace('rvt icon ', '') | capitalize %}
<div class="rvt-icons-demo__title">{{ iconTitle }}</div>
</a>
</li>
{% endfor %}
</ul>
Expand Down
3,218 changes: 1,620 additions & 1,598 deletions src/rivet-icons-source.ai

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/svg/rvt-icon-megaphone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b005fb0

Please sign in to comment.