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;
|
2016-08-07 21:02:46 -04:00
|
|
|
@include border-radius-all(10px);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
// Category badges
|
2013-02-05 14:16:51 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
.badge-wrapper {
|
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;
|
2015-01-28 22:53:02 -05:00
|
|
|
position: relative;
|
2015-01-29 01:34:05 -05:00
|
|
|
|
2015-03-09 12:25:27 -04:00
|
|
|
&.bar { //bar category style
|
2015-03-04 22:15:21 -05:00
|
|
|
line-height: 1.25;
|
2015-04-14 15:54:17 -04:00
|
|
|
margin-right: 5px;
|
2016-02-10 03:27:03 -05:00
|
|
|
display: inline-flex;
|
2015-05-13 07:25:27 -04:00
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
span.badge-category {
|
2017-07-28 15:21:18 -04:00
|
|
|
color: $primary;
|
2015-03-09 12:25:27 -04:00
|
|
|
padding: 3px;
|
|
|
|
vertical-align: text-top;
|
2016-01-18 04:08:24 -05:00
|
|
|
margin-top: -2px; //vertical alignment fix
|
2015-03-09 12:25:27 -04:00
|
|
|
display: inline-block;
|
2015-10-14 09:32:57 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-09 12:25:27 -04:00
|
|
|
|
|
|
|
.extra-info-wrapper & {
|
2017-07-28 15:21:18 -04:00
|
|
|
color: $header-primary;
|
2015-03-09 12:25:27 -04:00
|
|
|
}
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2016-01-18 04:08:24 -05:00
|
|
|
.badge-category-parent-bg, .badge-category-bg {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 1px;
|
2015-01-29 20:33:27 -05:00
|
|
|
|
2016-01-18 04:08:24 -05:00
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
|
|
|
}
|
|
|
|
}
|
2015-01-29 20:33:27 -05:00
|
|
|
}
|
|
|
|
|
2017-08-04 14:12:21 -04:00
|
|
|
&.none { // no category style
|
|
|
|
color: $primary;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2015-03-09 12:25:27 -04:00
|
|
|
&.bullet { //bullet category style
|
2015-09-01 22:20:35 -04:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: baseline;
|
2016-08-24 16:04:30 -04:00
|
|
|
margin-right: 5px;
|
2016-08-17 17:23:16 -04:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 15px;
|
2015-03-09 12:25:27 -04:00
|
|
|
|
|
|
|
span.badge-category {
|
2017-07-28 15:21:18 -04:00
|
|
|
color: $primary;
|
2015-05-29 12:08:52 -04:00
|
|
|
display: inline-block;
|
2015-09-09 16:20:04 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-09 12:25:27 -04:00
|
|
|
|
|
|
|
#search-dropdown & {
|
2015-06-02 10:50:22 -04:00
|
|
|
margin-top: -2px;
|
2015-03-09 12:25:27 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.extra-info-wrapper & {
|
2017-07-28 15:21:18 -04:00
|
|
|
color: $header-primary;
|
2015-03-09 12:25:27 -04:00
|
|
|
}
|
2016-01-18 04:08:24 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
|
|
|
.badge-category-parent-bg, .badge-category-bg {
|
2016-01-18 04:08:24 -05:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
margin-right: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\a0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
&.badge-category-parent-bg { //subcategory style
|
|
|
|
width: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
& + .badge-category-bg {
|
|
|
|
width: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
&.box { //box category style (apply custom widths to the wrapper, not the children)
|
2015-03-04 22:15:21 -05:00
|
|
|
line-height: 1.5;
|
|
|
|
margin-top: 5px;
|
2015-04-14 15:54:17 -04:00
|
|
|
margin-right: 5px;
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2015-01-28 22:53:02 -05:00
|
|
|
span {
|
2015-03-04 22:15:21 -05:00
|
|
|
display: block;
|
2015-09-09 14:46:40 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-03-04 22:15:21 -05:00
|
|
|
|
|
|
|
&.badge-category-bg, &.badge-category-parent-bg {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2015-03-09 12:25:27 -04:00
|
|
|
&.badge-category-parent-bg { //subcategory style
|
2015-03-04 22:15:21 -05:00
|
|
|
width: calc(100% - 5px);
|
|
|
|
& + .badge-category-bg {
|
|
|
|
left: 5px;
|
|
|
|
width: calc(100% - 5px);
|
|
|
|
& + .badge-category {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-category {
|
|
|
|
position: relative;
|
|
|
|
padding: 0 5px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
2015-02-06 00:20:55 -05:00
|
|
|
}
|
|
|
|
}
|
2015-01-30 01:57:46 -05:00
|
|
|
}
|
|
|
|
|
2016-12-05 07:31:43 -05:00
|
|
|
.extra-info-wrapper .title-wrapper .badge-wrapper.bar {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
|
|
|
|
2016-02-10 03:34:43 -05:00
|
|
|
.autocomplete, td.category {
|
|
|
|
.badge-wrapper {
|
|
|
|
max-width: 230px;
|
|
|
|
}
|
2016-02-10 03:27:03 -05:00
|
|
|
}
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
// Category badge dropdown
|
|
|
|
// --------------------------------------------------
|
2015-01-28 22:53:02 -05:00
|
|
|
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
.list-controls {
|
2017-09-08 14:47:39 -04:00
|
|
|
.category-breadcrumb {
|
|
|
|
a.badge-category, .dropdown-header {
|
2015-03-04 22:15:21 -05:00
|
|
|
display: inline-block;
|
|
|
|
padding: 5px 8px;
|
|
|
|
line-height: 20px;
|
2017-09-08 15:28:28 -04:00
|
|
|
|
|
|
|
&.category-dropdown-button {
|
|
|
|
margin-left: -4px;
|
|
|
|
padding: 5px;
|
|
|
|
width: 13px;
|
|
|
|
|
2017-11-23 11:14:51 -05:00
|
|
|
.d-icon-caret-right {
|
2017-09-08 15:28:28 -04:00
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2017-07-28 16:19:33 -04:00
|
|
|
li.bar>.dropdown-header:not(.home):first-child {
|
2015-03-04 22:15:21 -05:00
|
|
|
border-left: 5px solid;
|
2017-07-28 16:19:33 -04:00
|
|
|
font-size: 1em;
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
|
2017-07-28 16:19:33 -04:00
|
|
|
li.bar>.dropdown-header {
|
2017-07-28 15:21:18 -04:00
|
|
|
background: $primary-low;
|
|
|
|
color: $primary;
|
2015-03-09 12:25:27 -04:00
|
|
|
}
|
|
|
|
|
2017-07-28 16:19:33 -04:00
|
|
|
li.bullet>.dropdown-header {
|
2017-07-28 15:21:18 -04:00
|
|
|
background: $primary-low;
|
|
|
|
color: $primary;
|
2015-03-09 23:47:30 -04:00
|
|
|
|
|
|
|
.badge-category-bg {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
display: inline-block;
|
2015-03-10 10:34:04 -04:00
|
|
|
margin: 0 2px;
|
2015-03-09 23:47:30 -04:00
|
|
|
}
|
|
|
|
}
|
2015-01-29 01:34:05 -05:00
|
|
|
}
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
.category-dropdown-menu {
|
2017-07-28 16:19:33 -04:00
|
|
|
.dropdown-header {
|
2015-03-04 22:15:21 -05:00
|
|
|
&.home {
|
|
|
|
margin-left: 4px;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cat {
|
2015-07-14 21:29:05 -04:00
|
|
|
line-height: 1;
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
|
|
|
.badge-wrapper {
|
2016-01-17 14:46:37 -05:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
&.bar {
|
2015-09-25 03:26:41 -04:00
|
|
|
padding: 5px 0;
|
|
|
|
width: 100%;
|
2015-03-04 22:15:21 -05:00
|
|
|
.badge-category {
|
|
|
|
max-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
2017-08-04 14:12:21 -04:00
|
|
|
&.none {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2015-03-09 12:25:27 -04:00
|
|
|
&.bullet {
|
2015-09-25 03:26:41 -04:00
|
|
|
padding: 5px;
|
|
|
|
width: 100%;
|
2015-03-09 12:25:27 -04:00
|
|
|
.badge-category {
|
|
|
|
max-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 22:15:21 -05:00
|
|
|
&.box {
|
|
|
|
margin-top: 0;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 1;
|
2016-05-15 19:01:13 -04:00
|
|
|
vertical-align: text-top;
|
2015-03-04 22:15:21 -05:00
|
|
|
span.badge-category {
|
2016-05-15 19:01:13 -04:00
|
|
|
max-width: 100px;
|
2015-03-04 22:15:21 -05:00
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
2015-02-25 01:42:10 -05:00
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2015-01-29 01:48:55 -05:00
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2015-01-29 01:48:55 -05:00
|
|
|
}
|
2015-01-28 22:53:02 -05:00
|
|
|
|
2013-10-25 15:23:29 -04:00
|
|
|
|
2015-03-04 22:15:21 -05:00
|
|
|
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Notification badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
@extend %badge;
|
2016-08-07 21:02:46 -04:00
|
|
|
padding: 4px 5px 2px 5px;
|
2014-09-04 00:02:29 -04:00
|
|
|
vertical-align: middle;
|
2014-07-25 23:06:14 -04:00
|
|
|
color: $secondary;
|
2013-02-05 14:16:51 -05:00
|
|
|
font-size: 11px;
|
2016-08-07 21:02:46 -04:00
|
|
|
line-height: 1;
|
2013-08-02 15:41:02 -04:00
|
|
|
text-align: center;
|
2017-10-10 16:07:46 -04:00
|
|
|
background-color: dark-light-choose($primary-low-mid, $secondary-low);
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2015-08-21 14:19:02 -04:00
|
|
|
color: $secondary;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2016-05-13 04:47:40 -04:00
|
|
|
&:hover {
|
|
|
|
color: $secondary;
|
|
|
|
}
|
|
|
|
|
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 {
|
2017-10-10 16:07:46 -04:00
|
|
|
background-color: dark-light-choose($tertiary-medium, $tertiary);
|
2015-08-21 14:19:02 -04:00
|
|
|
color: dark-light-choose($secondary, $secondary);
|
2015-08-18 15:28:58 -04:00
|
|
|
font-weight: dark-light-choose(normal, bold);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
2014-09-03 12:22:18 -04:00
|
|
|
&.new-topic {
|
|
|
|
background-color: transparent;
|
2017-10-10 16:07:46 -04:00
|
|
|
color: $tertiary-high;
|
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;
|
2017-06-11 22:20:14 -04:00
|
|
|
background-color: $primary-low;
|
2014-03-08 00:55:02 -05:00
|
|
|
top: -1px;
|
2017-06-11 22:20:14 -04:00
|
|
|
color: $primary-medium;
|
2013-11-17 22:32:58 -05:00
|
|
|
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] {
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2013-05-17 16:09:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Group badge
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.badge-group {
|
|
|
|
@extend %badge;
|
2015-02-08 18:09:12 -05:00
|
|
|
padding: 4px 5px 2px 5px;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary, 0.1);
|
2017-06-11 22:20:14 -04:00
|
|
|
background-color: $primary-low;
|
|
|
|
border-color: $primary-low;
|
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
|
|
|
}
|