enhance sidebar and content styling

- 3 sidebar variations (margin, no margin, below content)
  depending on screen size
- scrolling sidebar will scroll document (more space on mobile devices)
- wrap map/graph on div.content
This commit is contained in:
Nils Schneider 2015-04-02 04:11:49 +02:00
commit 8de28b903b
4 changed files with 65 additions and 58 deletions

View file

@ -14,10 +14,6 @@ define([], function () {
sidebar.classList.toggle("hidden")
}
var container = document.createElement("div")
container.classList.add("container")
sidebar.appendChild(container)
self.getWidth = function () {
if (sidebar.classList.contains("hidden"))
return 0
@ -27,10 +23,10 @@ define([], function () {
}
self.add = function (d) {
d.render(container)
d.render(sidebar)
}
self.container = container
self.container = sidebar
return self
}