Skip to content

Commit 706e0eb

Browse files
committed
Redesign project site
1 parent 6bb8094 commit 706e0eb

File tree

7 files changed

+37
-69
lines changed

7 files changed

+37
-69
lines changed

_includes/category.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="pv4">
2-
<h2 class="mt0 mb3 tc f6 ttu tracked normal">{{ include.category | replace: '-', ' '}}</h2>
3-
<ul class="flex flex-wrap justify-center mv0 pl0 list">
2+
<h2 class="mt0 mb4 f6 ttu tracked normal">{{ include.category | replace: '-', ' '}}</h2>
3+
<ul class="icon-grid mv0 pl0 list">
44
{% capture category_path %}icons/{{ include.category }}{% endcapture %}
55
{% for icon in site.static_files %}
66
{% if icon.path contains category_path %}

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<footer class="flex flex-column items-center pv5">
1+
<footer class="flex flex-column items-center pt5-ns pb5">
22
<ul class="flex flex-column flex-row-l justify-center w-80 mv0 pl0 list">
33
{% for link in include.links %}
44
<li class="mh3-l pv3 pv0-l f5 bb b--black-10 bn-l">

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<header class="bb b--black-10 pv3">
2-
<div class="w-80 mw8 center flex justify-between items-center">
1+
<header class="pv3 bb b--black-10">
2+
<div class="w-80 center flex justify-between items-center">
33
<h1 class="mv0 normal f3 lh-copy black-90">Feather <span class="f5 black-60">v{{ site.data.package.version }}</span></h1>
44

55
<ul class="list mv0 pl0 flex dn">
@@ -14,7 +14,7 @@ <h1 class="mv0 normal f3 lh-copy black-90">Feather <span class="f5 black-60">v{{
1414
<h2 class="mt0 mb4 f2 fw3 tc lh-title black-90">Simply beautiful open source icons</h2>
1515

1616
<a
17-
class="btn white bg-accent br3 dim"
17+
class="button white bg-accent br2"
1818
href="feather-{{ site.data.package.version }}.zip"
1919
download
2020
onclick="ga('send', 'event', 'download', 'click', 'all');">

_includes/icon.html

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
<li class="icon relative pa3 ma2 black-90 bg-animate br3 outline-0 pointer">
2-
{% include_relative {{ include.icon.path }} %}
3-
<div class="tooltip flex flex-column tc white bg-dark-gray br3">
4-
<p class="dib mh4 mv3 lh-copy nowrap">{{ include.icon.basename }}</p>
5-
<a
6-
class="btn white bg-black-90 dim br3 br--bottom outline-0"
7-
href="{{ include.icon.path }}"
8-
download
9-
tabindex="-1"
10-
onclick="ga('send', 'event', 'download', 'click', '{{ include.icon.basename }}');">
11-
Download
12-
</a>
13-
</div>
14-
</li>
1+
<li>
2+
<a
3+
href="{{ include.icon.path }}"
4+
class="flex flex-row items-center dib pa3 br2 no-underline dark-gray bg-near-white bg-animate hover-bg-light-gray"
5+
download
6+
onclick="ga('send', 'event', 'download', 'click', '{{ include.icon.basename }}');">
7+
<span class="svg flex-none lh-none">{% include_relative {{ include.icon.path }} %}</span>
8+
<span class="ml3 lh-copy f6 tc black-60 ellipse">{{ include.icon.basename }}</span>
9+
</a>
10+
</li>

_includes/icons.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<div class="w-80 center mw8 pv5">
1+
<div class="w-80 center pv5">
22
{% include category.html category="core" %}
33
{% include category.html category="media-controls" %}
44
{% include category.html category="communication" %}
55
{% include category.html category="photo-and-video" %}
66
{% include category.html category="location" %}
77
{% include category.html category="weather" %}
88
{% include category.html category="arrows" %}
9+
{% include category.html category="logos" %}
910
</div>

index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@
3131
<link href="https://unpkg.com/tachyons/css/tachyons.min.css" rel="stylesheet">
3232
<link href="style.css" rel="stylesheet">
3333
</head>
34-
<body class="ma0 rubik font-smoothing black-60 bg-near-white">
35-
36-
<div class="bg-white">
37-
{% include header.html %}
38-
{% include icons.html %}
39-
</div>
34+
<body class="ma0 rubik font-smoothing black-60 bg-white">
4035

36+
{% include header.html %}
37+
{% include icons.html %}
4138
{% include footer.html links=page.links %}
4239

4340
</script>

style.css

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
-moz-osx-font-smoothing: grayscale;
2020
}
2121

22-
.btn {
22+
.button {
2323
display: inline-block;
2424
padding: 1rem 2rem;
2525
font-size: 1rem;
@@ -28,56 +28,30 @@
2828
text-decoration: none;
2929
}
3030

31-
.btn-outline {
31+
.button-outline {
3232
box-shadow: inset 0 0 0 1px currentColor;
3333
}
3434

35-
.icon {
36-
width: 1.5rem;
37-
height: 1.5rem;
38-
box-sizing: content-box;
35+
.lh-none {
36+
line-height: 0;
3937
}
4038

41-
.icon [stroke] {
42-
stroke: currentColor;
43-
}
44-
45-
.icon [fill]:not([fill=none]) {
46-
fill: currentColor;
39+
.ellipse {
40+
white-space: nowrap;
41+
overflow: hidden;
42+
text-overflow: ellipsis;
4743
}
4844

49-
.tooltip {
50-
position: absolute;
51-
top: calc(100% + 1rem);
52-
left: 50%;
53-
transform: translateX(-50%) scale(0.75);
54-
transform-origin: 50% -1rem;
55-
opacity: 0;
56-
visibility: hidden;
57-
cursor: default;
58-
z-index: 1;
59-
transition-property: opacity, visibility, transform;
60-
transition-duration: 0.15s;
61-
transition-timing-function: ease-in-out;
45+
.icon-grid {
46+
display: grid;
47+
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
48+
grid-gap: 1rem;
6249
}
6350

64-
/* tooltip arrow */
65-
.tooltip::before {
66-
content: "";
67-
position: absolute;
68-
top: 0;
69-
left: 50%;
70-
transform: translate(-50%, -1rem);
71-
display: block;
72-
width: 2.5rem;
73-
height: 1.5rem;
74-
background-image: url("assets/tooltip-arrow.svg");
75-
background-size: 100%;
51+
.svg [stroke] {
52+
stroke: currentColor;
7653
}
7754

78-
.icon:hover .tooltip {
79-
opacity: 1;
80-
visibility: visible;
81-
transform: translateX(-50%) scale(1);
82-
transition-delay: 0.15s;
55+
.svg [fill]:not([fill=none]) {
56+
fill: currentColor;
8357
}

0 commit comments

Comments
 (0)