1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 09:24:24 +04:00
Files
tabler/core/scss/ui/_icons.scss

73 lines
1.1 KiB
SCSS

//
// Icon component
//
.icon {
--#{$prefix}icon-size: #{$font-size-base * $line-height-base};
width: var(--#{$prefix}icon-size);
height: var(--#{$prefix}icon-size);
font-size: var(--#{$prefix}icon-size);
vertical-align: bottom;
@if $icon-stroke-width {
stroke-width: $icon-stroke-width;
}
&:hover {
text-decoration: none;
}
}
//
// Inline icon
//
.icon-inline {
--#{$prefix}icon-size: 1rem;
vertical-align: -0.2rem;
}
//
// Filled icon
//
.icon-filled {
fill: currentColor;
}
//
// Icon size
//
.icon-sm {
--#{$prefix}icon-size: 1rem;
stroke-width: 1.5;
}
.icon-md {
--#{$prefix}icon-size: 2.5rem;
stroke-width: 1;
}
.icon-lg {
--#{$prefix}icon-size: 3.5rem;
stroke-width: 1;
}
//
// Icons animation
//
.icon-pulse {
transition: all 0.15s ease 0s;
animation: pulse 2s ease infinite;
animation-fill-mode: both;
}
.icon-tada {
transition: all 0.15s ease 0s;
animation: tada 3s ease infinite;
animation-fill-mode: both;
}
.icon-rotate {
transition: all 0.15s ease 0s;
animation: rotate-360 3s linear infinite;
animation-fill-mode: both;
}