mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 20:42:44 -05:00
110 lines
2 KiB
SCSS
110 lines
2 KiB
SCSS
@import "common/foundation/variables";
|
|
@import "common/foundation/mixins";
|
|
|
|
// --------------------------------------------------
|
|
// Badges
|
|
// --------------------------------------------------
|
|
|
|
// Base
|
|
// --------------------------------------------------
|
|
|
|
%badge {
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
@include border-radius-all(10px);
|
|
}
|
|
|
|
// Category badge
|
|
// --------------------------------------------------
|
|
|
|
.badge-category {
|
|
padding: 4px 6px;
|
|
color: $secondary;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
&[href] {
|
|
color: $secondary;
|
|
}
|
|
&.restricted {
|
|
div {
|
|
display: inline-block;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.d-dropdown .badge-category {
|
|
&.restricted {
|
|
div {
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding-right: 6px;
|
|
}
|
|
}}
|
|
|
|
h1 a.badge-category div {vertical-align: top;}
|
|
|
|
|
|
// Notification badge
|
|
// --------------------------------------------------
|
|
|
|
.badge-notification {
|
|
@extend %badge;
|
|
padding: 4px;
|
|
padding-top: 3px;
|
|
color: $secondary;
|
|
font-size: 11px;
|
|
min-width: 10px;
|
|
text-align: center;
|
|
background-color: $badge-notification-background-color;
|
|
&[href] {
|
|
color: $secondary;
|
|
}
|
|
|
|
// New posts
|
|
|
|
&.new-posts, &.unread-posts {
|
|
background-color: $tertiary;
|
|
}
|
|
|
|
// Click count
|
|
|
|
&.clicks {
|
|
font-weight: normal;
|
|
background-color: #ddd;
|
|
top: -1px;
|
|
color: #888;
|
|
position: relative;
|
|
margin-left: 2px;
|
|
}
|
|
}
|
|
|
|
// 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: $primary;
|
|
text-shadow: 0 1px 0 rgba($secondary, 0.2);
|
|
background-color: #ddd;
|
|
border-color: #aaa;
|
|
font-size: 12px;
|
|
@include box-shadow(inset 0 1px 0 rgba($secondary, 0.52));
|
|
}
|