2015-07-17 13:17:49 +08:00
|
|
|
// ------------------------------------
|
|
|
|
// Posts
|
|
|
|
|
|
|
|
.Post {
|
2015-09-18 13:08:57 +08:00
|
|
|
padding: 20px;
|
2015-09-04 10:47:30 +08:00
|
|
|
margin: -1px -20px;
|
2015-07-17 13:17:49 +08:00
|
|
|
transition: 0.2s box-shadow, top 0.2s, opacity 0.2s;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
2015-09-04 10:47:30 +08:00
|
|
|
border-radius: @border-radius;
|
2015-09-08 08:59:00 +08:00
|
|
|
.clearfix();
|
2015-07-17 13:17:49 +08:00
|
|
|
|
|
|
|
&.editing {
|
|
|
|
top: 5px;
|
2015-07-22 14:35:00 +08:00
|
|
|
opacity: 0.5;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Post-header {
|
2015-09-08 08:59:00 +08:00
|
|
|
margin-bottom: 15px;
|
2015-07-17 13:17:49 +08:00
|
|
|
color: @muted-color;
|
|
|
|
|
|
|
|
&, a {
|
|
|
|
color: @muted-color;
|
|
|
|
}
|
|
|
|
> ul {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: inline;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.PostUser {
|
|
|
|
margin: 0;
|
|
|
|
display: inline;
|
|
|
|
font-weight: normal;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
h3, h3 a {
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: bold;
|
2015-09-08 08:59:00 +08:00
|
|
|
font-size: 14px;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
|
2015-12-16 20:43:46 +08:00
|
|
|
.UserOnline {
|
|
|
|
& .icon {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .fa-circle {
|
|
|
|
color: @online-user-circle-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.UserCard {
|
|
|
|
position: absolute;
|
|
|
|
top: -10px;
|
|
|
|
left: -100px;
|
|
|
|
z-index: @zindex-dropdown;
|
|
|
|
.transition(~"opacity 0.2s, transform 0.2s");
|
|
|
|
transform: scale(0.95);
|
|
|
|
transform-origin: left top;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&.in {
|
|
|
|
transform: scale(1);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.PostUser-badges {
|
|
|
|
text-align: right;
|
|
|
|
white-space: nowrap;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
.Badge {
|
2016-03-11 09:31:47 +08:00
|
|
|
margin-left: -10px;
|
2015-07-17 13:17:49 +08:00
|
|
|
position: relative;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Post-body {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.7;
|
|
|
|
position: relative;
|
2015-09-16 12:40:30 +08:00
|
|
|
overflow: auto;
|
2015-07-17 13:17:49 +08:00
|
|
|
|
|
|
|
p, ul, ol, blockquote {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
border-bottom: 1px solid @control-bg;
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
text-decoration: none;
|
|
|
|
border-color: @link-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
blockquote {
|
|
|
|
font-size: inherit;
|
|
|
|
border: 0;
|
|
|
|
background: @control-bg;
|
|
|
|
color: @control-color;
|
|
|
|
border-radius: @border-radius;
|
2015-07-28 15:12:03 +08:00
|
|
|
padding: 8px 15px;
|
2015-07-17 13:17:49 +08:00
|
|
|
border-top: 2px dotted @body-bg;
|
|
|
|
border-bottom: 2px dotted @body-bg;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
pre {
|
|
|
|
border: 0;
|
|
|
|
padding: 15px;
|
|
|
|
background: darken(@body-bg, 3%);
|
|
|
|
color: #666;
|
|
|
|
font-size: 90%;
|
|
|
|
border-radius: @border-radius;
|
2015-08-31 11:47:16 +08:00
|
|
|
|
|
|
|
.hljs {
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
font-size: 160%;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 120%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 100%;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
h4, h5, h6 {
|
|
|
|
font-size: 100%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-09-08 10:21:36 +08:00
|
|
|
img, iframe {
|
2015-07-17 13:17:49 +08:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-04 10:47:30 +08:00
|
|
|
.Post--hidden {
|
2015-09-04 12:20:43 +08:00
|
|
|
.Post-header, .Post-header a, .PostUser h3, .PostUser h3 a {
|
2015-07-17 13:17:49 +08:00
|
|
|
color: @muted-more-color;
|
|
|
|
}
|
2015-09-15 11:12:03 +08:00
|
|
|
&:not(.revealContent) .Post-header {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
margin-top: -5px;
|
|
|
|
.transition(~"margin-top 0.2s, opacity 0.2s");
|
|
|
|
}
|
|
|
|
&.revealContent {
|
|
|
|
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
|
|
|
|
position: static;
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 0.5;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.Post-header .Button--more {
|
|
|
|
background: fade(@muted-more-color, 30%);
|
|
|
|
color: @muted-more-color;
|
|
|
|
}
|
|
|
|
}
|
2015-11-05 13:47:00 +08:00
|
|
|
.Post--loading {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
.PostMeta {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.PostMeta .Dropdown-menu {
|
|
|
|
width: 400px;
|
|
|
|
padding: 10px;
|
|
|
|
color: @muted-color;
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
padding: 15px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.PostMeta-number {
|
|
|
|
color: @text-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.PostMeta-time {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
.PostMeta-permalink {
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
a& {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.EventPost-icon {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.EventPost {
|
|
|
|
&, a {
|
|
|
|
color: @muted-color;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.EventPost-info {
|
2015-09-08 09:43:35 +08:00
|
|
|
font-size: 14px;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.Post-footer, .Post-actions {
|
|
|
|
> ul {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
&, a {
|
|
|
|
color: @muted-color;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.Post-footer {
|
2015-09-18 13:08:57 +08:00
|
|
|
margin-top: 5px;
|
2015-09-08 08:59:00 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
> ul {
|
|
|
|
> li {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.Post-actions {
|
2015-09-18 13:08:57 +08:00
|
|
|
margin-top: -5px;
|
2015-09-08 08:59:00 +08:00
|
|
|
float: right;
|
2015-09-18 13:08:57 +08:00
|
|
|
position: relative;
|
2015-07-17 13:17:49 +08:00
|
|
|
.transition(opacity 0.2s);
|
|
|
|
|
2015-09-18 13:08:57 +08:00
|
|
|
.EventPost &, .Post--hidden:not(.revealContent) & {
|
2015-09-15 11:12:03 +08:00
|
|
|
margin-top: -27px;
|
2015-09-18 13:08:57 +08:00
|
|
|
margin-bottom: -15px;
|
2015-09-15 11:12:03 +08:00
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
@media @tablet-up {
|
2015-09-22 15:35:14 +08:00
|
|
|
.no-touch & {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
> li {
|
2015-09-08 08:59:00 +08:00
|
|
|
margin-right: 0;
|
|
|
|
margin-left: -5px;
|
2015-07-17 13:17:49 +08:00
|
|
|
display: inline-block;
|
2015-09-15 11:12:03 +08:00
|
|
|
vertical-align: top;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
}
|
2015-09-22 15:35:14 +08:00
|
|
|
.Post:hover &, &.open {
|
2015-07-17 13:17:49 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.PostPreview {
|
|
|
|
color: @muted-color;
|
|
|
|
padding-left: 50px;
|
|
|
|
line-height: 1.7em;
|
|
|
|
|
2015-08-29 06:18:17 +08:00
|
|
|
.PostPreview-excerpt {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.Avatar {
|
|
|
|
float: left;
|
|
|
|
margin-left: -50px;
|
|
|
|
.Avatar--size(32px);
|
|
|
|
}
|
|
|
|
.username {
|
|
|
|
color: @text-color;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
time {
|
|
|
|
margin-right: 5px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
.Post-header {
|
|
|
|
.Avatar {
|
|
|
|
.Avatar--size(32px);
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.PostUser-badges {
|
|
|
|
position: absolute;
|
|
|
|
top: -12px;
|
|
|
|
left: 6px;
|
|
|
|
width: 32px;
|
|
|
|
|
|
|
|
.Badge {
|
|
|
|
.Badge--size(20px);
|
|
|
|
margin-left: -13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.EventPost {
|
2015-10-14 14:05:06 +08:00
|
|
|
padding-left: 50px;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.EventPost-icon {
|
|
|
|
font-size: 18px;
|
|
|
|
margin-left: -30px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-08 08:59:00 +08:00
|
|
|
@avatar-column-width: 85px;
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
@media @tablet-up {
|
|
|
|
.Post {
|
2015-09-08 08:59:00 +08:00
|
|
|
padding-left: 20px + @avatar-column-width;
|
2016-04-20 19:14:57 +08:00
|
|
|
}
|
|
|
|
.CommentPost {
|
2016-04-20 18:55:11 +08:00
|
|
|
min-height: 64px + 40px; // avatar height + padding
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.PostUser-avatar {
|
2016-04-20 19:12:14 +08:00
|
|
|
left: -@avatar-column-width;
|
2016-04-20 18:51:32 +08:00
|
|
|
position: absolute;
|
2015-07-17 13:17:49 +08:00
|
|
|
.Avatar--size(64px);
|
|
|
|
}
|
|
|
|
.PostUser-badges {
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
2015-09-08 08:59:00 +08:00
|
|
|
margin-left: -@avatar-column-width + 5px;
|
2015-07-17 13:17:49 +08:00
|
|
|
margin-top: -3px;
|
|
|
|
width: 64px;
|
|
|
|
}
|
|
|
|
.EventPost-icon {
|
|
|
|
text-align: right;
|
2015-09-08 08:59:00 +08:00
|
|
|
margin-left: -@avatar-column-width;
|
2015-07-17 13:17:49 +08:00
|
|
|
width: 64px;
|
|
|
|
font-size: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ReplyPlaceholder {
|
|
|
|
font-size: 15px;
|
|
|
|
cursor: text;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-top: 50px;
|
|
|
|
border: 2px dashed @control-bg;
|
|
|
|
color: @muted-color;
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
|
|
.Post-header {
|
|
|
|
margin: 0;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media @tablet-up {
|
|
|
|
.ReplyPlaceholder {
|
|
|
|
border-color: transparent;
|
|
|
|
transition: border-color 0.2s;
|
|
|
|
|
|
|
|
.Post-header {
|
|
|
|
padding-top: 18px;
|
2016-04-20 19:14:57 +08:00
|
|
|
position: relative;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
.Avatar {
|
|
|
|
margin-top: -18px;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
border-color: @control-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|