landingpage/themes/app-landingpage/assets/scss/_icon.scss
Dorian Zedler 1b923de71a
Some checks failed
continuous-integration/drone Build is failing
Chore: initial commit
2022-08-06 20:25:26 +02:00

30 lines
No EOL
678 B
SCSS

@mixin image-icon($value) {
&_#{$value}:before {
background-image: url("../img/icons/#{$value}.svg");
}
}
.icon {
overflow: visible;
position: relative;
&:before {
content: "";
background-position: center;
background-repeat: no-repeat;
position: absolute;
width: 100%;
height: 100%;
top: 50%;
left: 50%;
transform: translate3d(-50%,-50%,0);
}
@include image-icon('github');
@include image-icon('arrow-down');
@include image-icon('arrow-right');
@include image-icon('arrow-left');
&_img {
&:before {
content: normal;
}
}
}