mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Add LESS variable to configure expansion of sideNav dropdowns
This commit is contained in:
parent
96be7c449d
commit
c9a6892297
|
@ -9,7 +9,7 @@
|
|||
// control; the new discussion button is the primary-control. On anything
|
||||
// larger than a phone, however, we need to affix the sidebar and expand the
|
||||
// .dropdown-select into a plain list.
|
||||
@media @tablet-up {
|
||||
@media @expand-side-nav {
|
||||
.sideNav {
|
||||
// Expand the dropdown-select component into a normal nav list.
|
||||
& .Dropdown--select {
|
||||
|
@ -48,7 +48,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.sideNav--horizontal {
|
||||
.sideNav--horizontal {}
|
||||
|
||||
@media @expand-side-nav {
|
||||
.sideNav--horizontal {
|
||||
padding: 15px 0;
|
||||
white-space: nowrap;
|
||||
overflow: auto;
|
||||
|
@ -83,11 +86,13 @@
|
|||
.affix {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
@media @tablet {
|
||||
}
|
||||
|
||||
@media @tablet {
|
||||
.sideNav {
|
||||
.sideNav--horizontal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media @desktop-up {
|
||||
|
|
|
@ -110,6 +110,8 @@
|
|||
@zindex-alerts: 1060;
|
||||
@zindex-tooltip: 1070;
|
||||
|
||||
@expand-side-nav: @tablet-up;
|
||||
|
||||
// ---------------------------------
|
||||
// BREAKPOINTS
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user