2013-09-06 03:37:07 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 7px 5px;
|
2014-05-10 14:09:04 +08:00
|
|
|
color: scale-color($primary, $lightness: 50%);
|
2013-09-06 03:37:07 +08:00
|
|
|
&: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 {
|
|
|
|
&:first-of-type {
|
|
|
|
@include border-radius-all(4px 0 0 0);
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
@include border-radius-all(0 4px 0 0);
|
|
|
|
}
|
|
|
|
}
|
2014-06-11 02:01:09 +08:00
|
|
|
|
|
|
|
a.title {color: $primary;}
|
|
|
|
a.title:visited:not(.badge-notification) {color: scale-color($primary, $lightness: 35%);}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.badge-notification {
|
|
|
|
position: relative;
|
2014-05-20 11:55:46 +08:00
|
|
|
padding: 4px 4px 4px 3px;
|
2013-09-06 03:37:07 +08:00
|
|
|
top: -1px;
|
2014-05-20 11:55:46 +08:00
|
|
|
i {color: $secondary;}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
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;
|
2014-04-24 09:10:50 +08:00
|
|
|
margin-right: 14px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-06-20 22:22:55 +08:00
|
|
|
.num .fa {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 50%);
|
2014-04-24 09:10:50 +08:00
|
|
|
}
|
|
|
|
.fa-heart{
|
|
|
|
position: relative;
|
|
|
|
left: -1px;
|
|
|
|
}
|
|
|
|
.fa-comment{
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
left: 1px;
|
2013-09-20 07:24:46 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-09-20 04:25:25 +08:00
|
|
|
|
2014-05-06 16:14:56 +08:00
|
|
|
.num.posts {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2014-06-24 04:11:55 +08:00
|
|
|
|
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 {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: scale-color($primary, $lightness: 50%);
|
2013-12-19 00:50:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.stats {
|
2013-12-20 05:51:18 +08:00
|
|
|
@include not-tablet-landscape { display: none; }
|
|
|
|
@include tablet-landscape { min-width: 80px; }
|
|
|
|
}
|
2013-12-19 00:50:51 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.category-list-item {
|
|
|
|
.posters {
|
2013-09-18 05:02:10 +08:00
|
|
|
display: none;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#topic-list-bottom {
|
2013-09-18 05:02:10 +08:00
|
|
|
margin: 20px 12px 0 12px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Misc. stuff
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
.list-controls {
|
|
|
|
.badge-category {
|
2013-10-26 03:44:28 +08:00
|
|
|
margin-top: 6px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
.category-dropdown-button {
|
2014-05-10 14:09:04 +08:00
|
|
|
padding: 4px 10px 4px 8px;
|
2014-05-20 11:55:46 +08:00
|
|
|
}
|
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:active,
|
|
|
|
.open .dropdown-toggle {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
.caret {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
vertical-align: middle;
|
2014-05-06 13:50:51 +08:00
|
|
|
border-top: 4px solid $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
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;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2014-05-19 13:17:59 +08:00
|
|
|
border: 1px solid scale-color-diff();
|
2013-09-06 03:37:07 +08:00
|
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
|
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;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.dropdown-menu li > a:hover,
|
|
|
|
.dropdown-menu .active > a,
|
|
|
|
.dropdown-menu .active > a:hover {
|
2014-05-10 14:09:04 +08:00
|
|
|
color: $tertiary;
|
2013-09-06 03:37:07 +08:00
|
|
|
text-decoration: none;
|
2014-05-10 14:09:04 +08:00
|
|
|
background-color: scale-color($tertiary, $lightness: 75%);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.open > .dropdown-menu {
|
|
|
|
display: block;
|
2014-03-07 12:55:57 +08:00
|
|
|
clear: both;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
.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 {
|
2014-06-24 04:11:55 +08:00
|
|
|
|
2014-05-10 14:09:04 +08:00
|
|
|
margin: 5px 10px 0 0;
|
2013-10-26 03:44:28 +08:00
|
|
|
|
2013-10-25 11:18:34 +08:00
|
|
|
}
|
2013-10-26 03:44:28 +08:00
|
|
|
|
|
|
|
.category-dropdown-menu {
|
|
|
|
height: 200px;
|
|
|
|
padding: 8px 5px 0 7px;
|
|
|
|
margin-top: 31px;
|
|
|
|
|
2014-06-24 04:11:55 +08:00
|
|
|
a.badge-category {
|
2013-10-26 03:44:28 +08:00
|
|
|
line-height: 26px;
|
2014-03-06 14:14:51 +08:00
|
|
|
padding: 0 8px;
|
2013-10-26 03:44:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
2014-05-10 14:09:04 +08:00
|
|
|
|
|
|
|
.top-lists {margin-left: 15px;
|
|
|
|
#topic-list-bottom {
|
|
|
|
margin: 20px 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
2014-05-30 02:15:56 +08:00
|
|
|
|
|
|
|
.category-notification-menu {
|
|
|
|
display: none;
|
2014-06-02 13:48:44 +08:00
|
|
|
}
|
2014-06-24 14:31:36 +08:00
|
|
|
|
|
|
|
#topic-list-bottom h3 {
|
|
|
|
clear:both;
|
|
|
|
padding-top:10px;
|
|
|
|
}
|