-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d50b83b
commit b1e8e93
Showing
6 changed files
with
60 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="hex-icon"> | ||
<div class="inner"> | ||
{% include {{ include.file }} %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
:root { | ||
--sin-60: 0.866; | ||
} | ||
|
||
.hex-icon { | ||
--icon-height: 48px; | ||
|
||
width: calc(var(--icon-height) * var(--sin-60)); | ||
height: var(--icon-height); | ||
display: inline-block; | ||
margin-right: 12px; | ||
position: relative; | ||
|
||
filter: drop-shadow(0 0 2px rgba(0,0,0,0.1)) | ||
drop-shadow(0 1px 1px rgba(0,0,0,0.2)) | ||
drop-shadow(0 1px 1px rgba(0,0,0,0.1)); | ||
|
||
.inner { | ||
background-color: white; | ||
width: 100%; | ||
height: 100%; | ||
|
||
clip-path: polygon( | ||
evenodd, | ||
0% 25%, | ||
0% 75%, | ||
50% 100%, | ||
100% 75%, | ||
100% 25%, | ||
50% 0, | ||
0% 25% | ||
); | ||
|
||
& > * { | ||
position: absolute; | ||
width: 24px; | ||
height: 24px; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Hex Icon | ||
type: elements | ||
--- | ||
{% include elements/hex-icon.html file='icons/folder.svg' %} |