discourse/app/assets/stylesheets/common/base/_topic-list.scss

319 lines
5.3 KiB
SCSS

.topic-list.shared-drafts {
margin-bottom: 1.5em;
}
.show-more {
width: 100%;
z-index: z("base");
&.has-topics {
position: absolute;
top: 7px;
}
}
.list-controls {
clear: both;
margin-bottom: 5px;
.combo-box .combo-box-header {
background: $secondary;
color: $primary;
border: 1px solid $primary-medium;
font-size: $font-0;
transition: none;
height: 10px; // IE11 needs any height here for vertical centering, overriden elsewhere by min-height
}
.select-kit {
align-self: center;
.select-kit-collection {
font-size: $font-down-1;
max-height: 40vh;
.texts,
.icons {
font-size: $font-up-1;
}
}
&.categories-admin-dropdown,
&.tags-admin-dropdown,
&.category-notifications-button,
&.tag-notifications-button {
float: right;
button {
display: inline-block;
}
}
}
.category-heading {
max-width: 100%;
}
}
.topic-list-item.visited,
.latest-topic-list-item.visited,
.category-topic-link.visited {
a.title:not(.badge-notification) {
color: $primary-medium;
}
}
.topic-list-main-link {
font-size: $font-up-1;
a.title {
padding: 15px 0;
word-break: break-word;
color: $primary;
}
.anon & {
a.title:visited:not(.badge-notification) {
color: $primary-medium;
}
}
a.title.visited:not(.badge-notification) {
color: $primary-medium;
}
}
.topic-list {
width: 100%;
border-collapse: collapse;
> tbody > tr {
&.has-excerpt .star {
vertical-align: top;
margin-top: 2px;
}
&.last-visit {
border-bottom: none;
}
.topic-list-separator {
text-align: center;
}
}
.topic-list-item-separator {
border: none;
td {
border-bottom: 1px solid $danger-medium;
line-height: 0.1em;
padding: 0;
text-align: center;
}
td span {
background-color: $secondary;
color: $danger-medium;
padding: 0 8px;
font-size: $font-down-1;
}
}
th,
td {
line-height: $line-height-large;
text-align: left;
vertical-align: middle;
}
th {
button .d-icon {
color: $primary-medium;
}
}
td {
color: $primary-medium;
font-size: $font-0;
}
.main-link {
@extend .topic-list-main-link;
.raw-topic-link > * {
pointer-events: none;
}
}
.unread-indicator {
&.read {
display: none;
}
.d-icon {
vertical-align: middle;
font-size: $font-down-5;
}
}
.link-bottom-line {
font-size: $font-down-1;
display: flex;
flex-wrap: wrap;
align-items: center;
.discourse-tags {
flex-wrap: wrap;
// IE11 is being very stubborn but this is only protection for topics with
// a very excessive number of extra long tags - edge case.
-ms-flex: 1 0 0px;
}
a.badge-wrapper.box,
a.discourse-tag.box {
padding-top: 0;
padding-bottom: 0;
}
.discourse-tag.simple:after,
.discourse-tag.box {
margin-right: 0.25em;
}
}
.topic-featured-link {
padding-left: 5px;
}
.topic-excerpt {
font-size: $font-down-1;
margin-top: 5px;
color: $primary-high;
word-wrap: break-word;
line-height: $line-height-large;
padding-right: 20px;
}
.topic-statuses:empty {
display: none;
}
.num {
text-align: center;
a:not(.badge-posts) {
color: inherit;
}
a.badge-posts {
font-weight: bold;
}
}
.num.posts {
a {
padding: 15px 5px;
}
}
.num.activity {
a {
padding: 15px 5px;
}
}
}
.heatmap-high,
.heatmap-high a {
color: #fe7a15 !important;
}
.heatmap-med,
.heatmap-med a {
color: #cf7721 !important;
}
.heatmap-low,
.heatmap-low a {
color: #9b764f !important;
}
.loading .topic-list {
border: 0;
box-shadow: none;
tr {
background-color: transparent;
}
}
#list-area {
margin-bottom: 100px;
.empty-topic-list {
padding: 10px;
}
.unseen {
background-color: transparent;
padding: 0;
border: 0;
color: $danger-medium;
font-size: $font-0;
cursor: default;
}
}
.topic-list {
.alert {
margin-bottom: 0;
font-size: $font-0;
}
.spinner {
margin-top: 40px;
}
}
ol.category-breadcrumb.hidden {
display: none;
}
ol.category-breadcrumb {
display: block;
float: left;
list-style: none;
margin: 0 10px 10px 0;
padding: 0;
li {
float: left;
margin-right: 5px;
}
.bread-crumbs-right-outlet {
float: left;
}
}
.d-icon-thumbtack.unpinned {
@include fa-rotate(180deg, 1);
}
.top-title-buttons {
display: inline;
button {
margin-right: 0.5em;
}
}
div.education {
color: dark-light-choose($primary-medium, $secondary-medium);
.badge-notification.new-posts {
vertical-align: text-bottom;
}
}
.list-cell {
padding: 12px 5px;
color: dark-light-choose($primary-medium, $secondary-high);
}
.table-heading {
@extend .list-cell;
border-bottom: 3px solid $primary-low;
}
// This is not what we want:
//
// This is an overly-long topic title that would break just right
// *
//
// Instead, we want the line to break like this:
//
// This is an overly-long topic title that would break just
// right *
.topic-post-badges {
white-space: nowrap;
align-self: center;
line-height: $line-height-medium;
}