mirror of
https://github.com/flarum/framework.git
synced 2025-06-06 07:54:32 +08:00
Don't allow index pane to be pinned on small screens
This commit is contained in:
@ -84,7 +84,6 @@
|
|||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.back-button {
|
.back-button {
|
||||||
& .back {
|
& .back {
|
||||||
z-index: 3 !important; // z-index of an active .btn-group .btn is 2
|
z-index: 3 !important; // z-index of an active .btn-group .btn is 2
|
||||||
@ -100,13 +99,15 @@
|
|||||||
.rotate(45deg);
|
.rotate(45deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.active {
|
@media @desktop-hd {
|
||||||
& .back {
|
&.active {
|
||||||
border-radius: @border-radius-base 0 0 @border-radius-base !important;
|
& .back {
|
||||||
}
|
border-radius: @border-radius-base 0 0 @border-radius-base !important;
|
||||||
& .pin {
|
}
|
||||||
opacity: 1;
|
& .pin {
|
||||||
margin-left: 1px !important;
|
opacity: 1;
|
||||||
|
margin-left: 1px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,13 +160,9 @@
|
|||||||
.box-shadow(2px 2px 6px -2px @fl-shadow-color);
|
.box-shadow(2px 2px 6px -2px @fl-shadow-color);
|
||||||
.transition(left 0.2s);
|
.transition(left 0.2s);
|
||||||
|
|
||||||
&.showing, .with-pane & {
|
&.showing {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.with-pane & {
|
|
||||||
z-index: @zindex-composer - 1;
|
|
||||||
.transition(none);
|
|
||||||
}
|
|
||||||
& .container {
|
& .container {
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -196,7 +192,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media @desktop-hd {
|
||||||
|
.index-area.paned {
|
||||||
|
.with-pane & {
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindex-composer - 1;
|
||||||
|
.transition(none);
|
||||||
|
}
|
||||||
|
}
|
||||||
// When the pane is pinned, move the other page content inwards
|
// When the pane is pinned, move the other page content inwards
|
||||||
.global-content, .global-footer {
|
.global-content, .global-footer {
|
||||||
.with-pane & {
|
.with-pane & {
|
||||||
|
Reference in New Issue
Block a user