From 95a0f8974b8c47681fc3755be04b69b8eafe5632 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 15 Apr 2015 15:28:21 +0200 Subject: [PATCH] sidebar: reduce breakpoint to 630pt, reduce width to 320pt --- lib/sidebar.js | 2 +- scss/main.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sidebar.js b/lib/sidebar.js index 5092079..ad1521d 100644 --- a/lib/sidebar.js +++ b/lib/sidebar.js @@ -22,7 +22,7 @@ define([], function () { if (sidebar.classList.contains("hidden")) return 0 - var small = window.matchMedia("(max-width: 60em)") + var small = window.matchMedia("(max-width: 630pt)") return small.matches ? 0 : sidebar.offsetWidth } diff --git a/scss/main.scss b/scss/main.scss index 6cb3bbf..59c0bec 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -3,9 +3,9 @@ @import '_leaflet'; @import '_leaflet.label'; -$minscreenwidth: 60em; +$minscreenwidth: 630pt; $sidebarwidth: 420pt; -$sidebarwidthsmall: 360pt; +$sidebarwidthsmall: 320pt; $buttondistance: 12pt; @import '_sidebar';