2013-10-20 06:18:25 +08:00
|
|
|
.full-width {
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-left: 0;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2020-07-21 03:53:47 +08:00
|
|
|
.staff {
|
|
|
|
.topic-post:first-child {
|
|
|
|
nav.post-controls .post-admin-menu {
|
|
|
|
bottom: -125px;
|
|
|
|
}
|
2019-12-19 08:57:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-05 04:18:09 +08:00
|
|
|
.topic-body {
|
2013-10-22 03:15:32 +08:00
|
|
|
padding: 0;
|
2013-10-20 06:18:25 +08:00
|
|
|
&:first-of-type {
|
|
|
|
border-top: none;
|
|
|
|
}
|
2015-07-08 13:10:53 +08:00
|
|
|
.reply-to-tab {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base") + 1;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2015-07-08 13:10:53 +08:00
|
|
|
}
|
|
|
|
.actions .fade-out {
|
2018-06-08 17:49:31 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
opacity: 0.7;
|
2019-02-01 02:59:49 +08:00
|
|
|
transition: background 0.25s, opacity 0.7s ease-in-out;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
.discourse-touch & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&:hover .actions .fade-out,
|
|
|
|
.selected .actions .fade-out {
|
2013-10-20 06:18:25 +08:00
|
|
|
opacity: 1;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2016-02-10 03:23:12 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2014-05-27 04:19:28 +08:00
|
|
|
section.post-menu-area {
|
|
|
|
position: relative;
|
2022-10-26 02:45:37 +08:00
|
|
|
padding-left: var(--topic-body-width-padding);
|
2014-05-27 04:19:28 +08:00
|
|
|
}
|
|
|
|
|
2018-10-17 00:39:55 +08:00
|
|
|
.post-links-container {
|
2022-10-26 02:45:37 +08:00
|
|
|
margin-left: var(--topic-body-width-padding);
|
2018-10-17 00:39:55 +08:00
|
|
|
}
|
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
nav.post-controls {
|
2022-01-04 22:44:54 +08:00
|
|
|
// for consistency, try to control spacing by editing these variables
|
|
|
|
--control-margin: 0.33em;
|
|
|
|
--control-icon-space: 0.33em;
|
2020-05-29 14:05:21 +08:00
|
|
|
.actions {
|
2022-01-04 22:44:54 +08:00
|
|
|
button {
|
|
|
|
margin-left: var(--control-margin);
|
|
|
|
&.create {
|
|
|
|
margin-left: calc(var(--control-margin) * 1.52);
|
|
|
|
.d-icon {
|
|
|
|
margin-right: var(--control-icon-space);
|
|
|
|
}
|
|
|
|
}
|
2018-03-30 11:18:15 +08:00
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
// Some buttons can be doubled up, like likes or flags
|
|
|
|
.double-button {
|
2022-01-04 22:44:54 +08:00
|
|
|
margin-left: var(--control-margin);
|
2020-05-29 14:05:21 +08:00
|
|
|
&:hover {
|
|
|
|
button {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
|
|
|
color: var(--primary-medium);
|
2019-03-08 10:09:57 +08:00
|
|
|
}
|
2018-03-30 19:57:07 +08:00
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
button {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
&.like {
|
|
|
|
// Like button with 0 likes
|
|
|
|
&.d-hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--love-low);
|
2020-05-29 14:05:21 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--love);
|
2020-05-29 14:05:21 +08:00
|
|
|
}
|
|
|
|
}
|
2019-03-08 10:09:57 +08:00
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
&.has-like {
|
|
|
|
// Like button after I've liked
|
|
|
|
&.d-hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
2020-05-29 14:05:21 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2020-05-29 14:05:21 +08:00
|
|
|
}
|
2019-03-08 10:09:57 +08:00
|
|
|
}
|
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
&.button-count {
|
|
|
|
// Like count button
|
2019-03-08 10:09:57 +08:00
|
|
|
&.d-hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2020-05-29 14:05:21 +08:00
|
|
|
}
|
|
|
|
+ .toggle-like {
|
|
|
|
// Like button when like count is present
|
|
|
|
&.d-hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
2020-05-29 14:05:21 +08:00
|
|
|
}
|
2019-03-08 10:09:57 +08:00
|
|
|
}
|
|
|
|
}
|
2018-03-30 19:57:07 +08:00
|
|
|
}
|
|
|
|
}
|
2014-05-13 20:53:11 +08:00
|
|
|
}
|
2020-05-30 10:05:58 +08:00
|
|
|
.show-replies {
|
2022-10-26 02:45:37 +08:00
|
|
|
margin-left: calc(
|
|
|
|
var(--topic-body-width-padding) * -1
|
|
|
|
); // negates padding-left on .cooked, for visual alignment
|
2020-05-30 10:05:58 +08:00
|
|
|
.d-icon {
|
2022-01-04 22:44:54 +08:00
|
|
|
margin-right: var(--control-icon-space);
|
2020-12-11 01:02:07 +08:00
|
|
|
}
|
2020-05-30 10:05:58 +08:00
|
|
|
}
|
2014-04-30 10:13:16 +08:00
|
|
|
}
|
|
|
|
|
2022-03-01 06:37:24 +08:00
|
|
|
pre.codeblock-buttons {
|
|
|
|
.copy-cmd:not(.action-complete),
|
|
|
|
.fullscreen-cmd:not(.action-complete) {
|
|
|
|
opacity: 0;
|
|
|
|
transition: 0.2s;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2020-04-21 21:02:13 +08:00
|
|
|
}
|
|
|
|
|
2022-03-01 06:37:24 +08:00
|
|
|
pre.codeblock-buttons:hover {
|
|
|
|
.copy-cmd,
|
|
|
|
.fullscreen-cmd {
|
|
|
|
opacity: 0.7;
|
|
|
|
visibility: visible;
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-03-17 10:22:35 +08:00
|
|
|
}
|
2020-04-21 21:02:13 +08:00
|
|
|
}
|
|
|
|
|
2014-04-30 10:13:16 +08:00
|
|
|
.embedded-posts {
|
2018-06-08 17:49:31 +08:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3 {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2014-07-10 23:40:31 +08:00
|
|
|
.topic-body {
|
2014-12-04 09:20:19 +08:00
|
|
|
box-sizing: border-box;
|
2018-01-17 04:48:47 +08:00
|
|
|
width: calc(100% - 70px); // [100% - .topic-avatar width]
|
2014-10-17 23:04:08 +08:00
|
|
|
// WARNING: overflow hide is required for quoted / embedded images
|
|
|
|
// which expect "normal" post width, but expansions are narrower
|
|
|
|
overflow: hidden;
|
2018-06-19 01:01:40 +08:00
|
|
|
} // this is covered by .topic-body .regular on a normal post
|
2015-06-04 15:10:35 +08:00
|
|
|
// but no such class structure exists for an embedded, expanded post
|
|
|
|
.cooked {
|
|
|
|
margin-top: 15px;
|
2014-10-16 13:34:56 +08:00
|
|
|
}
|
2014-07-10 23:40:31 +08:00
|
|
|
.topic-avatar {
|
2018-01-17 04:48:47 +08:00
|
|
|
padding-left: 25px;
|
2015-06-04 15:10:35 +08:00
|
|
|
padding-top: 15px;
|
2014-07-10 23:40:31 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.collapse-down,
|
|
|
|
.collapse-up {
|
2018-01-17 05:06:04 +08:00
|
|
|
position: absolute;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
|
|
|
background: var(--secondary);
|
|
|
|
border: 1px solid var(--primary-low);
|
2018-01-17 05:06:04 +08:00
|
|
|
padding: 6px 9px 8px;
|
|
|
|
z-index: 99; // Needs to be higher than topic-avatar
|
2019-02-13 06:21:33 +08:00
|
|
|
.d-icon {
|
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
|
|
|
color: var(--primary-high);
|
2019-02-13 06:21:33 +08:00
|
|
|
.d-icon {
|
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
}
|
2018-01-17 05:06:04 +08:00
|
|
|
}
|
2018-06-19 01:01:40 +08:00
|
|
|
} // bottom means "reply expansion" below a post
|
2014-04-30 10:13:16 +08:00
|
|
|
&.bottom {
|
2018-01-20 05:16:22 +08:00
|
|
|
border-top: none;
|
|
|
|
margin-bottom: 20px;
|
2014-10-17 23:04:08 +08:00
|
|
|
&.hidden {
|
|
|
|
display: block;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-07-10 23:40:31 +08:00
|
|
|
&.bottom {
|
2018-01-17 04:48:47 +08:00
|
|
|
.collapse-up {
|
2018-01-17 05:06:04 +08:00
|
|
|
transform: translate(-50%, -164%);
|
2018-01-17 04:48:47 +08:00
|
|
|
}
|
2014-12-04 09:20:19 +08:00
|
|
|
.row {
|
2018-06-08 17:49:31 +08:00
|
|
|
padding-bottom: 0.5em;
|
|
|
|
.topic-avatar,
|
|
|
|
.topic-body {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-01-17 04:48:47 +08:00
|
|
|
}
|
2014-12-04 09:20:19 +08:00
|
|
|
}
|
2018-06-19 01:01:40 +08:00
|
|
|
} // top means "in reply to expansion" above a post
|
2014-06-05 17:29:56 +08:00
|
|
|
&.top {
|
2018-01-20 05:16:22 +08:00
|
|
|
border-bottom: none;
|
2018-01-17 04:48:47 +08:00
|
|
|
.collapse-down {
|
|
|
|
transform: translate(-50%, 55%);
|
|
|
|
}
|
2022-10-26 02:45:37 +08:00
|
|
|
margin-left: var(--topic-avatar-width);
|
|
|
|
width: calc(
|
|
|
|
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
|
|
|
|
var(--topic-avatar-width) - (var(--topic-avatar-width + 2px))
|
|
|
|
); // 2px accounts for left and right borders
|
2018-01-17 04:48:47 +08:00
|
|
|
.row {
|
|
|
|
border-bottom: none;
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic-avatar,
|
|
|
|
.topic-body {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-01-17 04:48:47 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-31 00:40:16 +08:00
|
|
|
}
|
2014-10-16 22:19:01 +08:00
|
|
|
&.top.topic-body {
|
2016-01-27 09:03:18 +08:00
|
|
|
padding: 0;
|
2014-10-16 22:19:01 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.post-date {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-high);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
.d-icon-arrow-up,
|
|
|
|
.d-icon-arrow-down {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
.reply:first-of-type .row {
|
|
|
|
border-top: none;
|
|
|
|
}
|
2014-04-30 10:13:16 +08:00
|
|
|
.topic-meta-data {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.topic-meta-data h5 {
|
|
|
|
position: absolute;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base");
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2014-04-30 10:13:16 +08:00
|
|
|
a {
|
|
|
|
font-weight: bold;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-low-mid-or-secondary-high);
|
2014-04-30 10:13:16 +08:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.arrow {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-high);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2014-04-30 10:13:16 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
.post-action {
|
|
|
|
.relative-date {
|
|
|
|
margin-left: 5px;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.avatar {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2013-09-04 23:53:00 +08:00
|
|
|
|
2013-11-16 02:30:24 +08:00
|
|
|
.topic-map {
|
2022-10-26 02:45:37 +08:00
|
|
|
margin: 20px 0 20px var(--topic-body-width-padding);
|
2013-11-16 04:46:26 +08:00
|
|
|
.map {
|
2018-06-08 17:49:31 +08:00
|
|
|
.secondary {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
li {
|
|
|
|
float: left;
|
2014-07-23 04:30:32 +08:00
|
|
|
padding: 7px 10px;
|
2013-02-06 03:16:51 +08:00
|
|
|
&:last-of-type {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&:nth-child(3) {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.number {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.number,
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-2);
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-medium);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2019-02-01 02:59:49 +08:00
|
|
|
button .d-icon,
|
|
|
|
button:hover .d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-01-22 01:37:49 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.avatar a {
|
2013-02-06 03:16:51 +08:00
|
|
|
float: left;
|
|
|
|
}
|
2018-01-13 06:27:38 +08:00
|
|
|
.topic-map-post {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
.avatars,
|
|
|
|
.links,
|
|
|
|
.information {
|
2018-08-27 21:41:34 +08:00
|
|
|
padding: 7px 10px 7px 10px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
.buttons {
|
|
|
|
float: right;
|
|
|
|
.btn {
|
|
|
|
border: 0;
|
|
|
|
padding: 0 23px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-high);
|
|
|
|
background: var(--blend-primary-secondary-5);
|
|
|
|
border-left: 1px solid var(--primary-low);
|
2018-01-13 06:27:38 +08:00
|
|
|
border-top: 1px solid transparent;
|
2013-02-06 03:16:51 +08:00
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background: var(--primary-low);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&.collapsed {
|
2013-10-20 06:18:25 +08:00
|
|
|
padding-bottom: 1px;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2013-02-06 03:16:51 +08:00
|
|
|
margin: 0;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-2);
|
2013-02-06 03:16:51 +08:00
|
|
|
line-height: 52px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-07-22 01:51:56 +08:00
|
|
|
.link-summary .btn {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-high);
|
|
|
|
background: var(--blend-primary-secondary-5);
|
2017-07-22 01:51:56 +08:00
|
|
|
width: 100%;
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background: var(--primary-low);
|
2017-07-22 01:51:56 +08:00
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2020-05-23 11:25:56 +08:00
|
|
|
#topic-footer-buttons {
|
2022-10-26 02:45:37 +08:00
|
|
|
max-width: calc(
|
|
|
|
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
|
|
|
|
var(--topic-avatar-width)
|
|
|
|
);
|
2020-05-23 12:56:13 +08:00
|
|
|
|
2021-03-18 10:42:52 +08:00
|
|
|
@media screen and (max-width: 924px) {
|
|
|
|
.topic-footer-main-buttons {
|
|
|
|
margin-top: 1em; // some extra space for the docked progress bar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-23 12:56:13 +08:00
|
|
|
.bookmark {
|
2018-06-08 17:49:31 +08:00
|
|
|
.d-icon-bookmark.bookmarked {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2014-06-04 19:03:14 +08:00
|
|
|
}
|
2020-05-23 12:56:13 +08:00
|
|
|
|
2020-04-16 07:20:44 +08:00
|
|
|
.bookmark.bookmarked .d-icon-bookmark,
|
|
|
|
.bookmark.bookmarked .d-icon-discourse-bookmark-clock {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2016-10-28 02:45:57 +08:00
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
.feature-on-profile.featured-on-profile .d-icon-id-card {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2019-12-10 03:15:47 +08:00
|
|
|
}
|
2017-08-16 01:17:15 +08:00
|
|
|
}
|
2016-10-28 02:45:57 +08:00
|
|
|
|
2018-11-12 10:04:30 +08:00
|
|
|
.suggested-topics {
|
2021-04-23 04:11:47 +08:00
|
|
|
margin: 4.5em 0 1em;
|
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
table {
|
|
|
|
margin-top: 10px;
|
2015-01-25 16:33:48 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
span.post-count {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary);
|
|
|
|
color: var(--secondary);
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.8;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
|
2014-04-03 03:54:21 +08:00
|
|
|
button.expand-post {
|
|
|
|
margin-top: 10px;
|
2022-10-26 02:45:37 +08:00
|
|
|
margin-left: var(--topic-body-width-padding);
|
2014-04-03 03:54:21 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
|
|
|
iframe {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2014-12-09 04:39:36 +08:00
|
|
|
video {
|
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
|
2019-11-07 04:07:51 +08:00
|
|
|
.video {
|
|
|
|
// Height determined by aspect-ratio
|
|
|
|
max-height: 500px;
|
|
|
|
> video {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-09 00:20:44 +08:00
|
|
|
@keyframes fadein {
|
2018-06-08 17:49:31 +08:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2014-10-09 00:20:44 +08:00
|
|
|
}
|
2014-10-07 06:32:38 +08:00
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
.btn-group {
|
2013-02-06 03:16:51 +08:00
|
|
|
position: relative;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-select {
|
|
|
|
float: right;
|
|
|
|
margin-right: 20px;
|
|
|
|
margin-top: -20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deleted-user-avatar {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-6);
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
|
2013-10-31 00:40:16 +08:00
|
|
|
.info-line {
|
|
|
|
margin: 10px 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-10-31 00:40:16 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2014-06-30 15:58:27 +08:00
|
|
|
/* solo quotes */
|
2018-06-19 01:01:40 +08:00
|
|
|
|
2014-06-30 15:58:27 +08:00
|
|
|
blockquote {
|
2014-06-30 18:03:54 +08:00
|
|
|
/* leave browser defaults for top and bottom here */
|
2014-06-30 15:51:17 +08:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2013-10-20 06:18:25 +08:00
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
2014-06-30 15:58:27 +08:00
|
|
|
/* quotes with attribution */
|
2018-06-19 01:01:40 +08:00
|
|
|
|
2014-06-30 15:58:27 +08:00
|
|
|
.quote {
|
2018-06-19 02:10:48 +08:00
|
|
|
& > blockquote {
|
2014-05-23 09:55:50 +08:00
|
|
|
.onebox-result {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2014-05-23 09:55:50 +08:00
|
|
|
}
|
2013-11-14 12:10:47 +08:00
|
|
|
}
|
2014-05-23 09:55:50 +08:00
|
|
|
aside {
|
2018-06-08 17:49:31 +08:00
|
|
|
.quote,
|
|
|
|
.title,
|
|
|
|
blockquote,
|
|
|
|
.onebox,
|
|
|
|
.onebox-result {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-very-low);
|
|
|
|
border-left: 5px solid var(--primary-low);
|
2014-05-23 09:55:50 +08:00
|
|
|
}
|
2018-06-19 02:10:48 +08:00
|
|
|
aside.quote > blockquote,
|
|
|
|
aside.quote > .title {
|
2014-05-28 10:46:31 +08:00
|
|
|
border-left: 0;
|
|
|
|
}
|
2014-05-23 09:55:50 +08:00
|
|
|
}
|
2013-10-22 04:23:55 +08:00
|
|
|
}
|
|
|
|
|
2021-07-07 12:40:40 +08:00
|
|
|
.topic-post-visited {
|
2021-07-05 14:17:31 +08:00
|
|
|
+ .topic-post {
|
|
|
|
.topic-avatar,
|
|
|
|
.topic-body {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-16 05:02:43 +08:00
|
|
|
// variables are used to calculate the width of .gap
|
2013-10-20 06:18:25 +08:00
|
|
|
.topic-body {
|
2022-10-26 02:45:37 +08:00
|
|
|
width: calc(var(--topic-body-width) + (var(--topic-body-width-padding) * 2));
|
2013-10-22 01:53:34 +08:00
|
|
|
float: left;
|
2022-07-16 03:51:22 +08:00
|
|
|
min-width: 0; // prevents some elements, like <pre>, from blowing out the width
|
2013-10-22 01:53:34 +08:00
|
|
|
position: relative;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-10-05 22:51:27 +08:00
|
|
|
padding: 12px 0 0 0;
|
2020-11-17 12:10:03 +08:00
|
|
|
.topic-meta-data {
|
2022-10-26 02:45:37 +08:00
|
|
|
padding: 0 var(--topic-body-width-padding) 0.25em
|
|
|
|
var(--topic-body-width-padding);
|
2020-11-17 12:10:03 +08:00
|
|
|
}
|
2018-10-05 22:51:27 +08:00
|
|
|
.cooked {
|
2022-10-26 02:45:37 +08:00
|
|
|
padding: 1em var(--topic-body-width-padding) 0.25em
|
|
|
|
var(--topic-body-width-padding);
|
2018-10-05 22:51:27 +08:00
|
|
|
}
|
2020-03-24 17:12:52 +08:00
|
|
|
.group-request {
|
2022-10-26 02:45:37 +08:00
|
|
|
padding: 0.5em var(--topic-body-width-padding) 0
|
|
|
|
var(--topic-body-width-padding);
|
2020-03-24 17:12:52 +08:00
|
|
|
}
|
2019-03-21 23:50:41 +08:00
|
|
|
a.expand-hidden {
|
2022-10-26 02:45:37 +08:00
|
|
|
padding-left: var(--topic-body-width-padding);
|
2019-03-21 23:50:41 +08:00
|
|
|
}
|
2013-11-08 12:12:18 +08:00
|
|
|
}
|
2016-02-22 17:17:50 +08:00
|
|
|
|
2014-05-10 14:09:04 +08:00
|
|
|
.topic-avatar {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2014-12-04 09:20:19 +08:00
|
|
|
padding-top: 15px;
|
2014-09-10 21:25:31 +08:00
|
|
|
width: $topic-avatar-width;
|
|
|
|
float: left;
|
2018-01-19 02:38:27 +08:00
|
|
|
z-index: z("base") + 1;
|
2022-07-13 22:00:59 +08:00
|
|
|
height: 100%;
|
2014-05-10 14:09:04 +08:00
|
|
|
}
|
2013-11-08 12:12:18 +08:00
|
|
|
|
2015-06-29 16:14:54 +08:00
|
|
|
.gap {
|
2020-04-08 23:38:25 +08:00
|
|
|
box-sizing: border-box;
|
2015-06-29 16:14:54 +08:00
|
|
|
}
|
|
|
|
|
2021-11-03 01:45:40 +08:00
|
|
|
.topic-area > .loading-container {
|
2020-10-20 16:09:12 +08:00
|
|
|
// loader needs to be same width as posts
|
|
|
|
width: calc(
|
2022-10-26 05:59:09 +08:00
|
|
|
var(--topic-body-width) + var(--topic-avatar-width) +
|
2022-10-26 02:45:37 +08:00
|
|
|
(var(--topic-body-width-padding) * 2)
|
2020-10-20 16:09:12 +08:00
|
|
|
);
|
2021-10-29 21:23:15 +08:00
|
|
|
max-width: 100%;
|
2020-10-20 16:09:12 +08:00
|
|
|
}
|
|
|
|
|
2016-05-13 17:45:34 +08:00
|
|
|
/* hide the reply border above the time gap notices */
|
2018-06-19 01:01:40 +08:00
|
|
|
|
2018-06-19 02:10:48 +08:00
|
|
|
.time-gap + .topic-post .topic-body,
|
|
|
|
.time-gap + .topic-post .topic-avatar {
|
2016-05-13 17:45:34 +08:00
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
2018-06-19 02:10:48 +08:00
|
|
|
.time-gap + .topic-post .embedded-posts.top {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2018-03-30 05:32:56 +08:00
|
|
|
}
|
2018-01-17 04:48:47 +08:00
|
|
|
|
2013-10-22 04:54:53 +08:00
|
|
|
.posts-wrapper {
|
|
|
|
position: relative;
|
2015-05-29 10:02:09 +08:00
|
|
|
-webkit-font-smoothing: subpixel-antialiased;
|
2015-07-25 04:39:03 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
|
|
|
.dropdown {
|
2013-07-12 04:38:46 +08:00
|
|
|
position: relative;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2018-06-19 01:01:40 +08:00
|
|
|
|
2013-10-20 06:18:25 +08:00
|
|
|
.caret {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
vertical-align: middle;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 4px solid var(--primary);
|
2013-10-20 06:18:25 +08:00
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
content: "";
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2018-06-19 01:01:40 +08:00
|
|
|
|
2016-04-09 03:25:52 +08:00
|
|
|
.selected-posts {
|
2014-03-28 09:28:14 +08:00
|
|
|
width: 200px;
|
2013-10-20 06:18:25 +08:00
|
|
|
position: fixed;
|
2020-12-11 10:32:52 +08:00
|
|
|
z-index: z("dropdown") + 1; // 1 higher than .select-posts
|
2018-07-21 04:37:43 +08:00
|
|
|
box-shadow: shadow("card");
|
|
|
|
padding: 0.714em;
|
2013-10-20 06:18:25 +08:00
|
|
|
margin-bottom: 5px;
|
2015-09-22 01:50:05 +08:00
|
|
|
right: 10px;
|
2018-07-13 04:38:51 +08:00
|
|
|
@include breakpoint(extra-large, min-width) {
|
2015-09-22 01:50:05 +08:00
|
|
|
right: auto;
|
|
|
|
margin-left: 330px;
|
|
|
|
left: 50%;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
button {
|
2018-07-21 04:37:43 +08:00
|
|
|
width: 100%;
|
2013-10-20 06:18:25 +08:00
|
|
|
margin: 4px auto;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.controls {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
p {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2013-10-20 06:18:25 +08:00
|
|
|
margin: 0 0 10px 0;
|
|
|
|
}
|
|
|
|
p.cancel {
|
|
|
|
margin: 10px 0 0 0;
|
|
|
|
}
|
|
|
|
h3 {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-4);
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-10-20 06:18:25 +08:00
|
|
|
margin-bottom: 5px;
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2013-10-20 06:18:25 +08:00
|
|
|
margin-right: 7px;
|
|
|
|
}
|
2013-07-12 04:38:46 +08:00
|
|
|
}
|
2013-05-16 14:55:07 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2013-10-23 15:52:15 +08:00
|
|
|
a.attachment:before {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 4px;
|
2018-11-27 05:49:57 +08:00
|
|
|
// ideally, the SVG used here should be in HTML and reference the SVG sprite
|
|
|
|
content: svg-uri(
|
|
|
|
'<svg xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 512 512" fill="#{$tertiary}"><path d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"></path></svg>'
|
|
|
|
);
|
|
|
|
vertical-align: middle;
|
2013-11-11 14:11:16 +08:00
|
|
|
}
|
2013-10-30 21:11:05 +08:00
|
|
|
|
2014-05-14 01:08:37 +08:00
|
|
|
.topic-meta-data {
|
2018-06-21 01:06:20 +08:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.names {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&:after {
|
2014-05-14 01:08:37 +08:00
|
|
|
visibility: hidden;
|
|
|
|
display: block;
|
|
|
|
font-size: 0;
|
|
|
|
content: " ";
|
|
|
|
clear: both;
|
|
|
|
height: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2018-06-21 01:06:20 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.post-info {
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2018-06-20 22:47:27 +08:00
|
|
|
|
|
|
|
a.wiki {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--wiki);
|
2018-06-20 22:47:27 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2014-05-14 01:08:37 +08:00
|
|
|
}
|
|
|
|
|
2019-08-27 20:09:00 +08:00
|
|
|
.who-liked,
|
|
|
|
.who-read {
|
2015-07-10 12:48:44 +08:00
|
|
|
margin-top: 20px;
|
2018-01-25 22:53:36 +08:00
|
|
|
margin-bottom: 0;
|
2015-07-10 12:48:44 +08:00
|
|
|
width: 100%;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2014-05-14 01:08:37 +08:00
|
|
|
span.highlighted {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-low);
|
2014-05-14 16:05:24 +08:00
|
|
|
}
|
|
|
|
|
2019-02-26 06:09:41 +08:00
|
|
|
.first.new-user:not(.staff) a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-low-mid);
|
2014-05-14 16:05:24 +08:00
|
|
|
}
|
2014-06-03 09:48:52 +08:00
|
|
|
|
|
|
|
.read-state {
|
2014-06-03 10:32:33 +08:00
|
|
|
position: absolute;
|
2018-09-06 01:19:36 +08:00
|
|
|
// We use absolute positioning here because we want it to display in the padding
|
|
|
|
align-self: center;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary-medium);
|
2018-01-25 22:53:36 +08:00
|
|
|
right: 0;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.571em;
|
2014-06-03 09:48:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.read-state.read {
|
2019-06-27 03:39:57 +08:00
|
|
|
visibility: hidden;
|
2014-06-03 09:48:52 +08:00
|
|
|
opacity: 0;
|
2019-06-27 03:39:57 +08:00
|
|
|
transition: visibility 1s, opacity ease-out 1s;
|
2014-06-03 09:48:52 +08:00
|
|
|
}
|
2014-07-10 07:56:35 +08:00
|
|
|
|
2021-10-27 20:41:29 +08:00
|
|
|
.topic-post.sticky-avatar {
|
|
|
|
.topic-avatar {
|
|
|
|
position: sticky;
|
|
|
|
top: calc(var(--header-offset) - 0.25em);
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-10 07:56:35 +08:00
|
|
|
/* Tablet (portrait) ----------- */
|
|
|
|
|
2020-02-18 05:04:24 +08:00
|
|
|
@media all and (max-width: 790px) {
|
2014-07-10 23:40:31 +08:00
|
|
|
.topic-avatar {
|
2014-12-04 09:20:19 +08:00
|
|
|
width: 45px;
|
2014-07-10 23:40:31 +08:00
|
|
|
}
|
2016-01-05 04:18:09 +08:00
|
|
|
.topic-post .reply-to-tab {
|
2018-06-08 17:49:31 +08:00
|
|
|
right: 15%;
|
2016-01-05 04:18:09 +08:00
|
|
|
}
|
2014-07-10 23:40:31 +08:00
|
|
|
.topic-body {
|
2018-06-08 17:49:31 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: calc(100% - 47px); //100% - [width of .topic-avatar + 2px]
|
|
|
|
}
|
2014-07-10 23:40:31 +08:00
|
|
|
.embedded-posts {
|
|
|
|
// top means "in reply to expansion" above a post
|
|
|
|
&.top {
|
2014-12-04 09:20:19 +08:00
|
|
|
width: calc(100% - 56px); // [100% - margin-left]
|
2014-07-10 23:40:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|