discourse/app/assets/stylesheets/common/components/badges.css.scss

94 lines
1.7 KiB
SCSS
Raw Normal View History

@import "common/foundation/variables";
@import "common/foundation/mixins";
2013-02-05 14:16:51 -05:00
// --------------------------------------------------
// Badges
// --------------------------------------------------
// Base
// --------------------------------------------------
%badge {
display: inline-block;
font-weight: bold;
line-height: 1;
white-space: nowrap;
2013-08-02 06:46:36 -04:00
@include border-radius-all(10px);
2013-02-05 14:16:51 -05:00
}
// Category badge
// --------------------------------------------------
.badge-category {
padding: 4px 6px;
2013-02-05 14:16:51 -05:00
color: $white;
font-size: 12px;
font-weight: bold;
white-space: nowrap;
2013-02-05 14:16:51 -05:00
&[href] {
color: $white;
}
}
2013-02-05 14:16:51 -05:00
// Notification badge
// --------------------------------------------------
.badge-notification {
@extend %badge;
2013-08-02 15:41:02 -04:00
padding: 4px;
padding-top: 3px;
2013-02-05 14:16:51 -05:00
color: $white;
font-size: 11px;
2013-08-02 15:41:02 -04:00
min-width: 10px;
text-align: center;
2013-02-05 14:16:51 -05:00
background-color: $badge-notification-background-color;
&[href] {
color: $white;
}
// New posts
2013-11-21 14:38:56 -05:00
&.new-posts, &.unread-posts {
2013-02-05 14:16:51 -05:00
background-color: $blue;
}
// Click count
&.clicks {
font-weight: normal;
background-color: #ddd;
top: -1px;
2013-11-17 22:32:58 -05:00
color: #888;
position: relative;
margin-left: 2px;
2013-02-05 14:16:51 -05:00
}
}
// Posts badge
// --------------------------------------------------
.badge-posts {
color: $badge-posts-color;
font-weight: bold;
font-size: 14px;
line-height: 1;
&[href] {
color: $badge-posts-color;
}
}
// Group badge
// --------------------------------------------------
.badge-group {
@extend %badge;
padding: 3px 5px;
color: $black;
text-shadow: 0 1px 0 rgba($white, 0.2);
background-color: #ddd;
border-color: #aaa;
font-size: 12px;
@include box-shadow(inset 0 1px 0 rgba($white, 0.52));
}