2015-12-02 06:27:32 +08:00
|
|
|
.placeholder-avatar {
|
|
|
|
display: inline-block;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-low;
|
2015-12-02 06:27:32 +08:00
|
|
|
width: 45px;
|
|
|
|
height: 45px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder-text {
|
|
|
|
display: inline-block;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-low;
|
2015-12-02 06:27:32 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 1.5em;
|
|
|
|
margin-bottom: 0.6em;
|
|
|
|
}
|
|
|
|
|
2014-05-12 09:28:24 +08:00
|
|
|
.names {
|
2018-09-06 05:48:31 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
2018-06-08 17:49:31 +08:00
|
|
|
span.first {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: $font-0;
|
|
|
|
margin-right: 8px;
|
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-11-27 05:49:57 +08:00
|
|
|
vertical-align: middle;
|
2018-06-08 17:49:31 +08:00
|
|
|
a {
|
2018-11-27 05:49:57 +08:00
|
|
|
vertical-align: middle;
|
2018-06-08 17:49:31 +08:00
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.fa {
|
|
|
|
font-size: $font-down-1;
|
2018-11-08 13:12:18 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2018-11-08 02:05:43 +08:00
|
|
|
}
|
2018-11-27 05:49:57 +08:00
|
|
|
.svg-icon-title {
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.new_user a,
|
|
|
|
.user-title,
|
|
|
|
.user-title a {
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
}
|
2014-05-12 09:28:24 +08:00
|
|
|
}
|
2014-06-05 14:59:18 +08:00
|
|
|
|
2014-07-01 06:53:22 +08:00
|
|
|
// global styles for the cooked HTML content in posts (and preview)
|
2018-06-08 17:49:31 +08:00
|
|
|
.cooked,
|
|
|
|
.d-editor-preview {
|
2014-06-24 15:40:12 +08:00
|
|
|
word-wrap: break-word;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-large;
|
2018-06-08 17:49:31 +08:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2018-01-22 11:22:30 +08:00
|
|
|
margin: 30px 0 10px;
|
|
|
|
line-height: $line-height-medium;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-up-3;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
h2 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-up-2;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
h3 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-up-1;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
h4 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-0;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
h5 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-down-1;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
h6 {
|
2018-05-16 09:04:51 +08:00
|
|
|
font-size: $font-down-2;
|
2017-12-16 00:29:15 +08:00
|
|
|
}
|
2018-01-22 11:22:30 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
a {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
ins {
|
|
|
|
background-color: dark-light-choose(
|
|
|
|
$success-low,
|
|
|
|
scale-color($success, $lightness: -60%)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
del {
|
|
|
|
background-color: dark-light-choose(
|
|
|
|
$danger-low,
|
|
|
|
scale-color($danger, $lightness: -60%)
|
|
|
|
);
|
|
|
|
}
|
2018-01-23 23:34:37 +08:00
|
|
|
// Prevents users from breaking posts with tag nesting
|
2018-06-08 17:49:31 +08:00
|
|
|
big {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
small {
|
|
|
|
font-size: 0.75rem;
|
|
|
|
}
|
|
|
|
small small {
|
|
|
|
font-size: 0.75em;
|
|
|
|
}
|
|
|
|
big big {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
sub sub sub {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
sup sup sup {
|
|
|
|
top: 0;
|
|
|
|
}
|
2014-06-30 17:06:13 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.cooked,
|
|
|
|
.d-editor-preview {
|
2015-01-27 00:00:18 +08:00
|
|
|
video {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-05-01 05:05:04 +08:00
|
|
|
sup sup {
|
|
|
|
top: 0;
|
|
|
|
}
|
2015-01-27 00:00:18 +08:00
|
|
|
}
|
2017-12-08 01:40:39 +08:00
|
|
|
|
|
|
|
// add staff color
|
|
|
|
.moderator {
|
2017-12-21 10:24:59 +08:00
|
|
|
.regular > .cooked {
|
2017-12-08 01:40:39 +08:00
|
|
|
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
|
|
|
padding: 10px;
|
|
|
|
img:not(.thumbnail) {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
2017-12-21 10:24:59 +08:00
|
|
|
.clearfix > .topic-meta-data > .names {
|
2017-12-08 05:10:54 +08:00
|
|
|
span.user-title {
|
2018-04-20 23:42:06 +08:00
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2018-08-13 13:29:46 +08:00
|
|
|
a {
|
|
|
|
background-color: dark-light-choose($highlight-low, $highlight-medium);
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
2017-12-08 01:40:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-21 01:06:20 +08:00
|
|
|
.topic-meta-data {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
.names {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-infos {
|
|
|
|
display: flex;
|
2018-09-20 06:53:48 +08:00
|
|
|
flex: 0 0 auto;
|
2018-12-01 10:31:36 +08:00
|
|
|
align-items: center;
|
2018-06-21 01:06:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-01 06:53:22 +08:00
|
|
|
// we use aside to hold expandable quotes (versus, say, static blockquotes)
|
|
|
|
aside.quote {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
2014-09-14 14:02:46 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.badge-wrapper {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2015-02-02 18:08:01 +08:00
|
|
|
|
2014-09-14 14:02:46 +08:00
|
|
|
.title {
|
2015-08-20 01:27:17 +08:00
|
|
|
@include post-aside;
|
|
|
|
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2014-10-18 17:48:20 +08:00
|
|
|
// IE will screw up the blockquote underneath if bottom padding is 0px
|
|
|
|
padding: 12px 12px 1px 12px;
|
2015-05-22 17:11:18 +08:00
|
|
|
// blockquote is underneath this and has top margin
|
2018-06-08 17:49:31 +08:00
|
|
|
.avatar {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
margin-top: -4px;
|
|
|
|
}
|
2014-12-24 15:23:47 +08:00
|
|
|
@include unselectable;
|
2014-09-14 14:02:46 +08:00
|
|
|
}
|
|
|
|
|
2014-07-01 15:19:56 +08:00
|
|
|
// blockquote is docked within aside for content
|
|
|
|
blockquote {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2014-07-01 06:53:22 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.quote-controls,
|
|
|
|
.quote-controls .d-icon {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
2014-09-14 14:02:46 +08:00
|
|
|
}
|
|
|
|
|
2014-06-30 17:06:13 +08:00
|
|
|
.cooked .highlight {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $tertiary-low;
|
2014-06-30 17:06:13 +08:00
|
|
|
padding: 2px;
|
|
|
|
margin: -2px;
|
2014-06-25 08:39:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-action {
|
2018-06-08 17:49:31 +08:00
|
|
|
.undo-action,
|
|
|
|
.act-action {
|
2014-06-25 08:39:55 +08:00
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
2014-07-22 14:52:26 +08:00
|
|
|
|
|
|
|
.post-hidden {
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.5; // opacity sets a new z-index context,
|
2018-03-03 11:41:10 +08:00
|
|
|
position: relative; // so the positioning is required,
|
|
|
|
z-index: z("base"); // otherwise post controls are stacked too low
|
2014-09-04 11:16:19 +08:00
|
|
|
}
|
|
|
|
|
2016-07-12 15:03:42 +08:00
|
|
|
.topic-post.staged {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
2014-09-04 11:16:19 +08:00
|
|
|
.quote-controls {
|
|
|
|
float: right;
|
2017-10-07 03:27:02 +08:00
|
|
|
display: flex;
|
2018-12-12 10:17:31 +08:00
|
|
|
align-items: center;
|
|
|
|
a {
|
|
|
|
margin-left: 0.3em;
|
2014-09-04 11:16:19 +08:00
|
|
|
}
|
|
|
|
}
|
2014-09-08 04:55:31 +08:00
|
|
|
|
|
|
|
.quote-button {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: blend-primary-secondary(50%);
|
2015-08-19 03:23:06 +08:00
|
|
|
color: dark-light-choose($secondary, $primary);
|
2014-09-08 04:55:31 +08:00
|
|
|
padding: 10px;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("dropdown");
|
2017-03-11 03:57:43 +08:00
|
|
|
opacity: 0.9;
|
2014-09-08 04:55:31 +08:00
|
|
|
|
2017-10-07 03:45:43 +08:00
|
|
|
.d-icon {
|
|
|
|
display: inline-block;
|
2014-09-08 04:55:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-medium;
|
2014-09-08 04:55:31 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic-avatar,
|
|
|
|
.user-card-avatar {
|
2016-08-18 23:18:18 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
.topic-map {
|
2018-08-04 05:43:07 +08:00
|
|
|
background: $primary-very-low;
|
2018-02-13 04:16:27 +08:00
|
|
|
border: 1px solid $primary-low;
|
|
|
|
border-top: none; // would cause double top border
|
2018-04-20 23:42:06 +08:00
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
.avatars {
|
|
|
|
> div {
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
margin: 3px 0;
|
|
|
|
}
|
|
|
|
.post-count {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
border-radius: 100px;
|
|
|
|
padding: 3px 5px;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: $font-down-2;
|
|
|
|
line-height: $line-height-small;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
2018-02-13 04:16:27 +08:00
|
|
|
section {
|
|
|
|
border-top: 1px solid $primary-low;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin-bottom: 4px;
|
2018-08-02 04:20:14 +08:00
|
|
|
color: $primary;
|
2018-02-13 04:16:27 +08:00
|
|
|
line-height: $line-height-large;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: $font-0;
|
|
|
|
}
|
|
|
|
|
2018-11-02 22:07:22 +08:00
|
|
|
h4 {
|
2018-02-13 04:16:27 +08:00
|
|
|
margin: 1px 0 2px 0;
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.domain {
|
|
|
|
font-size: $font-down-2;
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
vertical-align: top;
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 1px;
|
2018-02-13 04:16:27 +08:00
|
|
|
}
|
|
|
|
|
2018-05-03 04:25:27 +08:00
|
|
|
.topic-links {
|
|
|
|
tr {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
.badge-notification {
|
|
|
|
margin: 1px 5px 2px 0;
|
|
|
|
}
|
|
|
|
}
|
2018-08-02 04:20:14 +08:00
|
|
|
|
2018-08-27 21:41:34 +08:00
|
|
|
.controls {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin: 0;
|
2018-08-02 04:20:14 +08:00
|
|
|
}
|
|
|
|
}
|
2018-08-27 21:41:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.participants {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 0.5em;
|
2018-08-02 04:20:14 +08:00
|
|
|
|
2018-08-29 16:07:49 +08:00
|
|
|
&.hide-names .user {
|
|
|
|
.username,
|
|
|
|
.group-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-02 04:20:14 +08:00
|
|
|
.user {
|
2018-08-27 21:41:34 +08:00
|
|
|
border: 1px solid $primary-low;
|
|
|
|
border-radius: 0.25em;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0.125em 0.25em 0.125em 0;
|
2018-08-02 04:20:14 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-08-27 21:41:34 +08:00
|
|
|
height: 26px;
|
|
|
|
|
|
|
|
.user-link,
|
|
|
|
.group-link {
|
2018-08-02 04:20:14 +08:00
|
|
|
color: $primary-high;
|
2018-08-27 21:41:34 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
2018-08-02 04:20:14 +08:00
|
|
|
}
|
|
|
|
}
|
2018-08-27 21:41:34 +08:00
|
|
|
|
|
|
|
.avatar,
|
|
|
|
.d-icon-users {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username,
|
|
|
|
.group-name {
|
|
|
|
margin-right: 0.25em;
|
2018-08-02 05:05:35 +08:00
|
|
|
}
|
2018-08-27 21:41:34 +08:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.remove-invited {
|
|
|
|
display: flex;
|
2019-01-22 02:40:55 +08:00
|
|
|
flex: 1 0 0px;
|
2018-08-27 21:41:34 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 0 0.25em 0.25em 0;
|
2018-08-29 16:11:44 +08:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
height: 100%;
|
2018-08-27 21:41:34 +08:00
|
|
|
}
|
2018-08-02 04:20:14 +08:00
|
|
|
}
|
2018-08-29 16:07:49 +08:00
|
|
|
}
|
2018-08-27 21:41:34 +08:00
|
|
|
|
2018-08-29 16:07:49 +08:00
|
|
|
.add-remove-participant-btn {
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 0.25em;
|
2018-08-02 04:20:14 +08:00
|
|
|
}
|
|
|
|
}
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic-avatar,
|
|
|
|
.avatar-flair-preview,
|
|
|
|
.user-card-avatar,
|
|
|
|
.topic-map .poster,
|
2018-12-17 17:44:34 +08:00
|
|
|
.user-profile-avatar,
|
|
|
|
.user-image {
|
2017-01-19 00:37:43 +08:00
|
|
|
.avatar-flair {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: -6px;
|
|
|
|
}
|
2016-09-16 04:15:08 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic-avatar .avatar-flair,
|
|
|
|
.avatar-flair-preview .avatar-flair,
|
2018-12-17 17:44:34 +08:00
|
|
|
.collapsed-info .user-profile-avatar .avatar-flair,
|
|
|
|
.user-image .avatar-flair {
|
2016-09-16 04:15:08 +08:00
|
|
|
background-size: 20px 20px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2016-08-17 00:34:04 +08:00
|
|
|
&.rounded {
|
|
|
|
background-size: 18px 18px;
|
|
|
|
border-radius: 12px;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2016-08-18 23:18:18 +08:00
|
|
|
bottom: -2px;
|
2016-08-17 00:34:04 +08:00
|
|
|
right: -8px;
|
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.user-card-avatar .avatar-flair,
|
|
|
|
.user-profile-avatar .avatar-flair {
|
2016-09-16 04:15:08 +08:00
|
|
|
background-size: 40px 40px;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
&.rounded {
|
|
|
|
background-size: 30px 30px;
|
|
|
|
border-radius: 24px;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
bottom: -2px;
|
|
|
|
right: -4px;
|
|
|
|
}
|
2016-09-20 02:04:51 +08:00
|
|
|
.fa {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-4;
|
2016-09-20 02:04:51 +08:00
|
|
|
}
|
2016-09-16 04:15:08 +08:00
|
|
|
}
|
2017-01-19 00:37:43 +08:00
|
|
|
.topic-map .poster .avatar-flair {
|
|
|
|
right: 0;
|
|
|
|
background-size: 12px 12px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
bottom: -3px;
|
|
|
|
&.rounded {
|
|
|
|
background-size: 12px 12px;
|
|
|
|
border-radius: 8px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
bottom: -2px;
|
|
|
|
right: 0;
|
|
|
|
}
|
2019-01-22 01:37:49 +08:00
|
|
|
.d-icon {
|
|
|
|
font-size: $font-down-2;
|
2017-01-19 00:37:43 +08:00
|
|
|
}
|
|
|
|
}
|
2015-12-05 05:49:02 +08:00
|
|
|
.topic-avatar .poster-avatar-extra {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-01-13 06:27:38 +08:00
|
|
|
.map {
|
|
|
|
&:first-of-type {
|
|
|
|
display: flex;
|
|
|
|
.buttons {
|
|
|
|
margin-left: auto;
|
|
|
|
order: 15;
|
|
|
|
.btn {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-19 06:51:50 +08:00
|
|
|
.topic-body {
|
2016-02-22 17:17:50 +08:00
|
|
|
// this is necessary for ANYTHING that extends past the right edge of
|
|
|
|
// the post body, such as an image in a deeply nested list, image in
|
|
|
|
// a deeply nested blockquote, and so on.. you get the idea.
|
2018-10-05 22:51:27 +08:00
|
|
|
.cooked {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-08-19 06:51:50 +08:00
|
|
|
&.highlighted {
|
2016-12-06 06:20:52 +08:00
|
|
|
animation: background-fade-highlight 2.5s ease-out;
|
2015-08-19 06:51:50 +08:00
|
|
|
}
|
|
|
|
}
|
2014-09-10 21:25:31 +08:00
|
|
|
|
|
|
|
.post-info {
|
2018-06-25 22:50:16 +08:00
|
|
|
flex: 0 0 auto;
|
|
|
|
margin-right: 0.5em;
|
2018-06-21 03:39:36 +08:00
|
|
|
|
2018-06-25 22:50:16 +08:00
|
|
|
&.post-date {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&.via-email,
|
|
|
|
&.whisper,
|
|
|
|
&.post-locked {
|
2017-07-28 03:03:41 +08:00
|
|
|
.d-icon {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
}
|
2017-01-16 15:54:51 +08:00
|
|
|
|
2017-09-12 21:37:47 +08:00
|
|
|
.wiki,
|
|
|
|
.last-wiki-edit {
|
2018-06-20 22:47:27 +08:00
|
|
|
color: $wiki;
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
2017-01-16 15:54:51 +08:00
|
|
|
|
2014-09-10 21:25:31 +08:00
|
|
|
&.via-email {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
2014-10-18 01:28:23 +08:00
|
|
|
&.raw-email {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
2014-09-13 13:58:15 +08:00
|
|
|
|
|
|
|
pre {
|
|
|
|
code {
|
2015-06-26 11:30:32 +08:00
|
|
|
word-wrap: normal;
|
2014-09-13 13:58:15 +08:00
|
|
|
display: block;
|
2019-01-10 01:36:51 +08:00
|
|
|
padding: 0.5em;
|
2014-09-13 13:58:15 +08:00
|
|
|
color: $primary;
|
2015-08-21 07:47:34 +08:00
|
|
|
background: blend-primary-secondary(5%);
|
2014-09-13 13:58:15 +08:00
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
kbd {
|
2014-09-13 13:58:15 +08:00
|
|
|
background-color: $secondary;
|
2017-06-12 10:20:14 +08:00
|
|
|
border: 1px solid $primary-low;
|
2014-09-13 13:58:15 +08:00
|
|
|
border-radius: 3px;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("kbd");
|
|
|
|
background: dark-light-choose(#fafafa, #333);
|
|
|
|
border: 1px solid dark-light-choose(#ccc, #555);
|
|
|
|
border-bottom: medium none dark-light-choose(#fff, #000);
|
2018-04-20 23:42:06 +08:00
|
|
|
|
2014-09-13 13:58:15 +08:00
|
|
|
color: $primary;
|
|
|
|
display: inline-block;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-large;
|
2018-06-08 17:49:31 +08:00
|
|
|
margin: 0 0.1em;
|
|
|
|
padding: 0.1em 0.6em;
|
2014-09-13 13:58:15 +08:00
|
|
|
|
2015-03-03 00:00:05 +08:00
|
|
|
// don't allow more than 3 nested elements to prevent FF from crashing
|
|
|
|
// cf. http://what.thedailywtf.com/t/nested-elements/7927
|
|
|
|
// 3 levels are needed to prevent highlighted words being hidden
|
|
|
|
// cf. https://meta.discourse.org/t/word-disappears-when-searched-and-in-details-summary-kbd-b/25741
|
2018-06-08 17:49:31 +08:00
|
|
|
* * * {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-09-23 00:55:13 +08:00
|
|
|
}
|
2015-01-12 18:24:06 +08:00
|
|
|
|
|
|
|
// we assume blockquotes have their own margins, so all blockquotes
|
|
|
|
// will remove margins from first (top) and last (bottom) child elements
|
|
|
|
blockquote > *:first-child {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
blockquote > *:last-child {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
2015-06-29 15:47:07 +08:00
|
|
|
|
|
|
|
.gap {
|
2019-01-22 06:57:47 +08:00
|
|
|
padding: 0.25em 0 0.5em 56px; // 45px (topic avatar) + 11px (margin) = 56px
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
2015-06-29 15:47:07 +08:00
|
|
|
cursor: pointer;
|
2017-05-06 08:06:13 +08:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: bold;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2015-06-29 15:47:07 +08:00
|
|
|
}
|
2015-07-04 02:57:07 +08:00
|
|
|
|
|
|
|
.who-liked {
|
2015-07-10 12:48:44 +08:00
|
|
|
transition: height 0.5s;
|
2015-07-04 02:57:07 +08:00
|
|
|
a {
|
|
|
|
margin: 0 0.25em 0.5em 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.cooked table,
|
|
|
|
.d-editor-preview table {
|
2015-07-20 14:56:32 +08:00
|
|
|
thead {
|
|
|
|
border-bottom: 2px solid lighten($primary, 80%);
|
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
padding-bottom: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
td,
|
|
|
|
th {
|
2015-07-20 14:56:32 +08:00
|
|
|
padding: 3px 3px 3px 10px;
|
|
|
|
}
|
|
|
|
}
|
2015-07-08 13:10:53 +08:00
|
|
|
|
2015-07-28 01:05:31 +08:00
|
|
|
.small-action {
|
2018-02-09 06:04:29 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-10-06 06:37:23 +08:00
|
|
|
max-width: 758px;
|
2017-11-11 05:45:06 +08:00
|
|
|
border-top: 1px solid $primary-low;
|
2015-07-28 01:05:31 +08:00
|
|
|
.topic-avatar {
|
2018-04-20 23:42:06 +08:00
|
|
|
align-self: flex-start;
|
2018-06-08 17:49:31 +08:00
|
|
|
padding: 0.7em 0;
|
2015-07-28 01:05:31 +08:00
|
|
|
border-top: none;
|
2018-02-09 06:04:29 +08:00
|
|
|
margin-right: 11px;
|
2019-01-22 06:57:47 +08:00
|
|
|
flex: 0 0 auto;
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: 2em;
|
2015-07-28 01:05:31 +08:00
|
|
|
width: 45px;
|
|
|
|
text-align: center;
|
2018-02-09 06:04:29 +08:00
|
|
|
color: $primary-low-mid;
|
2015-07-28 01:05:31 +08:00
|
|
|
}
|
|
|
|
}
|
2017-11-15 21:20:16 +08:00
|
|
|
|
2017-11-11 05:45:06 +08:00
|
|
|
.small-action.deleted {
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: dark-light-diff(
|
|
|
|
rgba($danger, 0.7),
|
|
|
|
$secondary,
|
|
|
|
50%,
|
|
|
|
-60%
|
|
|
|
);
|
2017-11-11 05:45:06 +08:00
|
|
|
}
|
2015-07-28 01:05:31 +08:00
|
|
|
|
2016-05-13 16:40:44 +08:00
|
|
|
.small-action-desc.timegap {
|
2018-06-08 17:49:31 +08:00
|
|
|
color: $primary-medium;
|
2016-05-13 16:40:44 +08:00
|
|
|
}
|
2017-11-11 05:45:06 +08:00
|
|
|
|
2015-07-28 01:05:31 +08:00
|
|
|
.small-action-desc {
|
2018-04-20 23:42:06 +08:00
|
|
|
display: flex;
|
2018-02-09 06:04:29 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
flex: 1 1 100%;
|
|
|
|
align-items: center;
|
|
|
|
padding: 1em 0;
|
2015-07-28 01:05:31 +08:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: bold;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2018-02-09 06:04:29 +08:00
|
|
|
color: $primary-medium;
|
2015-07-30 09:19:30 +08:00
|
|
|
|
|
|
|
.custom-message {
|
2018-04-20 23:42:06 +08:00
|
|
|
flex: 1 1 100%;
|
2015-07-30 09:19:30 +08:00
|
|
|
text-transform: none;
|
|
|
|
font-weight: normal;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-1;
|
2018-02-09 06:04:29 +08:00
|
|
|
order: 12;
|
2015-07-30 09:19:30 +08:00
|
|
|
p {
|
2018-02-09 06:04:29 +08:00
|
|
|
margin-bottom: 0;
|
2015-07-30 09:19:30 +08:00
|
|
|
}
|
|
|
|
}
|
2018-02-09 06:04:29 +08:00
|
|
|
a.trigger-user-card {
|
|
|
|
align-self: stretch;
|
|
|
|
}
|
2015-07-28 01:05:31 +08:00
|
|
|
.avatar {
|
|
|
|
margin-right: 0.8em;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2015-07-30 09:19:30 +08:00
|
|
|
> p {
|
2015-07-28 01:05:31 +08:00
|
|
|
margin: 0;
|
2018-02-09 06:04:29 +08:00
|
|
|
line-height: $line-height-medium;
|
|
|
|
flex: 1 1;
|
2015-07-28 01:05:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
2018-02-09 06:04:29 +08:00
|
|
|
order: 9;
|
|
|
|
&:last-of-type {
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-left: auto;
|
|
|
|
order: 8;
|
2018-02-09 06:04:29 +08:00
|
|
|
}
|
2015-07-28 01:05:31 +08:00
|
|
|
}
|
|
|
|
}
|
2015-09-13 02:44:20 +08:00
|
|
|
|
|
|
|
.whisper {
|
2016-02-17 01:47:54 +08:00
|
|
|
.post-info.whisper {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
2015-09-13 02:44:20 +08:00
|
|
|
.topic-body {
|
|
|
|
.cooked {
|
|
|
|
font-style: italic;
|
2017-06-12 10:20:14 +08:00
|
|
|
color: $primary-medium;
|
2015-09-13 02:44:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-04-18 10:26:43 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
a.mention,
|
|
|
|
a.mention-group {
|
2016-04-18 10:26:43 +08:00
|
|
|
padding: 2px 4px;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2017-06-12 10:20:14 +08:00
|
|
|
background: $primary-low;
|
2016-04-18 10:26:43 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 0.93em;
|
|
|
|
}
|
2016-07-11 11:01:25 +08:00
|
|
|
|
|
|
|
.popup-menu {
|
|
|
|
h3 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-06-13 03:46:01 +08:00
|
|
|
|
2018-11-12 10:04:30 +08:00
|
|
|
.suggested-topics {
|
2017-06-13 03:46:01 +08:00
|
|
|
.topics {
|
|
|
|
padding-bottom: 15px;
|
|
|
|
}
|
2019-01-24 02:12:16 +08:00
|
|
|
.suggested-topics-message {
|
|
|
|
.badge-wrapper {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-06-13 03:46:01 +08:00
|
|
|
}
|
2017-09-01 22:26:13 +08:00
|
|
|
|
2017-11-15 18:30:47 +08:00
|
|
|
.large-image-placeholder {
|
|
|
|
> a {
|
|
|
|
&.link {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
> * {
|
|
|
|
overflow: hidden;
|
2018-11-27 05:49:57 +08:00
|
|
|
vertical-align: middle;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2017-11-15 18:30:47 +08:00
|
|
|
|
2018-11-27 05:49:57 +08:00
|
|
|
> .d-icon {
|
2017-11-15 18:30:47 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
margin-right: 6px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $line-height-large;
|
2017-11-15 18:30:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> span.url {
|
|
|
|
display: inline-block;
|
|
|
|
max-width: 300px;
|
|
|
|
margin-right: 6px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span.help {
|
|
|
|
display: inline-block;
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2017-11-15 18:30:47 +08:00
|
|
|
font-style: italic;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-large;
|
2017-11-15 21:20:16 +08:00
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span.badge-notification {
|
|
|
|
vertical-align: unset;
|
2017-11-15 18:30:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.broken-image,
|
|
|
|
.large-image {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
2017-09-01 22:26:13 +08:00
|
|
|
border: 1px solid $primary-low;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-5;
|
2017-09-01 22:26:13 +08:00
|
|
|
padding: 16px;
|
|
|
|
}
|
2017-12-08 01:40:39 +08:00
|
|
|
|
|
|
|
/* below standard tablet portrait ----------- */
|
|
|
|
|
2018-06-21 01:06:20 +08:00
|
|
|
.reply-to-tab {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-right: 2em;
|
|
|
|
|
|
|
|
img {
|
|
|
|
margin: 0 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-21 04:37:43 +08:00
|
|
|
// Select posts
|
|
|
|
|
|
|
|
.topic-post {
|
|
|
|
&.selected {
|
|
|
|
article.boxed {
|
|
|
|
.select-posts {
|
|
|
|
button.select-post {
|
|
|
|
background-color: $tertiary;
|
|
|
|
color: $secondary;
|
|
|
|
border-color: $tertiary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.topic-body {
|
|
|
|
.contents:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
article.boxed {
|
|
|
|
position: relative;
|
|
|
|
.select-posts {
|
|
|
|
position: absolute;
|
|
|
|
right: 5em;
|
2018-07-23 09:40:50 +08:00
|
|
|
z-index: z("dropdown");
|
2018-07-21 04:37:43 +08:00
|
|
|
top: 0.5em;
|
|
|
|
height: 100px;
|
|
|
|
button {
|
|
|
|
margin-left: 8px;
|
|
|
|
background-color: $primary-low;
|
|
|
|
color: $primary;
|
|
|
|
box-shadow: shadow("dropdown");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
@media all and (max-width: 767px) {
|
2017-12-08 01:40:39 +08:00
|
|
|
.reply-to-tab {
|
2018-06-08 17:49:31 +08:00
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-12-08 01:40:39 +08:00
|
|
|
}
|
|
|
|
.user-title {
|
|
|
|
float: left;
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
}
|
2018-04-26 09:59:47 +08:00
|
|
|
|
|
|
|
.signup-cta {
|
|
|
|
a {
|
|
|
|
float: right;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
.buttons {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|