This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/frontend/less/espo/bootstrap/badges.less
T
Yuri Kuznetsov 28b52953bc less ref
2024-10-30 11:30:37 +02:00

63 lines
1.2 KiB
Plaintext

// Badges
.badge {
display: inline-block;
min-width: var(--10px);
padding: var(--3px) var(--7px);
font-size: var(--font-size-small);
font-weight: 600;
color: var(--white-color);
line-height: 1;
vertical-align: middle;
white-space: nowrap;
text-align: center;
background-color: var(--gray-light);
border-radius: var(--badge-border-radius-value);
// Empty badges collapse automatically (not available in IE8)
&:empty {
display: none;
}
// Quick fix for badges in buttons
.btn & {
position: relative;
top: var(--minus-1px);
}
.btn-xs &,
.btn-group-xs > .btn & {
top: 0;
padding: var(--1px) var(--5px);
}
// Hover state, but only for links
a& {
&:hover,
&:focus {
color: var(--white-color);
text-decoration: none;
cursor: pointer;
}
}
// Account for badges in navs
.list-group-item.active > &,
.nav-pills > .active > a > & {
color: var(--link-color);
background-color: var(--white-color);
}
.list-group-item > & {
float: right;
}
.list-group-item > & + & {
margin-right: var(--5px);
}
.nav-pills > li > a > & {
margin-left: var(--3px);
}
}