From d1af52b01eb9864d4e195bd32b3620fc76f17c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 13 Oct 2019 23:58:49 +0200 Subject: [PATCH] Use better breakdown of menu offcanvas size We keep the menu with a minimum size of 300px for all screen sizes. issue8691 review268011002 --- index.html | 4 ++-- src/offcanvas.less | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index bab954851d..d8d6d1b4ca 100644 --- a/index.html +++ b/index.html @@ -69,9 +69,9 @@ this repository contains the full copyright notices and license terms. -->
- -
+
diff --git a/src/offcanvas.less b/src/offcanvas.less index 40fd0e384e..be62fa96a0 100644 --- a/src/offcanvas.less +++ b/src/offcanvas.less @@ -60,17 +60,17 @@ body { @media (min-width: @screen-lg-min) { - .make-offcanvas(16.6666%); -} - -@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { .make-offcanvas(25%); } -@media (min-width: @screen-xs-min) and (max-width: @screen-sm-max) { +@media (max-width: @screen-md-max) { + .make-offcanvas(33.3333%); +} + +@media (max-width: (@screen-sm-max)) { .make-offcanvas(50%); } -@media (max-width: (@screen-xs-min - 1)) { +@media (max-width: (@screen-xs-max)) { .make-offcanvas(100%); }