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.

57 lines
1.1 KiB

//
// Counts
// --------------------------------------------------
12 years ago
[class*="count"] {
display: inline-block;
padding: 4px 9px;
font-size: 12px;
font-weight: bold;
line-height: 13px;
color: #fff;
background-color: rgba(0, 0, 0, .3);
border-radius: 100px;
}
// Count modifiers
// --------------------------------------------------
12 years ago
// Main count
12 years ago
.count-main {
background-color: #1eafe7;
}
// Positive count
12 years ago
.count-positive {
background-color: #4cd964;
12 years ago
}
// Negative count
12 years ago
.count-negative {
background-color: #e71e1e;
}
// Counts in buttons
// --------------------------------------------------
// Generic styles for all counts within buttons
[class*="button"] [class*="count"] {
padding-top: 2px;
padding-bottom: 2px;
margin-right: -4px;
margin-left: 4px;
background-color: rgba(0, 0, 0, .1);
}
// Position counts within block level buttons
// Note: These are absolutely positioned so that text of button isn't "pushed" by count and always
// stays at true center of button
.button-block [class*="count"] {
position: absolute;
right: 0;
padding-top: 4px;
padding-bottom: 4px;
margin-right: 10px;
12 years ago
}