1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 21:50:50 +02:00

Tweak how discussion sidebar displays on mobile

Give all items in an item list a class on their <li>. Super helpful for
styling
This commit is contained in:
Toby Zerner
2015-06-25 15:38:29 +09:30
parent 099b910be9
commit f2f23138b2
4 changed files with 25 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
.discussion-hero {
& .badges {
margin-right: 5px;
margin-bottom: -2px;
}
& .discussion-hero-items {
padding: 0;
@@ -34,6 +35,22 @@
}
}
@media @phone {
.discussion-nav {
margin: 0 -15px;
border-bottom: 1px solid @fl-body-secondary-color;
& > ul > li {
margin: 15px;
display: inline-block;
&.item-controls, &.item-scrubber {
margin: 0;
display: block;
}
}
}
}
@media @tablet, @desktop, @desktop-hd {
.discussion-nav {
float: right;
@@ -67,7 +84,9 @@
// Stream
.discussion-posts {
margin-top: 10px;
@media @tablet, @desktop, @desktop-hd {
margin-top: 10px;
}
& .item {
&:not(:last-child) {