1
0
forked from SPC/spc-site
varvara_kaplenko/data/home/assets/sass/components/_icon.scss

66 lines
1008 B
SCSS
Raw Normal View History

2022-05-13 17:21:06 +03:00
///
/// Forty by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Icon */
.icon {
@include icon;
border-bottom: none;
position: relative;
> .label {
display: none;
}
&:before {
line-height: inherit;
}
&.solid {
&:before {
font-weight: 900;
}
}
&.brands {
&:before {
font-family: 'Font Awesome 5 Brands';
}
}
&.alt {
&:before {
background-color: _palette(fg-bold);
border-radius: 100%;
color: _palette(bg);
display: inline-block;
height: 2em;
line-height: 2em;
text-align: center;
width: 2em;
}
}
}
a.icon {
&.alt {
&:before {
@include vendor('transition', 'background-color #{_duration(transition)} ease-in-out');
}
&:hover {
&:before {
background-color: _palette(accent1);
}
}
&:active {
&:before {
background-color: desaturate(darken(_palette(accent1), 15), 5);
}
}
}
}