Merge "Add qtip job to pod zte-virtual6"
[releng.git] / utils / test / testapi / 3rd_party / static / testapi-ui / assets / lib / bootstrap / less / badges.less
1 //
2 // Badges
3 // --------------------------------------------------
4
5
6 // Base class
7 .badge {
8   display: inline-block;
9   min-width: 10px;
10   padding: 3px 7px;
11   font-size: @font-size-small;
12   font-weight: @badge-font-weight;
13   color: @badge-color;
14   line-height: @badge-line-height;
15   vertical-align: baseline;
16   white-space: nowrap;
17   text-align: center;
18   background-color: @badge-bg;
19   border-radius: @badge-border-radius;
20
21   // Empty badges collapse automatically (not available in IE8)
22   &:empty {
23     display: none;
24   }
25
26   // Quick fix for badges in buttons
27   .btn & {
28     position: relative;
29     top: -1px;
30   }
31   
32   .btn-xs & {
33     top: 0;
34     padding: 1px 5px;
35   }
36
37   // Hover state, but only for links
38   a& {
39     &:hover,
40     &:focus {
41       color: @badge-link-hover-color;
42       text-decoration: none;
43       cursor: pointer;
44     }
45   }
46
47   // Account for badges in navs
48   .list-group-item.active > &,
49   .nav-pills > .active > a > & {
50     color: @badge-active-color;
51     background-color: @badge-active-bg;
52   }
53   
54   .list-group-item > & {
55     float: right;
56   }
57   
58   .list-group-item > & + & {
59     margin-right: 5px;
60   }
61   
62   .nav-pills > li > a > & {
63     margin-left: 3px;
64   }
65 }