2017-07-31 13:24:04 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==Badges */
|
|
|
|
/* ----------------------------- */
|
2017-07-31 15:49:38 +02:00
|
|
|
/* use .badge-- classes for variants */
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
display: inline-block;
|
2017-11-02 16:07:27 +01:00
|
|
|
padding: $spacer-tiny;
|
2017-10-03 11:03:48 +02:00
|
|
|
border-radius: 50%;
|
2017-07-31 15:49:38 +02:00
|
|
|
color: $color-base;
|
|
|
|
background-color: $color-muted;
|
2017-07-31 18:18:45 +02:00
|
|
|
line-height: 1;
|
2017-10-03 11:03:48 +02:00
|
|
|
|
2017-10-03 11:12:59 +02:00
|
|
|
&::before {
|
2017-10-03 11:03:48 +02:00
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding-top: 100%;
|
|
|
|
}
|
2017-07-31 15:49:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
@each $name, $background-color, $color, $border in $variants-list {
|
|
|
|
&--#{$name} {
|
|
|
|
@extend .badge;
|
|
|
|
background-color: $background-color;
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// badge state variants
|
|
|
|
.badge {
|
|
|
|
&--small {
|
2017-10-17 17:06:15 +02:00
|
|
|
font-size: $font-size-base - 0.4rem;
|
2017-07-31 15:49:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--big {
|
2017-10-17 17:06:15 +02:00
|
|
|
font-size: $font-size-base + 0.4rem;
|
2017-07-31 15:49:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled,
|
|
|
|
&--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2018-05-11 19:53:09 +02:00
|
|
|
|
2017-07-31 16:01:20 +02:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-07-31 15:49:38 +02:00
|
|
|
}
|