mirror of
https://github.com/flarum/framework.git
synced 2025-04-13 13:51:26 +08:00
* chore: merge media queries * chore: change discussion page skeleton to grid layout * chore: use grid areas instead of order Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
9897f682a0
commit
31f1ffd6a5
@ -23,17 +23,27 @@
|
||||
}
|
||||
}
|
||||
@media @tablet-up {
|
||||
.DiscussionPage-discussion {
|
||||
> .container {
|
||||
display: grid;
|
||||
grid-gap: 75px;
|
||||
grid-template-columns: 1fr 150px;
|
||||
grid-template-areas: 'stream nav';
|
||||
|
||||
&::before, &::after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.DiscussionPage-nav {
|
||||
float: right;
|
||||
align-self: start;
|
||||
position: sticky;
|
||||
grid-area: nav;
|
||||
top: var(--header-height);
|
||||
padding-top: 32px;
|
||||
z-index: 1;
|
||||
|
||||
&, > ul {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
> ul {
|
||||
> li {
|
||||
margin-bottom: 10px;
|
||||
@ -51,11 +61,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media @tablet-up {
|
||||
.DiscussionPage-stream {
|
||||
margin-right: 225px;
|
||||
grid-area: stream;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
position: relative;
|
||||
top: 0;
|
||||
border-radius: var(--border-radius);
|
||||
.clearfix();
|
||||
|
||||
&.editing {
|
||||
top: 5px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user