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

293 lines
4.8 KiB
SCSS
Raw Normal View History

.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;
2018-10-01 11:59:21 -04:00
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;
}
}
}
}
.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 {
2018-01-12 17:27:38 -05:00
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 {
2016-08-30 22:32:39 -04:00
border-bottom: none;
}
.topic-list-separator {
text-align: center;
}
}
.topic-list-item-separator {
border: none;
td {
2018-10-05 15:28:10 -04:00
border-bottom: 1px solid $danger-medium;
2016-08-30 22:32:39 -04:00
line-height: 0.1em;
padding: 0;
2016-08-30 22:32:39 -04:00
text-align: center;
}
td span {
background-color: $secondary;
2018-10-05 15:28:10 -04:00
color: $danger-medium;
padding: 0 8px;
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
}
}
th,
td {
2018-01-12 17:27:38 -05:00
line-height: $line-height-large;
text-align: left;
vertical-align: middle;
}
th {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
font-weight: normal;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
button .d-icon {
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
td {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
2018-01-12 17:27:38 -05:00
font-size: $font-0;
}
.main-link {
@extend .topic-list-main-link;
}
.link-bottom-line {
font-size: $font-down-1;
display: flex;
align-items: center;
a.badge-wrapper.box,
a.discourse-tag.box {
2018-12-07 20:01:38 -05:00
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 {
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
margin-top: 5px;
color: $primary-high;
2014-06-24 04:01:37 -04:00
word-wrap: break-word;
2018-01-12 17:27:38 -05:00
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;
2017-10-10 16:07:46 -04:00
color: $danger-medium;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
cursor: default;
}
}
.topic-list {
.alert {
margin-bottom: 0;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
}
.spinner {
margin-top: 40px;
}
}
ol.category-breadcrumb.hidden {
display: none;
}
ol.category-breadcrumb {
display: block;
float: left;
list-style: none;
2018-04-24 19:27:17 -04:00
margin: 0 10px 10px 0;
padding: 0;
li {
float: left;
margin-right: 5px;
}
2015-07-24 14:04:37 -04:00
.bread-crumbs-right-outlet {
float: left;
}
}
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.d-icon-thumbtack.unpinned {
@include fa-rotate(180deg, 1);
2014-04-10 04:34:50 -04:00
}
.top-title-buttons {
display: inline;
button {
margin-right: 0.5em;
}
}
2014-08-30 01:54:07 -04:00
div.education {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
.list-cell {
padding: 12px 5px;
2017-10-10 16:07:46 -04:00
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;
}