Ghost/ghost/admin/app/styles/components/badges.css

75 lines
1.2 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Badges
/* ---------------------------------------------------------- */
.badge {
display: inline-block;
min-width: 10px;
padding: 2px 4px;
box-shadow: 0 0 0 1px #777;
font-size: 1rem;
font-weight: inherit;
color: #FFF;
line-height: 1;
vertical-align: baseline;
white-space: nowrap;
text-align: center;
background-color: #777;
border-radius: 10px;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.btn-xs .badge {
top: 0;
padding: 1px 5px;
}
p .badge {
padding: 0px 4px 3px;
position: relative;
top: -2px;
margin-left: -1px;
}
.nav-pills > li > a > .badge {
margin-left: 3px;
}
.nav-item .badge {
margin-top: -5px;
margin-left: 3px;
}
a.badge:hover,
a.badge:focus {
color: #fff;
text-decoration: none;
cursor: pointer;
}
/* Colour variations
/* ---------------------------------------------------------- */
.badge.badge-blue {
background-color: var(--blue);
box-shadow: 0 0 0 1px var(--blue);
}
.badge.badge-green {
background-color: var(--green);
box-shadow: 0 0 0 1px var(--green);
}
.badge.badge-red {
background-color: var(--red);
box-shadow: 0 0 0 1px var(--red);
}