2016-12-29 00:39:08 +08:00
|
|
|
@keyframes button-jump-up {
|
2018-06-08 17:49:31 +08:00
|
|
|
0% {
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: -60px;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
50% {
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: 10px;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
65% {
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: 0px;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
77% {
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: 5px;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
100% {
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: 0px;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2016-12-29 00:39:08 +08:00
|
|
|
}
|
|
|
|
|
2024-01-27 02:10:45 +08:00
|
|
|
#main-outlet {
|
2021-04-23 04:11:47 +08:00
|
|
|
--below-topic-margin: 0.75em;
|
|
|
|
}
|
|
|
|
|
2020-10-20 05:26:38 +08:00
|
|
|
.container.posts {
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas: "posts timeline";
|
|
|
|
grid-template-columns: auto auto;
|
2021-04-23 04:11:47 +08:00
|
|
|
margin-bottom: var(--below-topic-margin);
|
2020-10-20 05:26:38 +08:00
|
|
|
> .row {
|
|
|
|
grid-area: posts;
|
2020-10-21 06:35:07 +08:00
|
|
|
max-width: calc(
|
2021-05-26 15:33:08 +08:00
|
|
|
100vw - 20px
|
|
|
|
); // 20px is the left + right padding on .wrap in common/base/discourse.scss
|
2022-06-29 10:49:01 +08:00
|
|
|
min-width: 0; // grid needs to be able to shrink
|
2020-10-20 05:26:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-container {
|
|
|
|
margin-left: unset !important;
|
|
|
|
/* This is a temporary override to ease the transition
|
|
|
|
to the sticky position timeline for themes with custom timeline positioning.
|
|
|
|
Without this those themes would render topics unreadable. */
|
|
|
|
}
|
|
|
|
|
|
|
|
// timeline
|
2021-11-03 01:45:40 +08:00
|
|
|
@media screen and (min-width: 925px) {
|
|
|
|
// at 925px viewport width and above the timeline is visible (see topic-navigation.js)
|
|
|
|
.topic-navigation {
|
2020-10-20 05:26:38 +08:00
|
|
|
grid-area: timeline;
|
|
|
|
align-self: start;
|
|
|
|
@include sticky;
|
2021-09-24 02:51:06 +08:00
|
|
|
top: calc(var(--header-offset, 60px) + 2em);
|
2020-10-20 05:26:38 +08:00
|
|
|
margin-left: 1em;
|
|
|
|
z-index: z("timeline");
|
2021-11-03 01:45:40 +08:00
|
|
|
|
2022-01-05 07:28:26 +08:00
|
|
|
&.with-topic-progress {
|
|
|
|
align-self: end;
|
|
|
|
}
|
|
|
|
|
2021-11-03 01:45:40 +08:00
|
|
|
&.topic-progress-expanded {
|
|
|
|
z-index: z("fullscreen");
|
|
|
|
}
|
2021-10-29 21:23:15 +08:00
|
|
|
}
|
2021-12-15 23:16:14 +08:00
|
|
|
|
|
|
|
.topic-navigation-popup {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
overflow-y: auto;
|
|
|
|
z-index: z("timeline");
|
|
|
|
padding: 10px 10px 35px 10px;
|
2023-06-14 04:38:31 +08:00
|
|
|
box-shadow: var(--shadow-dropdown);
|
2021-12-15 23:16:14 +08:00
|
|
|
background: var(--tertiary-low);
|
|
|
|
|
|
|
|
.close {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: absolute;
|
2023-11-21 23:47:48 +08:00
|
|
|
right: 0px;
|
|
|
|
top: 8px;
|
2021-12-15 23:16:14 +08:00
|
|
|
color: var(--primary);
|
|
|
|
opacity: 0.5;
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 05:26:38 +08:00
|
|
|
}
|
|
|
|
// progress bar
|
|
|
|
@media screen and (max-width: 924px) {
|
2021-11-03 01:45:40 +08:00
|
|
|
grid-template-areas: "posts";
|
|
|
|
grid-template-columns: auto;
|
|
|
|
.topic-navigation {
|
|
|
|
grid-area: posts;
|
2024-07-23 06:42:29 +08:00
|
|
|
grid-row: 3;
|
2021-11-03 01:45:40 +08:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2020-10-20 05:26:38 +08:00
|
|
|
.timeline-container:not(.timeline-fullscreen) {
|
|
|
|
display: none; // hiding this because sometimes the JS switch lags and causes layout issues
|
|
|
|
}
|
2021-10-29 21:23:15 +08:00
|
|
|
.timeline-container .timeline-scroller-content {
|
|
|
|
position: relative;
|
2020-10-20 05:26:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-21 05:00:54 +08:00
|
|
|
.progress-back-container {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("dropdown");
|
2018-01-25 22:53:36 +08:00
|
|
|
margin-right: 0;
|
2016-12-29 00:39:08 +08:00
|
|
|
animation-duration: 0.5s;
|
|
|
|
animation-name: button-jump-up;
|
2016-12-29 01:24:17 +08:00
|
|
|
width: 145px;
|
|
|
|
text-align: center;
|
2018-10-04 01:21:57 +08:00
|
|
|
margin-bottom: 0px;
|
2019-10-01 23:45:51 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2021-04-28 02:24:04 +08:00
|
|
|
top: -120%; // above parent container + some extra space
|
2016-12-21 05:00:54 +08:00
|
|
|
.btn {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 06:55:50 +08:00
|
|
|
.topic-status-info,
|
|
|
|
.topic-timer-info {
|
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
margin: 0;
|
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)
|
|
|
|
);
|
2021-04-27 06:55:50 +08:00
|
|
|
&:empty {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
span .d-icon {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2021-04-27 06:55:50 +08:00
|
|
|
}
|
|
|
|
.topic-timer-heading,
|
|
|
|
.slow-mode-heading {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: var(--below-topic-margin) 0;
|
|
|
|
}
|
|
|
|
.slow-mode-remove,
|
|
|
|
.topic-timer-modify {
|
|
|
|
display: flex;
|
|
|
|
margin-left: auto;
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
button {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-2);
|
2021-04-27 06:55:50 +08:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-03 08:03:25 +08:00
|
|
|
.title-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2018-12-07 08:22:04 +08:00
|
|
|
.topic-statuses {
|
2020-11-23 09:16:41 +08:00
|
|
|
line-height: 1.2;
|
2018-12-07 08:22:04 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-12-07 08:22:04 +08:00
|
|
|
}
|
|
|
|
}
|
2021-06-01 17:06:56 +08:00
|
|
|
.header-title .private-message-glyph-wrapper {
|
|
|
|
float: left;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
|
2014-10-06 23:50:18 +08:00
|
|
|
#topic-title {
|
2015-01-15 04:36:38 +08:00
|
|
|
.title-wrapper {
|
2018-02-03 08:03:25 +08:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2024-12-05 05:30:48 +08:00
|
|
|
@media screen and (min-width: 925px) {
|
|
|
|
width: 90%; // topic title isn't full-width on wide screens
|
|
|
|
}
|
2015-01-15 04:36:38 +08:00
|
|
|
}
|
2016-12-30 03:59:30 +08:00
|
|
|
h1 {
|
2021-05-26 17:12:32 +08:00
|
|
|
margin-bottom: 0;
|
2018-08-27 10:35:15 +08:00
|
|
|
width: 100%;
|
2016-12-30 03:59:30 +08:00
|
|
|
}
|
2023-11-13 23:46:15 +08:00
|
|
|
|
2018-11-27 05:49:57 +08:00
|
|
|
a.edit-topic .d-icon {
|
2018-06-08 17:49:31 +08:00
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
2017-12-05 04:29:02 +08:00
|
|
|
.edit-topic-title {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
box-sizing: border-box;
|
2024-12-05 05:30:48 +08:00
|
|
|
gap: 0.5em;
|
|
|
|
width: 100%;
|
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)
|
|
|
|
);
|
2024-12-05 05:30:48 +08:00
|
|
|
.select-kit .category-row {
|
|
|
|
max-width: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-title__wrapper {
|
|
|
|
flex: 1 1 100%;
|
2017-12-05 04:29:02 +08:00
|
|
|
#edit-title {
|
2024-12-05 05:30:48 +08:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
2017-12-05 04:29:02 +08:00
|
|
|
}
|
2024-12-05 05:30:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.edit-category__wrapper {
|
|
|
|
flex: 1 1 5%;
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
min-width: 0; // allows category name to shrink to fit narrow screens
|
|
|
|
}
|
|
|
|
.select-kit.combo-box.category-chooser {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-tags__wrapper {
|
|
|
|
flex: 1 1 33%;
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
flex: 1 1 100%; // force full row on narrow screens
|
2017-12-05 04:29:02 +08:00
|
|
|
}
|
2024-12-05 05:30:48 +08:00
|
|
|
|
2018-02-26 18:42:57 +08:00
|
|
|
.mini-tag-chooser {
|
2024-12-05 05:30:48 +08:00
|
|
|
width: 100%;
|
2017-12-05 04:29:02 +08:00
|
|
|
}
|
2024-12-05 05:30:48 +08:00
|
|
|
.select-kit-header--filter {
|
|
|
|
flex-wrap: nowrap; // forces the whole input to wrap if needed, rather than individual tags
|
|
|
|
min-width: 0;
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
flex-wrap: wrap; // individual tags will need to wrap on narrow screens
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
2022-10-26 02:45:37 +08:00
|
|
|
}
|
2024-12-05 05:30:48 +08:00
|
|
|
|
|
|
|
.multi-select-filter {
|
|
|
|
flex-shrink: 0;
|
|
|
|
min-width: 2em; // always provide a minimal space for input
|
2020-07-16 07:16:02 +08:00
|
|
|
}
|
2017-12-05 04:29:02 +08:00
|
|
|
}
|
2024-12-05 05:30:48 +08:00
|
|
|
|
|
|
|
.edit-controls {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
gap: 0.5em;
|
|
|
|
}
|
2014-10-06 23:50:18 +08:00
|
|
|
}
|
2014-12-31 05:29:28 +08:00
|
|
|
|
2020-01-18 01:20:23 +08:00
|
|
|
.private-message-glyph {
|
2020-11-23 09:16:41 +08:00
|
|
|
color: var(--primary-medium);
|
|
|
|
height: 0.95em;
|
2020-01-18 01:20:23 +08:00
|
|
|
}
|
|
|
|
|
2017-12-05 04:29:02 +08:00
|
|
|
.private_message {
|
2023-09-09 00:07:04 +08:00
|
|
|
background: var(--d-content-background);
|
2017-12-05 04:29:02 +08:00
|
|
|
#topic-title {
|
|
|
|
.edit-topic-title {
|
2020-01-17 10:31:17 +08:00
|
|
|
position: relative;
|
2024-11-04 23:31:11 +08:00
|
|
|
min-width: 0;
|
2020-01-17 10:31:17 +08:00
|
|
|
.private-message-glyph {
|
|
|
|
position: absolute;
|
2024-12-12 06:18:52 +08:00
|
|
|
z-index: 1;
|
2020-01-17 10:31:17 +08:00
|
|
|
left: 0.75em;
|
2024-12-12 06:18:52 +08:00
|
|
|
top: 1.2em;
|
|
|
|
.mobile-view & {
|
|
|
|
top: 1.1em;
|
|
|
|
}
|
2020-01-17 10:31:17 +08:00
|
|
|
}
|
2017-12-05 04:29:02 +08:00
|
|
|
#edit-title {
|
2020-01-17 10:31:17 +08:00
|
|
|
padding-left: 2.25em;
|
|
|
|
}
|
|
|
|
.mini-tag-chooser {
|
|
|
|
margin-left: 0;
|
|
|
|
@include breakpoint(mobile-large, min-width) {
|
|
|
|
.selected-name {
|
|
|
|
max-width: 500px;
|
|
|
|
}
|
|
|
|
}
|
2017-12-05 04:29:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-31 05:29:28 +08:00
|
|
|
.topic-title-outlet {
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-02-19 10:17:31 +08:00
|
|
|
|
2015-04-28 03:55:10 +08:00
|
|
|
.has-pending-posts {
|
2019-01-04 01:03:01 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2015-04-28 03:55:10 +08:00
|
|
|
padding: 0.5em;
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--highlight-bg);
|
2017-09-26 22:27:24 +08:00
|
|
|
margin-top: 1em;
|
|
|
|
max-width: 757px;
|
2015-04-28 03:55:10 +08:00
|
|
|
}
|
2015-06-16 06:24:08 +08:00
|
|
|
|
2016-05-17 02:31:52 +08:00
|
|
|
.post-links-container {
|
|
|
|
@include unselectable;
|
|
|
|
clear: both;
|
2016-06-08 14:48:37 +08:00
|
|
|
.post-links {
|
|
|
|
margin-top: 1em;
|
2016-06-09 03:37:52 +08:00
|
|
|
padding-top: 1em;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-02-10 01:43:15 +08:00
|
|
|
li:last-of-type {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2016-06-08 14:48:37 +08:00
|
|
|
}
|
2016-05-17 02:31:52 +08:00
|
|
|
.expand-links {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2016-05-17 02:31:52 +08:00
|
|
|
}
|
|
|
|
.track-link {
|
2018-02-10 01:43:15 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
span:not(.badge) {
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2018-02-10 01:43:15 +08:00
|
|
|
}
|
2016-05-17 02:31:52 +08:00
|
|
|
}
|
|
|
|
ul {
|
2016-06-08 14:48:37 +08:00
|
|
|
margin: 0;
|
2016-05-17 02:31:52 +08:00
|
|
|
list-style: none;
|
|
|
|
li {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
a[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2016-06-08 14:48:37 +08:00
|
|
|
}
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-2);
|
2018-02-10 01:43:15 +08:00
|
|
|
margin: 0 0.5em 0 0;
|
2016-05-17 02:31:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a.reply-new {
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary);
|
2016-05-17 02:31:52 +08:00
|
|
|
border-radius: 20px;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: all linear 0.15s;
|
2016-05-17 02:31:52 +08:00
|
|
|
}
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--tertiary-low);
|
2016-05-17 02:31:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-05 20:31:43 +08:00
|
|
|
|
|
|
|
a.topic-featured-link {
|
2024-01-26 05:49:34 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2016-12-05 20:31:43 +08:00
|
|
|
text-transform: lowercase;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2016-12-05 20:31:43 +08:00
|
|
|
font-size: 0.875rem;
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2024-01-26 05:49:34 +08:00
|
|
|
font-size: var(--font-down-1);
|
|
|
|
margin-right: 0.25em;
|
2016-12-05 20:31:43 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-12 21:55:27 +08:00
|
|
|
|
|
|
|
.topic-area {
|
|
|
|
.pending-posts {
|
|
|
|
max-width: calc(
|
2022-10-26 02:45:37 +08:00
|
|
|
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
|
|
|
|
var(--topic-avatar-width)
|
2019-04-12 21:55:27 +08:00
|
|
|
);
|
|
|
|
.reviewable-item {
|
|
|
|
.post-body {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-09 00:52:36 +08:00
|
|
|
|
2020-04-29 00:24:24 +08:00
|
|
|
.published-page-notice {
|
2020-04-09 00:52:36 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding-bottom: 1em;
|
|
|
|
max-width: calc(
|
2022-10-26 02:45:37 +08:00
|
|
|
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
|
|
|
|
var(--topic-avatar-width)
|
2020-04-09 00:52:36 +08:00
|
|
|
);
|
|
|
|
align-items: center;
|
2020-06-17 18:42:20 +08:00
|
|
|
|
|
|
|
.is-public {
|
|
|
|
padding: 0.25em 0.5em;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-2);
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--tertiary);
|
|
|
|
color: var(--secondary);
|
2020-06-17 18:42:20 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
text-transform: lowercase;
|
|
|
|
}
|
2020-04-09 00:52:36 +08:00
|
|
|
}
|
2024-11-01 03:44:08 +08:00
|
|
|
|
|
|
|
a[data-clicks]::after {
|
|
|
|
@include click-counter-badge;
|
|
|
|
}
|