2013-02-05 14:16:51 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
%badge {
|
|
|
|
display: inline-block;
|
2014-03-15 12:01:17 -04:00
|
|
|
font-weight: normal;
|
2013-02-05 14:16:51 -05:00
|
|
|
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
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-01-28 22:53:02 -05:00
|
|
|
.badge-wrapper span {
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.857em;
|
2013-07-22 03:11:34 -04:00
|
|
|
font-weight: bold;
|
2013-07-26 10:11:00 -04:00
|
|
|
white-space: nowrap;
|
2014-03-17 23:00:39 -04:00
|
|
|
display: inline-block;
|
2014-03-19 09:38:35 -04:00
|
|
|
line-height: 1;
|
2015-01-28 22:53:02 -05:00
|
|
|
position: relative;
|
2014-03-21 15:33:30 -04:00
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2014-03-21 15:33:30 -04:00
|
|
|
.badge-wrapper {
|
|
|
|
white-space: nowrap;
|
2015-01-28 22:53:02 -05:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2014-03-19 16:04:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-category {
|
2015-01-29 01:34:05 -05:00
|
|
|
padding: 6px 4px;
|
2015-01-28 22:53:02 -05:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-01-29 01:34:05 -05:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-wrapper > .badge-category {
|
|
|
|
// ie9?
|
|
|
|
width: 100%;
|
|
|
|
width: calc(100% - 10px)
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-header li.category .badge-wrapper {
|
|
|
|
max-width: calc(100% - 30px)
|
|
|
|
}
|
|
|
|
|
2015-01-29 01:38:18 -05:00
|
|
|
h3 .badge-category {
|
|
|
|
padding-left: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 .badge-wrapper {
|
|
|
|
padding-left: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-29 01:34:05 -05:00
|
|
|
.title-wrapper .badge-category-bg {
|
|
|
|
vertical-align: top;
|
|
|
|
padding-top:0;
|
|
|
|
padding-bottom:0;
|
2014-03-19 16:04:53 -04:00
|
|
|
}
|
2014-03-19 09:38:35 -04:00
|
|
|
|
2015-01-28 22:53:02 -05:00
|
|
|
.badge-category-parent-bg, .badge-category-bg {
|
2014-03-19 16:04:53 -04:00
|
|
|
padding: 6px 2px;
|
|
|
|
width: 2px;
|
|
|
|
.category-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-02-11 00:53:14 -05:00
|
|
|
.d-dropdown .badge-category {
|
|
|
|
&.restricted {
|
2015-01-28 22:53:02 -05:00
|
|
|
span {
|
2014-02-11 00:53:14 -05:00
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
2014-02-06 00:30:44 -05:00
|
|
|
h1 a.badge-category div {vertical-align: top;}
|
|
|
|
|
2015-01-29 01:34:05 -05:00
|
|
|
.category-breadcrumb li > .badge-category {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2015-01-28 22:53:02 -05:00
|
|
|
// specific styles for badge categories
|
|
|
|
|
2015-01-29 01:34:05 -05:00
|
|
|
.bar {
|
2015-01-28 22:53:02 -05:00
|
|
|
.badge-category {
|
|
|
|
color: $primary !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-29 01:34:05 -05:00
|
|
|
.category-breadcrumb li.bar > .badge-category {
|
|
|
|
background: dark-light-diff($primary, $secondary, 95%, -65%) !important;
|
|
|
|
&:not(.home):first-child {
|
|
|
|
border-left-width: 5px;
|
|
|
|
border-left-style: solid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-29 01:48:55 -05:00
|
|
|
.category-dropdown-menu .cat .badge-wrapper.box {
|
|
|
|
width: 110%;
|
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
.badge-wrapper.box {
|
|
|
|
.badge-category-bg {
|
|
|
|
position: absolute;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2015-01-29 01:48:55 -05:00
|
|
|
> .badge-category {
|
|
|
|
width: 100%;
|
|
|
|
width: calc(100% - 2px);
|
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
}
|
|
|
|
|
2015-01-29 01:48:55 -05:00
|
|
|
.title-wrapper .badge-wrapper.box .badge-category {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2013-10-25 15:23:29 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2014-09-04 00:02:29 -04:00
|
|
|
padding: 3px 5px;
|
|
|
|
vertical-align: middle;
|
2014-07-25 23:06:14 -04:00
|
|
|
color: $secondary;
|
2013-02-05 14:16:51 -05:00
|
|
|
font-size: 11px;
|
2014-03-12 23:17:18 -04:00
|
|
|
line-height: 1;
|
2013-08-02 15:41:02 -04:00
|
|
|
text-align: center;
|
2014-07-25 23:06:14 -04:00
|
|
|
background-color: scale-color($primary, $lightness: 70%);
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-07-25 23:06:14 -04:00
|
|
|
color: $secondary;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-09-03 03:11:19 -04:00
|
|
|
// New posts
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2014-09-03 03:11:19 -04:00
|
|
|
&.new-posts, &.unread-posts {
|
2014-07-25 23:06:14 -04:00
|
|
|
background-color: scale-color($tertiary, $lightness: 50%);
|
|
|
|
color: $secondary;
|
2014-03-08 00:55:02 -05:00
|
|
|
font-weight: normal;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-09-03 12:22:18 -04:00
|
|
|
&.new-topic {
|
|
|
|
background-color: transparent;
|
2014-09-03 16:33:56 -04:00
|
|
|
color: scale-color($tertiary, $lightness: 20%);
|
2014-09-03 12:22:18 -04:00
|
|
|
font-weight: normal;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.929em;
|
2014-09-03 12:22:18 -04:00
|
|
|
}
|
2014-03-11 17:26:25 -04:00
|
|
|
|
2014-09-03 16:33:56 -04:00
|
|
|
&.new-topic::before {
|
2014-09-03 21:07:15 -04:00
|
|
|
content: "●";
|
|
|
|
margin-right: 2px;
|
2014-09-03 16:33:56 -04:00
|
|
|
}
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Click count
|
|
|
|
|
|
|
|
&.clicks {
|
|
|
|
font-weight: normal;
|
2013-11-13 23:10:47 -05:00
|
|
|
background-color: #ddd;
|
2014-03-08 00:55:02 -05:00
|
|
|
top: -1px;
|
2013-11-17 22:32:58 -05:00
|
|
|
color: #888;
|
|
|
|
position: relative;
|
|
|
|
margin-left: 2px;
|
2014-07-25 12:22:55 -04:00
|
|
|
border: none;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Posts badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-posts {
|
2014-03-15 12:01:17 -04:00
|
|
|
font-weight: normal;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 1em;
|
2013-02-05 14:16:51 -05:00
|
|
|
line-height: 1;
|
|
|
|
&[href] {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: scale-color($primary, $lightness: 40%);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2013-07-16 01:44:07 -04:00
|
|
|
padding: 3px 5px;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary, 0.1);
|
2014-08-06 09:31:13 -04:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
|
|
border-color: dark-light-diff($primary, $secondary, 90%, -65%);
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.857em;
|
2014-10-10 18:02:46 -04:00
|
|
|
box-shadow: inset 0 1px 0 rgba(0,0,0, 0.22);
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|