Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/***
2
Custom Bootstrap Badges
3
***/
4
 
5
.badge {
6
  	font-size: 11px !important;
7
  	font-weight: 300;
8
  	text-align: center;
9
  	height: 18px;
10
    color: #fff;
11
  	padding: 3px 6px 3px 6px;
12
  	-webkit-border-radius: 12px !important;
13
    -moz-border-radius: 12px !important;
14
    border-radius: 12px !important;
15
 	  text-shadow:none !important;
16
  	text-align: center;
17
  	vertical-align: middle;
18
 
19
  	&.badge-roundless {
20
   		   -webkit-border-radius: 0 !important;
21
      	 -moz-border-radius: 0 !important;
22
          border-radius: 0 !important;
23
	 }
24
 
25
    &.badge-empty {
26
      display: inline-block;
27
      padding: 0;
28
      min-width: 8px;
29
      height: 8px;
30
      width: 8px;
31
    }
32
}
33
 
34
/* Badge variants */
35
 
36
@mixin badge-variant($bg-color) {
37
	  background-color: $bg-color;
38
  	background-image: none;
39
}
40
 
41
.badge-default  {
42
    @include badge-variant($brand-default);
43
}
44
 
45
.badge-primary  {
46
    @include badge-variant($brand-primary);
47
}
48
 
49
.badge-info  {
50
    @include badge-variant($brand-info);
51
}
52
 
53
.badge-success  {
54
    @include badge-variant($brand-success);
55
}
56
 
57
.badge-danger  {
58
    @include badge-variant($brand-danger);
59
}
60
 
61
.badge-warning  {
62
    @include badge-variant($brand-warning);
63
}
64
 
65
/* Fix badge position for navs */
66
 
67
.nav.nav-pills,
68
.nav.nav-stacked {
69
    > li {
70
        > a {
71
            > .badge {
72
                margin-top: -2px;
73
            }
74
        }
75
    }
76
}
77
 
78
/***
79
Dropdown Menu Badges
80
***/
81
 
82
.dropdown-menu {
83
    > li {
84
        > a {
85
            > .badge {
86
   	            position: absolute;
87
   	            margin-top: 1px;
88
               	right: 3px;
89
 
90
               	display: inline;
91
                @if $theme-type == "material-design" {
92
                  padding: 4px 6px 2px 6px;
93
                }
94
            }
95
        }
96
    }
97
 
98
    &.badge-roundless {
99
   		-webkit-border-radius: 0 !important;
100
      	 -moz-border-radius: 0 !important;
101
              border-radius: 0 !important;
102
	  }
103
}
104
 
105
 
106
@if $theme-type == "material-design" {
107
    .badge {
108
        @extend .md-shadow-z-1;
109
        text-transform: uppercase;
110
        font-size: 10px;
111
        font-weight: 600;
112
        padding: 4px 6px 2px 6px;
113
    }
114
 
115
    .page-sidebar .badge {
116
         font-size: 10px !important;
117
    }
118
}