diff --git a/assets/less/_variables.less b/assets/less/_variables.less index 104bb1f240..9c14db13dd 100644 --- a/assets/less/_variables.less +++ b/assets/less/_variables.less @@ -8,3 +8,7 @@ // ------------------------- @icon-font-path: "../vendor/bootstrap/fonts/"; + +@main-sm-columns: @grid-columns; + +@sidebar-sm-columns: 4; diff --git a/assets/less/layouts/_general.less b/assets/less/layouts/_general.less index 56330b94c8..c0d5dc422c 100644 --- a/assets/less/layouts/_general.less +++ b/assets/less/layouts/_general.less @@ -2,4 +2,9 @@ .wrap { } // Main content area -.main { } +.main { + .make-sm-column(@main-sm-columns); + .sidebar-primary & { + .make-sm-column(@main-sm-columns - @sidebar-sm-columns); + } +} diff --git a/assets/less/layouts/_sidebar.less b/assets/less/layouts/_sidebar.less index e33ad3189b..0a735c9268 100644 --- a/assets/less/layouts/_sidebar.less +++ b/assets/less/layouts/_sidebar.less @@ -1 +1,3 @@ -.sidebar { } +.sidebar { + .make-sm-column(@sidebar-sm-columns); +} diff --git a/base.php b/base.php index ce3e1022eb..27c050b2ed 100644 --- a/base.php +++ b/base.php @@ -14,11 +14,11 @@