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;
padding: 2px 4px;
2015-05-16 14:43:12 +03:00
min-width: 10px;
background-color: #777;
border-radius: 10px;
2015-05-14 16:45:37 +03:00
box-shadow: 0 0 0 1px #777;
2015-05-16 00:28:30 +03:00
color: #fff;
2015-05-14 16:45:37 +03:00
vertical-align: baseline;
text-align: center;
2015-05-16 14:43:12 +03:00
white-space: nowrap;
font-size: 1rem;
line-height: 1;
font-weight: inherit;
2015-05-14 16:45:37 +03:00
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.btn-xs .badge {
top: 0;
padding: 1px 5px;
}
p .badge {
position: relative;
top: -2px;
margin-left: -1px;
2015-05-16 14:43:12 +03:00
padding: 0 4px 3px;
2015-05-14 16:45:37 +03:00
}
.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);
}