mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user