Build mobile apps with simple HTML, CSS, and JS components. http://goratchet.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.6 KiB

//
// Badges
// --------------------------------------------------
.badge {
display: inline-block;
11 years ago
padding: 2px 9px;
font-size: 13px;
line-height: 1;
color: #333;
11 years ago
background-color: rgba(0,0,0,.15);
border-radius: 100px;
11 years ago
&.badge-inverted {
padding: 0;
background-color: transparent;
}
}
// Badge modifiers
// --------------------------------------------------
// Main badge
.badge-primary {
11 years ago
color: #fff;
background-color: $primary-color;
11 years ago
&.badge-inverted {
color: $primary-color;
}
}
// Positive badge
.badge-positive {
11 years ago
color: #fff;
background-color: $positive-color;
11 years ago
&.badge-inverted {
color: $positive-color;
}
}
// Negative badge
.badge-negative {
11 years ago
color: #fff;
background-color: $negative-color;
11 years ago
&.badge-inverted {
color: $negative-color;
}
}
// Badges in buttons
// --------------------------------------------------
// Generic styles for all badges within default buttons
.btn .badge {
font-size: 12px;
padding-top: 2px;
padding-bottom: 2px;
margin: -2px -4px -2px 4px;
11 years ago
background-color: rgba(0,0,0,.15);
}
// Styles for filled badges within filled buttons
11 years ago
.btn .badge-inverted,
.btn:active .badge-inverted {
11 years ago
background-color: transparent;
}
11 years ago
.btn-primary:active .badge-inverted,
.btn-positive:active .badge-inverted,
.btn-negative:active .badge-inverted {
11 years ago
color: #fff;
}
// Position badges within block level buttons
// Note: These are absolutely positioned so that text of button isn't "pushed" by badge and always
// stays at true center of button
.btn-block .badge {
position: absolute;
right: 0;
margin-right: 10px;
11 years ago
}