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-18 04:07:02 +08:00
|
|
|
margin: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
.nav {
|
|
|
|
float: left;
|
2013-09-18 04:07:02 +08:00
|
|
|
margin-right: 15px;
|
|
|
|
li {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.btn {
|
|
|
|
float: right;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-15 01:48:57 +08:00
|
|
|
#navigation-bar {
|
2013-09-06 03:37:07 +08:00
|
|
|
.has-icon span:before {
|
|
|
|
margin-right: 4px;
|
|
|
|
font: 15px/0.9 "FontAwesome";
|
|
|
|
}
|
2014-01-10 05:22:54 +08:00
|
|
|
.has-icon .starred:before {
|
2013-09-06 03:37:07 +08:00
|
|
|
content: "\f005";
|
|
|
|
}
|
|
|
|
.has-icon .unread:before {
|
|
|
|
content: "\f02e";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-18 04:07:02 +08:00
|
|
|
.list-container .full-width {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
// Base list
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
#topic-list {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
2013-09-18 04:07:02 +08:00
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
border-bottom: 1px solid #ddd;
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2013-12-20 05:51:18 +08:00
|
|
|
> tbody > tr {
|
2013-09-06 03:37:07 +08:00
|
|
|
background-color: $white;
|
|
|
|
&:nth-child(even) {
|
2013-09-18 05:02:10 +08:00
|
|
|
background-color: darken($white, 4%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&.archived a {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
&.category-description {
|
|
|
|
td {
|
2013-10-18 06:21:27 +08:00
|
|
|
color: #000;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.highlighted {
|
|
|
|
background-color: $highlight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 7px 5px;
|
|
|
|
line-height: 1.25;
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: middle;
|
|
|
|
&:first-of-type {
|
2013-09-18 04:07:02 +08:00
|
|
|
padding-left: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
&:last-of-type {
|
2013-09-18 04:07:02 +08:00
|
|
|
padding-right: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
color: $topic-list-th-color;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
|
|
|
&:first-of-type {
|
|
|
|
@include border-radius-all(4px 0 0 0);
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
@include border-radius-all(0 4px 0 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
color: $topic-list-td-color;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
.main-link {
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
i.score {
|
|
|
|
color: green;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-excerpt {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-top: 8px;
|
|
|
|
color: $dark_gray;
|
2014-01-19 07:49:45 +08:00
|
|
|
word-break: break-word;
|
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;
|
|
|
|
}
|
2013-09-20 04:25:25 +08:00
|
|
|
|
|
|
|
.topic-item-stats {
|
|
|
|
margin-top: 8px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-09-20 04:25:25 +08:00
|
|
|
|
|
|
|
.topic-item-stats {
|
|
|
|
.category, .num, .last-poster {
|
2013-09-06 03:37:07 +08:00
|
|
|
float: left;
|
2013-09-20 04:25:25 +08:00
|
|
|
margin-right: 8px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-09-20 07:24:46 +08:00
|
|
|
.posts {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-09-20 04:25:25 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.num {
|
|
|
|
text-align: center;
|
|
|
|
a:not(.badge-posts) {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
2014-01-11 02:56:27 +08:00
|
|
|
.age {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Category list
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-12-19 00:50:51 +08:00
|
|
|
#topic-list.categories {
|
2013-12-21 05:51:39 +08:00
|
|
|
td.latest {
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
td.category {
|
|
|
|
vertical-align: top;
|
|
|
|
padding-top: 15px;
|
|
|
|
padding-bottom: 15px;
|
|
|
|
}
|
2013-12-20 00:45:42 +08:00
|
|
|
.badge-category {
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2013-12-20 05:51:18 +08:00
|
|
|
.category-description {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
2013-12-19 00:50:51 +08:00
|
|
|
.featured-users {
|
2013-12-20 05:51:18 +08:00
|
|
|
@include mobile-portrait {
|
2013-12-19 00:50:51 +08:00
|
|
|
margin-bottom: 10px;
|
|
|
|
padding-top: 8px;
|
|
|
|
clear: left;
|
|
|
|
}
|
2013-12-20 05:51:18 +08:00
|
|
|
@include not-mobile-portrait {
|
2013-12-19 00:50:51 +08:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.latest {
|
2013-12-20 05:51:18 +08:00
|
|
|
@include mobile-portrait { width: 150px; }
|
|
|
|
@include mobile-landscape { width: 270px; }
|
|
|
|
@include tablet-landscape { width: 450px; }
|
2013-12-19 00:50:51 +08:00
|
|
|
.featured-topic {
|
|
|
|
margin: 8px 0;
|
|
|
|
a.last-posted-at, a.last-posted-at:visited {
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.stats {
|
2013-12-20 05:51:18 +08:00
|
|
|
@include not-tablet-landscape { display: none; }
|
|
|
|
@include tablet-landscape { min-width: 80px; }
|
|
|
|
}
|
|
|
|
td.stats {
|
|
|
|
.unit {
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
table.categoryStats {
|
|
|
|
td {
|
|
|
|
padding: 2px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
line-height: 17px;
|
|
|
|
&.value { text-align: right; }
|
|
|
|
&.unit { text-align: left; }
|
|
|
|
}
|
2013-12-19 00:50:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.category-list-item {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
#topic-list tbody tr:nth-child(even) {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
|
|
|
.badge-category {
|
|
|
|
float: left;
|
|
|
|
margin: 1px 4px 0 0;
|
|
|
|
}
|
|
|
|
.posters {
|
|
|
|
float: left;
|
2013-09-18 05:02:10 +08:00
|
|
|
display: none;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
> footer {
|
2013-09-18 05:02:10 +08:00
|
|
|
border-bottom: 1px solid $topic-list-border-color;
|
2013-09-06 03:37:07 +08:00
|
|
|
border-top: 0;
|
|
|
|
padding: 7px 10px;
|
|
|
|
background-color: lighten($topic-list-th-background-color, 2%);
|
|
|
|
@include box-shadow(0 1px 3px rgba($black, 0.22));
|
|
|
|
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 {
|
2013-09-18 05:02:10 +08:00
|
|
|
margin: 20px 12px 0 12px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.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:44:28 +08:00
|
|
|
.home {
|
2013-10-29 03:34:38 +08:00
|
|
|
color: #333;
|
|
|
|
background-color: #eee;
|
2013-10-26 03:44:28 +08:00
|
|
|
}
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.badge-category {
|
2013-10-26 03:44:28 +08:00
|
|
|
margin-top: 6px;
|
|
|
|
padding: 4px 10px;
|
2013-10-25 11:18:34 +08:00
|
|
|
display: inline-block;
|
2013-10-26 03:44:28 +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:44:28 +08:00
|
|
|
.category-dropdown-button {
|
|
|
|
padding: 4px 10px 3px 8px;
|
|
|
|
border-left: 1px solid rgba(0, 0, 0, 0.15);
|
|
|
|
font-size: 16px;
|
|
|
|
width: 10px;
|
|
|
|
text-align: center;
|
2013-10-26 03:23:29 +08:00
|
|
|
|
2013-10-26 03:44:28 +08:00
|
|
|
&:hover {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
clear: both;
|
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
#list-area {
|
|
|
|
margin-bottom: 300px;
|
|
|
|
.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;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-25 11:18:34 +08:00
|
|
|
.spinner {
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
span.posted {
|
|
|
|
display: inline-block;
|
|
|
|
text-indent: -9999em;
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
background: {
|
|
|
|
image: image-url("posted.png");
|
|
|
|
};
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-group .dropdown-toggle:active,
|
|
|
|
.btn-group.open .dropdown-toggle {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
|
|
*margin-bottom: -3px;
|
|
|
|
}
|
|
|
|
.dropdown-toggle:active,
|
|
|
|
.open .dropdown-toggle {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
.caret {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-top: 4px solid #000000;
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
content: "";
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
position: relative;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1000;
|
|
|
|
display: none;
|
|
|
|
float: left;
|
|
|
|
width: 280px;
|
|
|
|
padding: 4px 0;
|
|
|
|
margin: 1px 0 0;
|
|
|
|
list-style: none;
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
|
*border-right-width: 2px;
|
|
|
|
*border-bottom-width: 2px;
|
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
|
|
|
background-clip: padding-box;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
.title {font-weight: bold; display: block;}
|
|
|
|
|
|
|
|
}
|
|
|
|
.dropdown-menu a {
|
|
|
|
display: block;
|
|
|
|
padding: 3px 15px;
|
|
|
|
clear: both;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 18px;
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
.dropdown-menu li > a:hover,
|
|
|
|
.dropdown-menu .active > a,
|
|
|
|
.dropdown-menu .active > a:hover {
|
|
|
|
color: #ffffff;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: #0088cc;
|
|
|
|
}
|
|
|
|
.open {
|
|
|
|
*z-index: 1000;
|
|
|
|
}
|
|
|
|
.open > .dropdown-menu {
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.fade {
|
|
|
|
opacity: 0;
|
|
|
|
-webkit-transition: opacity 0.15s linear;
|
|
|
|
transition: opacity 0.15s linear;
|
|
|
|
}
|
|
|
|
.fade.in {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
ol.category-breadcrumb {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
list-style: none;
|
2013-10-26 03:44:28 +08:00
|
|
|
margin: 0 10px 0 0;
|
|
|
|
padding: 0;
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
li {
|
|
|
|
float: left;
|
2013-10-26 03:44:28 +08:00
|
|
|
margin-right: 5px;
|
2013-10-25 11:18:34 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
|
|
|
|
.category-dropdown-menu {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
position: absolute;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
background-color: white;
|
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
|
|
|
padding: 8px 5px 0 7px;
|
|
|
|
z-index: 100;
|
|
|
|
margin-top: 31px;
|
|
|
|
|
|
|
|
.badge-category {
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 26px;
|
|
|
|
padding: 0px 8px;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|