File: badges.less

package info (click to toggle)
twitter-bootstrap 2.0.2%2Bdfsg-10
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,748 kB
  • ctags: 606
  • sloc: makefile: 101
file content (36 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// BADGES
// ------

// Base
.badge {
  padding: 1px 9px 2px;
  font-size: @baseFontSize * .925;
  font-weight: bold;
  white-space: nowrap;
  color: @white;
  background-color: @grayLight;
  .border-radius(9px);
}

// Hover state
.badge:hover {
  color: @white;
  text-decoration: none;
  cursor: pointer;
}

// Colors
.badge-error            { background-color: @errorText; }
.badge-error:hover      { background-color: darken(@errorText, 10%); }

.badge-warning          { background-color: @orange; }
.badge-warning:hover    { background-color: darken(@orange, 10%); }

.badge-success          { background-color: @successText; }
.badge-success:hover    { background-color: darken(@successText, 10%); }

.badge-info             { background-color: @infoText; }
.badge-info:hover       { background-color: darken(@infoText, 10%); }

.badge-inverse          { background-color: @grayDark; }
.badge-inverse:hover    { background-color: darken(@grayDark, 10%); }