mirror of
https://github.com/flarum/framework.git
synced 2025-04-14 15:10:35 +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 {
|
@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 {
|
.DiscussionPage-nav {
|
||||||
float: right;
|
align-self: start;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
grid-area: nav;
|
||||||
top: var(--header-height);
|
top: var(--header-height);
|
||||||
padding-top: 32px;
|
padding-top: 32px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
&, > ul {
|
|
||||||
width: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
> ul {
|
> ul {
|
||||||
> li {
|
> li {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@ -51,11 +61,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media @tablet-up {
|
|
||||||
.DiscussionPage-stream {
|
.DiscussionPage-stream {
|
||||||
margin-right: 225px;
|
grid-area: stream;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
|
.clearfix();
|
||||||
|
|
||||||
&.editing {
|
&.editing {
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user