mirror of
https://github.com/flarum/framework.git
synced 2025-06-08 01:34:33 +08:00
Add LESS variable to configure expansion of sideNav dropdowns
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
// control; the new discussion button is the primary-control. On anything
|
// 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
|
// larger than a phone, however, we need to affix the sidebar and expand the
|
||||||
// .dropdown-select into a plain list.
|
// .dropdown-select into a plain list.
|
||||||
@media @tablet-up {
|
@media @expand-side-nav {
|
||||||
.sideNav {
|
.sideNav {
|
||||||
// Expand the dropdown-select component into a normal nav list.
|
// Expand the dropdown-select component into a normal nav list.
|
||||||
& .Dropdown--select {
|
& .Dropdown--select {
|
||||||
@ -48,6 +48,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sideNav--horizontal {}
|
||||||
|
|
||||||
|
@media @expand-side-nav {
|
||||||
.sideNav--horizontal {
|
.sideNav--horizontal {
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -84,11 +87,13 @@
|
|||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media @tablet {
|
@media @tablet {
|
||||||
.sideNav {
|
.sideNav {
|
||||||
.sideNav--horizontal();
|
.sideNav--horizontal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media @desktop-up {
|
@media @desktop-up {
|
||||||
.sideNav {
|
.sideNav {
|
||||||
|
@ -110,6 +110,8 @@
|
|||||||
@zindex-alerts: 1060;
|
@zindex-alerts: 1060;
|
||||||
@zindex-tooltip: 1070;
|
@zindex-tooltip: 1070;
|
||||||
|
|
||||||
|
@expand-side-nav: @tablet-up;
|
||||||
|
|
||||||
// ---------------------------------
|
// ---------------------------------
|
||||||
// BREAKPOINTS
|
// BREAKPOINTS
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user