1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-30 09:10:59 +02:00
This commit is contained in:
codecalm
2020-02-28 12:00:50 +01:00
parent 27bab3ccc8
commit 4fcdf32cff
2 changed files with 35 additions and 19 deletions

View File

@@ -1,11 +1,12 @@
---
---
$breakpoint: (min-width: 50rem);
$breakpoint: 50rem;
$primary: #206bc4;
$border: #eeeeee;
$muted: #aaaaaa;
$btn-form-height: 2rem;
$hover: rgba(0, 0, 0, .04);
* {
box-sizing: border-box;
@@ -42,7 +43,7 @@ a {
display: flex;
flex-direction: column;
@media #{$breakpoint} {
@media (min-width: #{$breakpoint}) {
flex-direction: row;
}
}
@@ -55,7 +56,7 @@ a {
width: 15rem;
margin-top: 2rem;
@media #{$breakpoint} {
@media (min-width: #{$breakpoint}) {
margin-top: 0;
margin-left: 2rem;
flex-direction: row;
@@ -69,7 +70,6 @@ a {
}
.icon-preview-wrap {
margin-bottom: 3rem;
position: relative;
&:before {
@@ -100,19 +100,27 @@ a {
.icons-list {
display: flex;
margin: -1rem;
margin: -.25rem;
}
.icons-list-icon {
margin: .25rem;
width: 2rem;
height: 2rem;
color: inherit;
border-radius: 3px;
display: inline-flex;
align-items: center;
justify-content: center;
&:hover {
background-color: $hover;
}
.icon {
display: block;
margin: .5rem;
width: 1.5rem;
height: 1.5rem;
}
svg {
display: block;
width: 100%;
height: 100%;
stroke-width: 2;
}
}

View File

@@ -20,7 +20,7 @@
{% include icon.html name=last-icon.slug %}
{% endcapture %}
<div class="row">
<div class="row mb">
<div class="col">
<div class="icon-preview-wrap">
@@ -71,15 +71,23 @@
</div>
<div class="icons-list">
{% for icon in site.icons %}
<div class="icon" title="{{ icon.slug }}">
{% assign name = icon.slug %}
{% include icon.html name=name %}
<div>
<div class="icons-list">
{% for icon in site.icons %}
<a href="#" class="icons-list-icon" title="{{ icon.slug }}">
{% assign name = icon.slug %}
{% include icon.html name=name %}
</a>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
<script>
(function(){
})();
</script>
</body>
</html>