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.

91 lines
1.7 KiB

//
// Badges
// --------------------------------------------------
[class*="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
[class*="button"] [class*="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
[class*="button"] .badge-inverted,
[class*="button"]:active .badge-inverted {
background-color: transparent;
}
.button-primary:active .badge-inverted,
.button-positive:active .badge-inverted,
.button-negative:active .badge-inverted {
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
.button-block [class*="badge"] {
position: absolute;
right: 0;
margin-right: 10px;
11 years ago
}
// Badges in table-views
// --------------------------------------------------