sp-codes.de/src/scss/icons.scss

38 lines
671 B
SCSS
Raw Normal View History

.si, .si::before {
2021-04-10 20:20:22 +00:00
display: inline-block;
margin: 0 8px;
width: 4em;
height: 4em;
line-height: 1;
box-sizing: border-box;
2021-04-10 20:20:22 +00:00
}
@media (max-width: 767.98px) {
.si, .si::before {
2021-04-10 20:20:22 +00:00
margin: 0 4px;
width: 2em;
height: 2em;
}
}
.h2si, .h2si::before {
2021-04-10 20:20:22 +00:00
margin: 0;
width: 30px;
height: 24px;
}
@mixin svg-icon($name) {
.si-#{$name}::before {
2021-04-11 01:39:32 +00:00
content: '\200b';
2021-04-10 20:20:22 +00:00
background-image: url("../img/#{$name}-white.svg");
background-repeat: no-repeat;
background-position: center;
2021-04-10 20:20:22 +00:00
}
}
@include svg-icon('matrix');
@include svg-icon('gitea');
@include svg-icon('xmpp');
@include svg-icon('threema');
@include svg-icon('opencollective');