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:
parent
ca3dd9ae29
commit
8de28b903b
4 changed files with 65 additions and 58 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue