// Name: Badge
// Description: Component to create notification badges
//
// Component: `uk-badge`
//
// ========================================================================
// Variables
// ========================================================================
/* ========================================================================
Component: Badge
========================================================================== */
/*
* 1. Style
* 2. Center child vertically and horizontally
*/
.uk-badge {
box-sizing: border-box;
min-width: $badge-size;
height: $badge-size;
padding: $badge-padding-vertical $badge-padding-horizontal;
border-radius: $badge-border-radius;
vertical-align: middle;
/* 1 */
background: $badge-background;
color: $badge-color !important;
font-size: $badge-font-size;
/* 2 */
display: inline-flex;
justify-content: center;
align-items: center;
line-height: 0;
@if(mixin-exists(hook-badge)) {@include hook-badge();}
}
/*
* Required for `a`
*/
.uk-badge:hover {
text-decoration: none;
@if(mixin-exists(hook-badge-hover)) {@include hook-badge-hover();}
}
// Hooks
// ========================================================================
@if(mixin-exists(hook-badge-misc)) {@include hook-badge-misc();}
// @mixin hook-badge(){}
// @mixin hook-badge-hover(){}
// @mixin hook-badge-misc(){}
// Inverse
// ========================================================================
// @mixin hook-inverse-badge(){}
// @mixin hook-inverse-badge-hover(){}