2013-09-06 03:37:07 +08:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Topic lists
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// List controls
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.list-controls {
|
2013-09-06 03:37:07 +08:00
|
|
|
.nav {
|
|
|
|
float: left;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
.btn {
|
|
|
|
float: right;
|
|
|
|
margin-left: 8px;
|
2013-10-31 21:35:49 +08:00
|
|
|
margin-bottom: 10px;
|
2013-10-29 00:25:52 +08:00
|
|
|
font-size: 16px;
|
|
|
|
font-weight: normal;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-29 05:37:31 +08:00
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
a.badge-category {padding: 3px 12px; font-size: 16px;
|
2013-11-05 01:45:18 +08:00
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
&.category-dropdown-button {
|
2013-11-05 01:45:18 +08:00
|
|
|
padding: 3px 9px 2px 9px;
|
|
|
|
|
|
|
|
i {height: 20px;}
|
2013-10-29 05:37:31 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2013-10-29 12:37:18 +08:00
|
|
|
|
2013-10-29 05:37:31 +08:00
|
|
|
.badge-category {
|
2013-11-01 06:02:24 +08:00
|
|
|
|
2013-10-29 05:37:31 +08:00
|
|
|
font-weight: normal;
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#category-filter {
|
|
|
|
.has-icon span:before {
|
|
|
|
margin-right: 4px;
|
|
|
|
font: 15px/0.9 "FontAwesome";
|
|
|
|
}
|
|
|
|
.has-icon .favorited:before {
|
|
|
|
content: "\f005";
|
|
|
|
}
|
|
|
|
.has-icon .unread:before {
|
|
|
|
content: "\f02e";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Base list
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
#topic-list {
|
2013-10-29 00:25:52 +08:00
|
|
|
border: 1px solid #ddd;
|
2013-09-06 03:37:07 +08:00
|
|
|
width: 100%;
|
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
2013-10-29 00:25:52 +08:00
|
|
|
a.title:visited:not(.badge-notification) {color: #888;}
|
2013-10-22 04:23:55 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
tbody tr {
|
|
|
|
&:nth-child(even) {
|
2013-10-29 00:25:52 +08:00
|
|
|
background-color: #f8f8f8;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&.archived a {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
&.has-excerpt .star {
|
|
|
|
vertical-align: top;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
&.category-description {
|
|
|
|
td {
|
2013-10-20 06:18:25 +08:00
|
|
|
color: $nav-pills-border-color-active;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.highlighted {
|
|
|
|
background-color: $highlight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
th,
|
|
|
|
td {
|
2013-11-05 01:45:18 +08:00
|
|
|
padding: 9px 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
line-height: 1.25;
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: middle;
|
|
|
|
&:first-of-type {
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
color: $topic-list-th-color;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
2013-10-29 00:25:52 +08:00
|
|
|
background: #eee;
|
2013-11-01 06:02:24 +08:00
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
td {
|
|
|
|
//border-top: 1px solid $topic-list-td-border-color;
|
|
|
|
color: $topic-list-td-color;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.star {
|
|
|
|
width: 20px;
|
|
|
|
padding-right: 0;
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa-star {
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
+ .main-link {
|
2013-11-05 01:45:18 +08:00
|
|
|
padding-left: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.main-link {
|
|
|
|
width: 495px;
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
i.score {
|
|
|
|
color: green;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-excerpt {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-top: 8px;
|
|
|
|
color: $dark_gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rank-details {
|
|
|
|
background-color: #eee;
|
|
|
|
padding: 6px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include medium-width {
|
|
|
|
.main-link {
|
2013-12-04 23:38:01 +08:00
|
|
|
width: 300px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-12-04 23:38:01 +08:00
|
|
|
|
|
|
|
@include small-width {
|
2013-09-06 03:37:07 +08:00
|
|
|
.main-link {
|
2013-12-04 23:38:01 +08:00
|
|
|
width: 300px;
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-12-04 23:38:01 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-12-04 23:38:01 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.topic-statuses:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.topic-status {
|
|
|
|
margin-right: 4px;
|
|
|
|
padding: 0;
|
|
|
|
&:last-of-type {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-notification {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
.category {
|
|
|
|
width: 140px;
|
|
|
|
}
|
|
|
|
.posters {
|
2013-12-04 23:38:01 +08:00
|
|
|
max-width: 220px;
|
|
|
|
min-width: 150px;
|
2013-09-06 03:37:07 +08:00
|
|
|
> a {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
|
|
|
&:last-of-type {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.avatar {
|
|
|
|
&.latest {
|
|
|
|
@include box-shadow(0 0 6px 1px desaturate(lighten($link_color, 18%), 35%));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.num {
|
|
|
|
text-align: center;
|
|
|
|
a:not(.badge-posts) {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
2013-11-12 08:35:57 +08:00
|
|
|
.sortable {
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
|
|
background-color: #e6e6e6;
|
|
|
|
}
|
|
|
|
@include unselectable;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
.likes {
|
2013-11-15 04:50:36 +08:00
|
|
|
width: 65px;
|
|
|
|
}
|
|
|
|
.views {
|
|
|
|
width: 65px;
|
|
|
|
}
|
|
|
|
.posts {
|
|
|
|
width: 65px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.activity {
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
.age {
|
|
|
|
width: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
|
2013-10-21 07:20:16 +08:00
|
|
|
#topic-list tbody tr.has-excerpt .star {
|
2013-10-20 06:18:25 +08:00
|
|
|
vertical-align: top;
|
|
|
|
margin-top: 3px;
|
2013-10-16 08:31:54 +08:00
|
|
|
}
|
|
|
|
|
2013-10-21 07:20:16 +08:00
|
|
|
#topic-list.categories {
|
2013-10-21 12:24:37 +08:00
|
|
|
th.latest {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
th .toggle-admin {
|
|
|
|
position: absolute;
|
|
|
|
padding: 3px 8px;
|
|
|
|
font-size: 12px;
|
|
|
|
right: 5px;
|
|
|
|
top: 4px;
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
th.latest, td.latest {
|
|
|
|
padding-left: 12px;
|
|
|
|
}
|
|
|
|
th.num {
|
|
|
|
width: 45px;
|
|
|
|
}
|
|
|
|
.last-user-info {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2013-11-01 06:02:24 +08:00
|
|
|
|
2013-12-13 04:51:21 +08:00
|
|
|
.has-description td.category {
|
2013-11-01 06:02:24 +08:00
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
|
2013-12-13 04:51:21 +08:00
|
|
|
.has-description {
|
|
|
|
td.category {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-21 07:20:16 +08:00
|
|
|
.category{
|
|
|
|
position: relative;
|
|
|
|
width: 55%;
|
2013-11-01 06:02:24 +08:00
|
|
|
|
|
|
|
.subcategories {
|
|
|
|
margin-top: 10px;
|
|
|
|
.badge-category {
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
.featured-users {
|
2013-12-13 04:51:21 +08:00
|
|
|
margin-right: 13px;
|
2013-10-21 07:20:16 +08:00
|
|
|
}
|
|
|
|
.category-description {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
.badge-category {
|
|
|
|
padding: 6px 10px;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
2013-12-12 04:23:41 +08:00
|
|
|
|
|
|
|
.featured-topic {
|
|
|
|
margin: 6px 0;
|
|
|
|
a.last-posted-at, a.last-posted-at:visited {
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
// Category list
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.category-column {
|
|
|
|
float: left;
|
|
|
|
width: 550px;
|
|
|
|
&.first {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include medium-width {
|
|
|
|
.category-column {
|
|
|
|
width: 493px;
|
|
|
|
&.first {
|
|
|
|
margin-right: 9px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include small-width {
|
|
|
|
.category-column {
|
|
|
|
width: 470px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.category-list-item {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
#topic-list tbody tr:nth-child(even) {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
2013-11-01 06:02:24 +08:00
|
|
|
th .badge-category {
|
2013-09-06 03:37:07 +08:00
|
|
|
float: left;
|
|
|
|
margin: 1px 4px 0 0;
|
|
|
|
}
|
|
|
|
.posters {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
> footer {
|
2013-10-29 00:25:52 +08:00
|
|
|
border: 1px solid #ddd;
|
2013-09-06 03:37:07 +08:00
|
|
|
border-top: 0;
|
|
|
|
padding: 7px 10px;
|
|
|
|
background-color: lighten($topic-list-th-background-color, 2%);
|
|
|
|
figure {
|
|
|
|
float: left;
|
|
|
|
margin: 3px 7px 0 0;
|
|
|
|
color: lighten($topic-list-th-color, 5%);
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
text-shadow: 0 1px 0 $white;
|
|
|
|
}
|
|
|
|
figcaption {
|
|
|
|
display: inline;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
.btn {
|
|
|
|
float: right;
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Loading
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// List
|
|
|
|
|
|
|
|
.loading #topic-list {
|
|
|
|
border: 0;
|
|
|
|
@include box-shadow(none);
|
|
|
|
tr {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Topics
|
|
|
|
|
|
|
|
#topic-list-bottom {
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.topics-loading {
|
|
|
|
width: 200px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 10px 0 10px 43px;
|
|
|
|
color: $white;
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 25px;
|
|
|
|
background: {
|
|
|
|
color: $black;
|
|
|
|
image: image-url("spinner_96_w.gif");
|
|
|
|
repeat: no-repeat;
|
|
|
|
position: 10px 50%;
|
|
|
|
size: 25px;
|
|
|
|
};
|
|
|
|
@include border-radius-all(12px);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Misc. stuff
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.list-controls {
|
2013-10-26 03:23:29 +08:00
|
|
|
.home {
|
2013-10-29 03:34:38 +08:00
|
|
|
background-color: #eee;
|
|
|
|
color: #333;
|
2013-10-26 03:23:29 +08:00
|
|
|
}
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.badge-category {
|
2013-10-26 03:23:29 +08:00
|
|
|
padding: 4px 10px;
|
2013-10-25 11:18:34 +08:00
|
|
|
display: inline-block;
|
2013-10-26 03:23:29 +08:00
|
|
|
line-height: 24px;
|
2013-10-25 11:18:34 +08:00
|
|
|
float: left;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-26 03:23:29 +08:00
|
|
|
.category-dropdown-button {
|
|
|
|
border-left: 1px solid rgba(0, 0, 0, 0.15);
|
|
|
|
font-size: 16px;
|
|
|
|
width: 10px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 0.8;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
#list-area {
|
|
|
|
margin-bottom: 300px;
|
2013-10-20 06:18:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
.topic-statuses .topic-status i {font-size: 15px;}
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.empty-topic-list {
|
|
|
|
padding: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
.unseen {
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
color: lighten($red, 10%);
|
|
|
|
font-size: 13px;
|
|
|
|
cursor: default;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
}
|
|
|
|
#topic-list {
|
|
|
|
.alert {
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
.spinner {
|
|
|
|
margin-top: 40px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
span.posted {
|
|
|
|
display: inline-block;
|
|
|
|
text-indent: -9999em;
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
background: {
|
|
|
|
image: image-url("posted.png");
|
|
|
|
};
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2013-10-26 03:44:28 +08:00
|
|
|
ol.category-breadcrumb {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
padding: 0;
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2013-10-26 03:44:28 +08:00
|
|
|
li {
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
}
|
|
|
|
|
2013-10-26 03:23:29 +08:00
|
|
|
.category-dropdown-menu {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
position: absolute;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
background-color: white;
|
2013-12-03 10:09:16 +08:00
|
|
|
max-height: 350px;
|
2013-11-05 01:45:18 +08:00
|
|
|
padding: 8px 7px 0 7px;
|
2013-10-26 03:23:29 +08:00
|
|
|
z-index: 100;
|
2013-10-29 05:37:31 +08:00
|
|
|
margin-top: 30px;
|
2013-12-03 10:09:16 +08:00
|
|
|
min-width: 138px;
|
2013-11-05 01:45:18 +08:00
|
|
|
|
2013-10-26 03:23:29 +08:00
|
|
|
|
2013-10-29 12:37:18 +08:00
|
|
|
a.badge-category {
|
2013-10-26 03:23:29 +08:00
|
|
|
font-size: 13px;
|
2013-10-29 12:37:18 +08:00
|
|
|
font-weight: bold;
|
2013-11-05 01:45:18 +08:00
|
|
|
padding: 4px 0;
|
2013-10-26 03:23:29 +08:00
|
|
|
float: none;
|
2013-10-29 12:37:18 +08:00
|
|
|
line-height: 19px;
|
|
|
|
text-transform: none;
|
2013-11-05 01:45:18 +08:00
|
|
|
width: 100%;
|
|
|
|
min-width: 102px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
margin-right: 20px;
|
|
|
|
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-26 03:23:29 +08:00
|
|
|
|
2013-10-29 05:37:31 +08:00
|
|
|
|
2013-10-26 03:23:29 +08:00
|
|
|
div {
|
|
|
|
margin-bottom: 10px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
|