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