Last active
November 28, 2023 15:49
-
-
Save iamrobert/a6ce75d6d8b82546591b8c4ec2515892 to your computer and use it in GitHub Desktop.
IAMROBERT ICONS FILE
This file contains hidden or 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
/* | |
* ======================================================================= | |
+ ICONS | |
----------------------------------------------------------------------- | |
* ======================================================================= | |
*/ | |
/*! purgecss start ignore */ | |
.icon { | |
// --size: 1rem; | |
--size: var(--step-0); | |
display: inline-flex; | |
color: inherit; | |
fill: currentColor; | |
height: var(--size); | |
width: var(--size); | |
line-height: 1; | |
flex-shrink: 0; | |
max-width: initial; | |
transform: translateY(var(--m2)); | |
position: relative; | |
&::before { | |
height: var(--size); | |
width: var(--size); | |
transition: background .45s cubic-bezier(.08, .03, .22, .87); | |
} | |
} | |
p > .icon { | |
margin-right: var(--m10); | |
} | |
@mixin icon-output($icon-name) { | |
.icon-#{$icon-name}:before { | |
content: '';display: inline-flex; | |
mask: url("../images/icons/#{$icon-name}.svg"); | |
mask-size: contain; | |
mask-repeat: no-repeat; | |
background: var(--blue); | |
} | |
} | |
@include icon-output("block"); | |
@include icon-output("building"); | |
@include icon-output("calendar"); | |
@include icon-output("calendar-1"); | |
/*! purgecss end ignore */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment