discourse/app/assets/stylesheets/desktop/topic-list.scss

370 lines
5.8 KiB
SCSS
Raw Normal View History

2013-09-05 14:37:07 -05:00
// --------------------------------------------------
// Topic lists
// --------------------------------------------------
// List controls
// --------------------------------------------------
.list-controls {
2013-09-05 14:37:07 -05:00
.nav {
float: left;
margin-bottom: 18px;
2013-09-05 14:37:07 -05:00
}
2013-09-05 14:37:07 -05:00
.btn {
float: right;
margin-left: 8px;
margin-bottom: 10px;
2013-10-28 11:25:52 -05:00
font-size: 16px;
font-weight: normal;
2013-09-05 14:37:07 -05:00
}
2013-10-28 16:37:31 -05:00
a.badge-category {
padding: 3px 12px;
font-size: 16px;
2013-11-11 18:35:57 -06:00
&.category-dropdown-button {
height: 24px;
padding: 3px 9px;
i { height: 20px; }
2013-10-28 16:37:31 -05:00
}
}
2013-10-28 16:37:31 -05:00
.badge-category {
font-weight: normal;
text-transform: capitalize;
}
2013-09-05 14:37:07 -05:00
}
// Base list
// --------------------------------------------------
#topic-list {
2014-01-13 18:02:14 -06:00
margin: 0 0 10px;
.fa-thumb-tack {color: $primary;}
.fa-thumb-tack.unpinned {color: $primary;}
2014-06-20 03:26:59 -05:00
a.title {color: $primary;}
a.title:visited:not(.badge-notification) {color: scale-color($primary, $lightness: 35%);}
2013-09-05 14:37:07 -05:00
th,
td {
padding: 12px 5px;
2013-09-05 14:37:07 -05:00
&:first-of-type {
padding-left: 10px;
}
&:last-of-type {
padding-right: 10px;
}
}
th {
2014-05-12 00:02:05 -05:00
button i.fa {color: scale-color($primary, $lightness: 50%);}
2013-09-05 14:37:07 -05:00
}
button.bulk-select {
padding: 0;
background: transparent;
&:hover {
color: scale-color-diff();
}
}
2013-09-05 14:37:07 -05:00
.star {
width: 20px;
padding-right: 0;
2013-12-09 15:27:49 -06:00
.fa-star {
2013-09-05 14:37:07 -05:00
position: relative;
}
+ .main-link {
padding-left: 5px;
2013-09-05 14:37:07 -05:00
}
}
.main-link {
width: 495px;
}
.badge-notification {
position: relative;
top: -2px;
2013-09-05 14:37:07 -05:00
}
.category {
padding: 0 20px 0 20px;
min-width: 80px;
2013-09-05 14:37:07 -05:00
}
.posters {
min-width: 150px;
}
.participants {
min-width: 85px;
}
.posters, .participants {
2013-09-05 14:37:07 -05:00
> a {
float: left;
margin-right: 4px;
&:last-of-type {
margin-right: 0;
}
}
}
.avatar {
&.latest {
@include box-shadow(0 0 6px 1px desaturate(scale-color($tertiary, $lightness: 30%), 35%));
2013-09-05 14:37:07 -05:00
}
}
2013-11-11 18:35:57 -06:00
.sortable {
cursor: pointer;
&:hover {
background-color: scale-color-diff();
2013-11-11 18:35:57 -06:00
}
@include unselectable;
}
2013-09-05 14:37:07 -05:00
.likes {
2013-11-14 14:50:36 -06:00
width: 65px;
}
.views {
width: 65px;
}
.posts {
width: 65px;
2013-09-05 14:37:07 -05:00
}
.activity {
width: 60px;
2013-09-05 14:37:07 -05:00
}
.age {
width: 60px;
}
.with-year {
white-space: nowrap;
}
2013-09-05 14:37:07 -05:00
}
2014-01-13 18:02:14 -06:00
#list-area .top-lists h2 { margin: 5px 0 10px; }
2013-11-11 18:35:57 -06:00
#topic-list tbody tr.has-excerpt .star {
vertical-align: top;
margin-top: 3px;
2013-10-15 19:31:54 -05:00
}
#topic-list.categories {
2014-06-20 03:26:59 -05:00
a.title {color: $tertiary;}
a.title:visited:not(.badge-notification) {color: scale-color($tertiary, $lightness: 35%);}
th.posts {
2013-10-20 23:24:37 -05:00
position: relative;
}
> tbody > tr:nth-child(odd) {
background-color: darken($secondary, 3%);
}
> tbody > tr:nth-child(even) {
background-color: $secondary;
}
2013-10-20 23:24:37 -05:00
th .toggle-admin {
position: absolute;
padding: 3px 8px;
font-size: 12px;
right: -35px;
2013-10-20 23:24:37 -05:00
top: 4px;
}
th.latest, td.latest {
padding-left: 12px;
}
th.num {
width: 45px;
}
th.stats {
width: 90px;
}
td.latest {
vertical-align: top;
padding: 8px;
}
.last-user-info {
font-size: 12px;
}
.has-description {
td.category {
padding-top: 15px;
}
}
.category{
position: relative;
width: 45%;
2013-10-31 17:02:24 -05:00
h3 {
display: inline-block;
font-size: 18px;
a[href] {
color: $primary;
}
}
2013-10-31 17:02:24 -05:00
.subcategories {
margin-top: 10px;
}
.featured-users {
2013-12-18 10:50:51 -06:00
float: right;
margin-right: 13px;
}
.category-description {
margin-top: 10px;
}
.clear-badge {
color: $primary;
}
.badge-category.bigger {
padding: 6px 10px;
font-size: 14px;
}
}
.featured-topic {
margin: 6px 0;
a.last-posted-at, a.last-posted-at:visited {
color: scale-color($primary, $lightness: 50%);
}
}
.badge-category {
display: inline-block;
margin-top: 1px;
}
}
2013-09-05 14:37:07 -05:00
#topic-list-bottom {
margin: 20px 0;
}
// Misc. stuff
// --------------------------------------------------
#list-area {
2013-12-23 17:50:36 -06:00
h2 {
margin: 20px 0 10px;
}
2013-10-25 14:44:28 -05:00
}
.category-dropdown-menu {
2013-12-02 20:09:16 -06:00
max-height: 350px;
2013-10-28 16:37:31 -05:00
margin-top: 30px;
min-width: 152px;
2013-09-05 14:37:07 -05:00
}
2013-10-25 14:44:28 -05:00
2014-01-29 12:35:24 -06:00
#bulk-select {
position: fixed;
right: 20px;
padding: 5px;
background-color: $secondary;
2014-01-29 12:35:24 -06:00
}
button.dismiss-read {
float: right;
margin-bottom: 5px;
}
.category-notification-menu .dropdown-menu {
right: 0;
top: 30px;
bottom: auto;
left: auto;
}
.category-heading {
clear: both;
p {
line-height: 1.5em;
font-size: 1.5em;
}
}
.category-logo {
max-height: 150px;
float: left;
margin-bottom: 15px;
margin-right: 15px;
}
/* Tablet (portrait) ----------- */
@media only screen
and (max-width : 850px) {
.nav-pills {
> li > a {
font-size: 14px;
padding: 5px 10px ;
}
}
.list-controls {
padding: 0 5px;
.btn {
font-size: 14px
}
.category-dropdown-menu {
min-width: 139px;
}
a.badge-category {
font-size: 14px;
}
}
#topic-list {
.categories td.category {
padding-left: 10px;
}
td:first-of-type {
padding: 0;
}
th:first-of-type {
padding: 12px 5px;
}
th {
.btn .fa {
margin-right: 2px;
}
}
th, td {
padding: 12px 2px;
font-size: 13px;
}
.star {
padding: 12px 5px;
width: auto;
}
.main-link {
font-size: 15px;
padding: 12px 8px 12px 0px;
}
.likes {
width: auto;
}
.category {
min-width: 0;
padding: 0;
}
.topic-excerpt {
padding-right: 20px;
}
th.posters {
text-align: center;
}
.posters {
min-width: 0;
width: 50px;
a:not(.latest) {
display: none;
}
a.latest {
padding: 0 8px;
}
}
}
}