You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
776 B
54 lines
776 B
// Icon variables
|
|
$icon-border-width: $border-width-lg;
|
|
$icon-prefix: "icon";
|
|
|
|
// Icon base style
|
|
.#{$icon-prefix} {
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
font-size: inherit;
|
|
font-style: normal;
|
|
height: 1em;
|
|
position: relative;
|
|
text-indent: -9999px;
|
|
vertical-align: middle;
|
|
width: 1em;
|
|
&::before,
|
|
&::after {
|
|
display: block;
|
|
left: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
// Icon sizes
|
|
&.icon-2x {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
&.icon-3x {
|
|
font-size: 2.4rem;
|
|
}
|
|
|
|
&.icon-4x {
|
|
font-size: 3.2rem;
|
|
}
|
|
}
|
|
|
|
// Component icon support
|
|
.accordion,
|
|
.btn,
|
|
.toast,
|
|
.menu {
|
|
.#{$icon-prefix} {
|
|
vertical-align: -10%;
|
|
}
|
|
}
|
|
|
|
.btn-lg {
|
|
.#{$icon-prefix} {
|
|
vertical-align: -15%;
|
|
}
|
|
}
|