mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:03:40 +08:00
8dd883d4e5
* DEV: Refactor topic admin menu to use `<DMenu>` This PR also introduces a new plugin API to add buttons to the topic admin menu ```javascript api.addTopicAdminMenuButton((topic) => { return { action: () => { alert('Sunrise!'); }, icon: 'sun', className: 'sunrise-button', label: 'actions.rise', }; }); ``` The plugins that needed to be updated are: - [discourse-zoom](https://github.com/discourse/discourse-zoom/pull/73) - [discourse-salesforce](https://github.com/discourse/discourse-salesforce/pull/74) - [discourse-topic-noindex](https://github.com/discourse/discourse-topic-noindex/pull/11)
143 lines
2.3 KiB
SCSS
143 lines
2.3 KiB
SCSS
.post-info a {
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
.topic-meta-data-inside {
|
|
float: right;
|
|
margin-top: -38px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.post-info {
|
|
display: inline-block;
|
|
}
|
|
|
|
#topic-title {
|
|
h1 {
|
|
font-size: var(--font-up-3);
|
|
line-height: var(--line-height-medium);
|
|
a {
|
|
color: var(--primary);
|
|
vertical-align: middle;
|
|
word-wrap: break-word;
|
|
}
|
|
}
|
|
.title-category-wrapper {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.progress-back-container {
|
|
top: -100%; // above parent container + some extra space
|
|
}
|
|
|
|
#topic-progress-expanded {
|
|
border: 1px solid var(--primary-low);
|
|
padding: 5px;
|
|
background: var(--secondary);
|
|
|
|
position: absolute;
|
|
bottom: 34px;
|
|
width: 135px;
|
|
|
|
button.full {
|
|
width: 100%;
|
|
margin-bottom: 5px;
|
|
.d-icon {
|
|
display: block;
|
|
margin-top: 2px;
|
|
margin-bottom: 2px;
|
|
font-size: var(--font-up-2);
|
|
}
|
|
}
|
|
.jump-form {
|
|
input[type="text"] {
|
|
float: left;
|
|
width: 45px;
|
|
height: 20px;
|
|
text-align: center;
|
|
font-size: var(--font-up-1);
|
|
}
|
|
button.btn {
|
|
float: right !important;
|
|
width: 55px;
|
|
}
|
|
}
|
|
button.btn.jump-prompt {
|
|
margin: 0;
|
|
}
|
|
button.btn.jump-bottom {
|
|
margin-top: 5px;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.topic-error {
|
|
padding: 18px;
|
|
width: 90%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
font-size: var(--font-up-4);
|
|
line-height: var(--line-height-medium);
|
|
|
|
.topic-retry {
|
|
display: block;
|
|
margin-top: 20px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
sup sup,
|
|
sub sup,
|
|
sup sub,
|
|
sub sub {
|
|
top: 0;
|
|
}
|
|
|
|
// inline editing of title on mobile
|
|
#topic-title .title-wrapper {
|
|
position: relative;
|
|
float: none;
|
|
width: 100%;
|
|
|
|
input#edit-title {
|
|
width: 100%;
|
|
}
|
|
|
|
.select-kit.combo-box.category-chooser {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.topic-category {
|
|
margin-top: 0.25em;
|
|
}
|
|
}
|
|
|
|
// make mobile timeline top and bottom dates easier to select
|
|
.topic-timeline {
|
|
.start-date,
|
|
.now-date {
|
|
padding: 0.5em 0;
|
|
}
|
|
.timeline-scrollarea-wrapper .timeline-date-wrapper {
|
|
@include ellipsis;
|
|
}
|
|
.topic-category {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.topic-footer-main-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.container.posts .topic-navigation {
|
|
// better positioning for the docked progress bar on large screens using mobile view
|
|
grid-area: posts;
|
|
grid-row: 2;
|
|
}
|