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

327 lines
5.5 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
// --------------------------------------------------
// Topic lists
// --------------------------------------------------
// List controls
// --------------------------------------------------
.list-controls {
2013-09-17 16:07:02 -04:00
margin: 5px;
2013-09-05 15:37:07 -04:00
.nav {
float: left;
2013-09-17 16:07:02 -04:00
margin-right: 15px;
li {
margin-top: 5px;
}
2013-09-05 15:37:07 -04:00
}
.btn {
float: right;
margin-left: 8px;
}
}
2013-09-17 16:07:02 -04:00
.list-container .full-width {
margin-left: 0;
}
2013-09-05 15:37:07 -04:00
// Base list
// --------------------------------------------------
.topic-list {
2014-07-28 10:33:23 -04:00
> tbody > tr {
2014-08-22 10:45:51 -04:00
&.highlighted {
background-color: scale-color($tertiary, $lightness: 85%);
}
}
2014-07-28 10:33:23 -04:00
2013-09-05 15:37:07 -04:00
th,
td {
padding: 7px 5px;
color: scale-color($primary, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
a.title {color: $primary;}
2013-09-05 15:37:07 -04:00
.badge-notification {
position: relative;
top: -1px;
2014-07-25 23:06:14 -04:00
i {color: $secondary;}
2013-09-05 15:37:07 -04:00
}
.topic-item-stats {
margin-top: 8px;
.category, .num, .last-poster {
2013-09-05 15:37:07 -04:00
float: left;
}
2014-12-02 03:19:42 -05:00
.category a {
max-width: 160px;
2014-12-02 03:19:42 -05:00
}
.num .fa {
color: scale-color($primary, $lightness: 50%);
}
2013-09-05 15:37:07 -04:00
}
2014-05-06 04:14:56 -04:00
.num.posts {
font-weight: bold;
}
.age {
white-space: nowrap;
a {
padding: 15px 10px 15px 5px;
}
}
2013-09-05 15:37:07 -04:00
}
// Category list
// --------------------------------------------------
tr.category-topic-link {
border-top: darken($secondary, 3%);
border-bottom: darken($secondary, 3%);
}
2014-07-28 10:33:23 -04:00
.topic-list.categories {
td.latest {
vertical-align: top;
padding: 5px;
}
.badge-category {
display: inline-block;
margin-top: 1px;
}
2013-12-18 11:50:51 -05:00
.featured-users {
@include mobile-portrait {
2013-12-18 11:50:51 -05:00
margin-bottom: 10px;
padding-top: 8px;
clear: left;
}
@include not-mobile-portrait {
2013-12-18 11:50:51 -05:00
float: right;
}
}
.latest {
@include mobile-portrait { width: 150px; }
@include mobile-landscape { width: 270px; }
@include tablet-landscape { width: 450px; }
2013-12-18 11:50:51 -05:00
.featured-topic {
margin: 8px 0;
a.last-posted-at, a.last-posted-at:visited {
color: scale-color($primary, $lightness: 50%);
2013-12-18 11:50:51 -05:00
}
}
}
.stats {
@include not-tablet-landscape { display: none; }
@include tablet-landscape { min-width: 80px; }
}
2013-12-18 11:50:51 -05:00
}
2013-09-05 15:37:07 -04:00
.category-list-item {
2014-07-28 10:33:23 -04:00
border-left: 6px solid;
h3 {
display: inline-block;
font-size: 1.286em;
margin: 10px 0 0 5px;
i {
margin-right: 5px;
}
a[href] {
color: $primary;
}
}
.category-topic-link .main-link, .subcategories-list td, .category-description td {
padding-left: 10px;
}
.category-description td {
padding-top: 0;
padding-bottom: 15px;
}
.subcategories-list td {
padding-top: 15px;
}
.topic-list > tbody > tr {
2014-07-28 10:33:23 -04:00
&:nth-child(odd) {
background-color: $secondary;
}
&:nth-child(even) {
background-color: $secondary;
}
}
2014-07-28 10:33:23 -04:00
th .badge-category {
2015-01-29 20:09:42 -05:00
margin: 0;
2014-07-20 02:54:57 -04:00
font-size: 110%;
}
2014-07-28 10:33:23 -04:00
2013-09-05 15:37:07 -04:00
.posters {
float: left;
}
> footer {
border-top: 0;
padding: 7px 10px;
figure {
float: left;
margin: 3px 7px 0 0;
color: scale-color($primary, $lightness: 10%);
font-weight: bold;
font-size: 0.857em;
}
figcaption {
display: inline;
font-weight: normal;
}
.btn {
float: right;
margin-left: 7px;
}
2013-09-05 15:37:07 -04:00
}
}
.topic-list-bottom {
2013-09-17 17:02:10 -04:00
margin: 20px 12px 0 12px;
2013-09-05 15:37:07 -04:00
}
// Misc. stuff
// --------------------------------------------------
.list-controls {
2013-10-25 15:44:28 -04:00
.category-dropdown-button {
padding: 4px 10px 4px 8px;
2014-05-19 23:55:46 -04:00
}
2013-09-05 15:37:07 -04: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;
border-top: 4px solid $primary;
2013-09-05 15:37:07 -04: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;
background-color: $secondary;
border: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04: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;
color: $primary;
2013-09-05 15:37:07 -04:00
}
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: $tertiary;
2013-09-05 15:37:07 -04:00
text-decoration: none;
background-color: scale-color($tertiary, $lightness: 75%);
2013-09-05 15:37:07 -04:00
}
.open > .dropdown-menu {
display: block;
2014-03-06 23:55:57 -05:00
clear: both;
2013-09-05 15:37:07 -04:00
}
.fade {
opacity: 0;
2014-10-20 09:54:36 -04:00
transition: opacity linear .15s;
2013-09-05 15:37:07 -04:00
}
.fade.in {
opacity: 1;
}
ol.category-breadcrumb {
margin: 5px 10px 0 0;
}
2013-10-25 15:44:28 -04:00
.category-dropdown-menu {
height: 200px;
a.badge-category {
line-height: 26px !important;
margin-bottom: 0 !important;
2013-10-25 15:44:28 -04:00
}
}
2014-07-10 03:57:30 -04:00
.top-lists {
h2 { margin-left: 10px; }
.topic-list { padding-bottom: 10px; }
2014-07-10 03:57:30 -04:00
.btn-default.pull-right { margin-right: 10px; }
}
.category-notification-menu {
display: none;
}
2014-06-24 02:31:36 -04:00
.topic-list-bottom h3 {
2014-06-24 02:31:36 -04:00
clear:both;
padding-top:10px;
}
.category-logo {
display: block;
max-width: 100%;
padding: 8px 0;
}
.period-chooser {
button {
margin-top: 10px;
}
}
button.dismiss-read {
margin-right: 10px;
}
// base defines extra padding for easier click/top of title field
// this is a bit too much for mobile
td.main-link {
a.title {
padding: 5px 10px 5px 0;
}
2014-10-20 09:54:36 -04:00
}