2013-09-06 03:37:07 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
// 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;
|
2014-03-19 21:38:35 +08:00
|
|
|
margin-bottom: 18px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-01-17 11:38:08 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.btn {
|
|
|
|
float: right;
|
|
|
|
margin-left: 8px;
|
2013-10-31 21:35:49 +08:00
|
|
|
margin-bottom: 10px;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.143em;
|
2013-10-29 00:25:52 +08:00
|
|
|
font-weight: normal;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-29 05:37:31 +08:00
|
|
|
|
2014-01-17 11:38:08 +08:00
|
|
|
a.badge-category {
|
|
|
|
padding: 3px 12px;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.143em;
|
2013-11-05 01:45:18 +08:00
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
&.category-dropdown-button {
|
2014-01-25 01:30:42 +08:00
|
|
|
height: 24px;
|
2014-01-17 11:38:08 +08:00
|
|
|
padding: 3px 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 {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Base list
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-07-30 05:38:36 +08:00
|
|
|
.topic-list {
|
2014-01-14 08:02:14 +08:00
|
|
|
margin: 0 0 10px;
|
2014-05-06 13:50:51 +08:00
|
|
|
.fa-thumb-tack {color: $primary;}
|
|
|
|
.fa-thumb-tack.unpinned {color: $primary;}
|
2014-06-20 16:26:59 +08:00
|
|
|
a.title {color: $primary;}
|
2015-01-21 08:39:11 +08:00
|
|
|
a.title:visited:not(.badge-notification), .fa-bookmark {color: scale-color($primary, $lightness: 50%);}
|
2013-09-06 03:37:07 +08:00
|
|
|
th,
|
|
|
|
td {
|
2014-03-08 13:55:02 +08:00
|
|
|
padding: 12px 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
&:first-of-type {
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
th {
|
2014-05-12 13:02:05 +08:00
|
|
|
button i.fa {color: scale-color($primary, $lightness: 50%);}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2014-07-28 22:33:23 +08:00
|
|
|
> tbody > tr {
|
2014-12-05 06:05:47 +08:00
|
|
|
&:nth-child(odd) {
|
2014-07-28 22:33:23 +08:00
|
|
|
background-color: darken($secondary, 3%);
|
|
|
|
}
|
2014-12-05 06:05:47 +08:00
|
|
|
&:nth-child(even) {
|
2014-07-28 22:33:23 +08:00
|
|
|
background-color: $secondary;
|
|
|
|
}
|
2014-08-22 22:45:51 +08:00
|
|
|
&.highlighted {
|
2014-11-07 00:33:30 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 90%, -41%);
|
2014-08-22 22:45:51 +08:00
|
|
|
}
|
2014-07-28 22:33:23 +08:00
|
|
|
}
|
2014-01-29 06:13:13 +08:00
|
|
|
button.bulk-select {
|
|
|
|
padding: 0;
|
|
|
|
background: transparent;
|
|
|
|
&:hover {
|
2014-05-19 13:17:59 +08:00
|
|
|
color: scale-color-diff();
|
2014-01-29 06:13:13 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
position: relative;
|
2014-03-08 13:55:02 +08:00
|
|
|
top: -2px;
|
2014-09-04 09:07:15 +08:00
|
|
|
&.new-topic {
|
|
|
|
top: 0px;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-09-04 09:07:15 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.category {
|
2014-03-08 13:55:02 +08:00
|
|
|
padding: 0 20px 0 20px;
|
|
|
|
min-width: 80px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.posters {
|
2014-11-13 17:02:37 +08:00
|
|
|
// we know there are up to 5 avatars of fixed size
|
|
|
|
// will be overridden by media width queries on narrow displays to 1 avatar's width
|
|
|
|
width: 145px;
|
|
|
|
min-width: 145px;
|
2014-05-12 15:32:49 +08:00
|
|
|
}
|
2014-11-13 17:02:37 +08:00
|
|
|
.posters {
|
2013-09-06 03:37:07 +08:00
|
|
|
> a {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
|
|
|
&:last-of-type {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.avatar {
|
2014-09-19 10:34:47 +08:00
|
|
|
&.latest:not(.single) {
|
2014-10-11 06:02:46 +08:00
|
|
|
box-shadow: 0 0 6px 1px desaturate(scale-color($tertiary, $lightness: 30%), 35%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
2014-06-24 04:11:55 +08:00
|
|
|
|
2013-11-12 08:35:57 +08:00
|
|
|
.sortable {
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
2014-08-06 21:31:13 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -75%);
|
2013-11-12 08:35:57 +08:00
|
|
|
}
|
|
|
|
@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
|
|
|
}
|
2015-01-07 15:50:28 +08:00
|
|
|
|
|
|
|
.post-actions {
|
|
|
|
clear: both;
|
|
|
|
width: auto;
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
text-align: left;
|
|
|
|
font-size: 12px;
|
|
|
|
margin-top: 5px;
|
|
|
|
.fa {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
font-size: 11px;
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
margin-right: 3px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
.activity {
|
2014-01-11 02:56:27 +08:00
|
|
|
width: 60px;
|
2014-11-06 22:06:21 +08:00
|
|
|
&:lang(zh_CN) {
|
2014-12-15 22:33:37 +08:00
|
|
|
width: 80px;
|
2014-11-06 22:06:21 +08:00
|
|
|
}
|
2014-08-16 04:39:34 +08:00
|
|
|
span {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.age {
|
|
|
|
width: 60px;
|
|
|
|
}
|
2014-01-11 02:56:27 +08:00
|
|
|
.with-year {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2014-07-30 05:38:36 +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
|
|
|
}
|
|
|
|
|
2014-07-30 05:38:36 +08:00
|
|
|
.topic-list.categories {
|
2014-08-05 08:44:01 +08:00
|
|
|
a.title {
|
|
|
|
color: $tertiary;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-08-05 08:44:01 +08:00
|
|
|
}
|
2014-06-20 16:26:59 +08:00
|
|
|
a.title:visited:not(.badge-notification) {color: scale-color($tertiary, $lightness: 35%);}
|
|
|
|
|
2013-12-13 06:27:25 +08:00
|
|
|
th.posts {
|
2013-10-21 12:24:37 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
2014-07-28 22:33:23 +08:00
|
|
|
> tbody > tr {
|
|
|
|
&:nth-child(odd) {
|
|
|
|
background-color: darken($secondary, 3%);
|
|
|
|
}
|
|
|
|
&:nth-child(even) {
|
|
|
|
background-color: $secondary;
|
|
|
|
}
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2013-12-14 04:15:51 +08:00
|
|
|
th.stats {
|
|
|
|
width: 90px;
|
|
|
|
}
|
2013-12-21 05:51:39 +08:00
|
|
|
td.latest {
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
.last-user-info {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.857em;
|
2013-10-21 07:20:16 +08:00
|
|
|
}
|
2013-12-13 04:51:21 +08:00
|
|
|
.has-description {
|
|
|
|
td.category {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
.category{
|
2013-12-14 04:15:51 +08:00
|
|
|
width: 45%;
|
2013-11-01 06:02:24 +08:00
|
|
|
|
2014-06-20 05:11:21 +08:00
|
|
|
h3 {
|
|
|
|
display: inline-block;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.286em;
|
2015-01-07 05:42:36 +08:00
|
|
|
i {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2014-06-20 05:11:21 +08:00
|
|
|
a[href] {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
2013-11-01 06:02:24 +08:00
|
|
|
.subcategories {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
.category-description {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2014-06-20 05:11:21 +08:00
|
|
|
.clear-badge {
|
|
|
|
color: $primary;
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
}
|
2013-12-12 04:23:41 +08:00
|
|
|
|
|
|
|
.featured-topic {
|
2014-08-05 08:44:01 +08:00
|
|
|
margin: 10px 0 0;
|
2014-07-13 17:45:50 +08:00
|
|
|
/* topic status glyphs */
|
|
|
|
i {
|
|
|
|
color: scale-color($primary, $lightness: 50%) !important;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-07-13 17:45:50 +08:00
|
|
|
}
|
2013-12-12 04:23:41 +08:00
|
|
|
a.last-posted-at, a.last-posted-at:visited {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 50%);
|
2013-12-12 04:23:41 +08:00
|
|
|
}
|
2014-08-05 08:44:01 +08:00
|
|
|
.badge {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.714em;
|
2014-08-05 08:44:01 +08:00
|
|
|
top: -1px;
|
|
|
|
}
|
2013-12-12 04:23:41 +08:00
|
|
|
}
|
2013-12-21 05:51:39 +08:00
|
|
|
|
2014-08-05 08:44:01 +08:00
|
|
|
.category .badge-category {
|
2013-12-21 05:51:39 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2013-10-21 07:20:16 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2014-07-30 05:38:36 +08:00
|
|
|
.topic-list-bottom {
|
2013-09-06 03:37:07 +08:00
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Misc. stuff
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-12-10 16:33:41 +08:00
|
|
|
#list-area .top-lists h2 { margin: 5px 0 10px; }
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
#list-area {
|
2013-12-24 07:50:36 +08:00
|
|
|
h2 {
|
|
|
|
margin: 20px 0 10px;
|
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
}
|
|
|
|
|
2013-10-26 03:23:29 +08:00
|
|
|
.category-dropdown-menu {
|
2013-12-03 10:09:16 +08:00
|
|
|
max-height: 350px;
|
2013-10-29 05:37:31 +08:00
|
|
|
margin-top: 30px;
|
2014-06-25 02:27:48 +08:00
|
|
|
min-width: 152px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
|
2014-01-30 02:35:24 +08:00
|
|
|
#bulk-select {
|
|
|
|
position: fixed;
|
|
|
|
right: 20px;
|
|
|
|
padding: 5px;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2014-01-30 02:35:24 +08:00
|
|
|
}
|
2014-02-22 01:31:54 +08:00
|
|
|
|
|
|
|
button.dismiss-read {
|
|
|
|
float: right;
|
|
|
|
margin-bottom: 5px;
|
2014-08-08 14:29:51 +08:00
|
|
|
margin-left: 10px;
|
2014-02-22 01:31:54 +08:00
|
|
|
}
|
2014-05-30 02:15:56 +08:00
|
|
|
|
|
|
|
.category-notification-menu .dropdown-menu {
|
|
|
|
right: 0;
|
|
|
|
top: 30px;
|
|
|
|
bottom: auto;
|
|
|
|
left: auto;
|
|
|
|
}
|
2014-06-28 05:06:59 +08:00
|
|
|
|
|
|
|
.category-heading {
|
|
|
|
clear: both;
|
2014-07-05 03:35:02 +08:00
|
|
|
p {
|
|
|
|
line-height: 1.5em;
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
2014-06-28 05:06:59 +08:00
|
|
|
}
|
2014-12-15 22:39:13 +08:00
|
|
|
|
2014-06-28 05:06:59 +08:00
|
|
|
.category-logo {
|
|
|
|
max-height: 150px;
|
|
|
|
float: left;
|
|
|
|
margin-bottom: 15px;
|
2014-07-05 03:35:02 +08:00
|
|
|
margin-right: 15px;
|
2014-06-28 05:06:59 +08:00
|
|
|
}
|
2014-07-10 07:56:35 +08:00
|
|
|
|
|
|
|
/* Tablet (portrait) ----------- */
|
|
|
|
|
2014-07-25 00:21:22 +08:00
|
|
|
@media all
|
2014-07-10 07:56:35 +08:00
|
|
|
and (max-width : 850px) {
|
|
|
|
|
|
|
|
.nav-pills {
|
|
|
|
> li > a {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em;
|
2014-07-10 07:56:35 +08:00
|
|
|
padding: 5px 10px ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.list-controls {
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
|
|
.btn {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em
|
2014-07-10 07:56:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.category-dropdown-menu {
|
|
|
|
min-width: 139px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.badge-category {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em;
|
2014-07-10 07:56:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-07-30 05:38:36 +08:00
|
|
|
.topic-list {
|
2014-07-10 07:56:35 +08:00
|
|
|
.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;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-07-10 07:56:35 +08:00
|
|
|
}
|
|
|
|
.star {
|
|
|
|
padding: 12px 5px;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.main-link {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1.071em;
|
2014-07-10 07:56:35 +08:00
|
|
|
padding: 12px 8px 12px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.likes {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.category {
|
|
|
|
min-width: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.topic-excerpt {
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2014-08-20 04:20:55 +08:00
|
|
|
th.posters {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.posters {
|
2014-07-10 07:56:35 +08:00
|
|
|
min-width: 0;
|
|
|
|
width: 50px;
|
|
|
|
a:not(.latest) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
a.latest {
|
|
|
|
padding: 0 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|