2015-07-17 13:17:49 +08:00
|
|
|
.DiscussionListItem {
|
|
|
|
.tooltip .tooltip-inner {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
}
|
2015-09-22 16:18:21 +08:00
|
|
|
.DiscussionListItem--hidden {
|
|
|
|
.DiscussionListItem-content {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.DiscussionListItem a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-content {
|
|
|
|
position: relative;
|
|
|
|
color: @muted-color;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-main {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-author {
|
|
|
|
float: left;
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-badges {
|
|
|
|
float: left;
|
|
|
|
margin-top: 10px;
|
|
|
|
text-align: right;
|
|
|
|
white-space: nowrap;
|
|
|
|
pointer-events: none;
|
|
|
|
|
2015-07-20 16:42:48 +08:00
|
|
|
.Badge {
|
2015-07-17 13:17:49 +08:00
|
|
|
margin-left: -15px;
|
|
|
|
position: relative;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-main {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 12px 0;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-title {
|
|
|
|
margin: 0 0 5px;
|
|
|
|
line-height: 1.3;
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: normal;
|
2015-08-13 11:37:24 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-07-17 13:17:49 +08:00
|
|
|
|
2015-09-08 08:57:50 +08:00
|
|
|
.read & {
|
2015-09-14 13:46:19 +08:00
|
|
|
color: mix(@heading-color, @body-bg, 55%);
|
2015-09-08 08:57:50 +08:00
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
.unread & {
|
2015-09-08 08:57:50 +08:00
|
|
|
font-weight: 600;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-info {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: inline;
|
2015-09-14 13:46:19 +08:00
|
|
|
opacity: 0.7;
|
|
|
|
.transition(opacity 0.2s);
|
|
|
|
|
|
|
|
.DiscussionListItem:hover &, .DiscussionListItem.active & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-count {
|
|
|
|
float: right;
|
|
|
|
margin-top: 12px;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
.unread & {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-relevantPosts {
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
margin-left: -45px;
|
|
|
|
margin-right: -35px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PostPreview {
|
|
|
|
background: @control-bg;
|
|
|
|
display: block;
|
|
|
|
padding: 10px 15px;
|
|
|
|
border-bottom: 2px dotted @body-bg;
|
|
|
|
color: @muted-color;
|
|
|
|
transition: border-color 0.2s;
|
|
|
|
|
|
|
|
.DiscussionListItem:hover & {
|
|
|
|
border-color: lighten(@control-bg, 3%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.Avatar, time {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.PostPreview-content {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
&:first-child {
|
|
|
|
border-radius: @border-radius @border-radius 0 0;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background: darken(@control-bg, 3%);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
.DiscussionListItem-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-content {
|
|
|
|
padding-left: 15px + 45px;
|
|
|
|
padding-right: 15px + 35px;
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: @control-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-author {
|
|
|
|
margin-left: -45px;
|
|
|
|
|
|
|
|
.Avatar {
|
|
|
|
.Avatar--size(32px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-badges {
|
|
|
|
margin-left: -45px;
|
|
|
|
width: 38px;
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
.Badge--size(20px);
|
|
|
|
margin-left: -13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-main {
|
|
|
|
margin-right: -45px;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-title {
|
|
|
|
font-size: 14px;
|
|
|
|
text-decoration: none !important;
|
|
|
|
}
|
2015-08-02 15:55:54 +08:00
|
|
|
.DiscussionListItem-info {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
.DiscussionListItem-count {
|
|
|
|
margin-right: -35px;
|
|
|
|
background: @control-bg;
|
|
|
|
color: @control-color;
|
|
|
|
border-radius: @border-radius;
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
2015-07-28 16:08:36 +08:00
|
|
|
.unread & {
|
2015-07-17 13:17:49 +08:00
|
|
|
background: @primary-color;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media @tablet-up {
|
|
|
|
.DiscussionListItem {
|
|
|
|
position: relative;
|
|
|
|
margin-right: -15px;
|
2015-09-15 15:01:19 +08:00
|
|
|
padding-right: 25px;
|
2015-07-17 13:17:49 +08:00
|
|
|
padding-left: 15px;
|
|
|
|
margin-left: -15px;
|
|
|
|
border-radius: @border-radius;
|
|
|
|
transition: background 0.2s;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: @control-bg;
|
|
|
|
}
|
|
|
|
&:hover .DiscussionListItem-controls,
|
|
|
|
.DiscussionListItem-controls.open {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-controls.open {
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-controls {
|
|
|
|
position: absolute;
|
2015-09-15 15:01:19 +08:00
|
|
|
right: 5px;
|
2015-07-17 13:17:49 +08:00
|
|
|
top: 15px;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
|
|
.Dropdown-toggle {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.Dropdown-menu {
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-content {
|
|
|
|
padding-left: 52px;
|
2015-07-22 08:29:29 +08:00
|
|
|
padding-right: 80px;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.DiscussionListItem-author {
|
|
|
|
margin-left: -52px;
|
|
|
|
|
|
|
|
.Avatar {
|
|
|
|
.Avatar--size(36px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.DiscussionListItem-badges {
|
|
|
|
margin-left: -55px;
|
|
|
|
width: 48px;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-main {
|
|
|
|
margin-right: -65px;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-title {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
.DiscussionListItem-count {
|
|
|
|
margin-top: 21px;
|
2015-07-22 08:29:29 +08:00
|
|
|
margin-right: -70px;
|
2015-07-17 13:17:49 +08:00
|
|
|
width: 55px;
|
|
|
|
color: @muted-color;
|
|
|
|
font-size: 14px;
|
|
|
|
padding-left: 21px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
.fa();
|
|
|
|
content: @fa-var-comment-o;
|
|
|
|
float: left;
|
|
|
|
margin-left: -21px;
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
.unread & {
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: @fa-var-comment;
|
|
|
|
}
|
|
|
|
&:hover:before {
|
|
|
|
content: @fa-var-check;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|