sidebar styling

This commit is contained in:
Nils Schneider 2015-04-04 18:01:57 +02:00
commit ff19d0cf8e
9 changed files with 185 additions and 35 deletions

View file

@ -14,6 +14,10 @@ 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
@ -23,7 +27,7 @@ define([], function () {
}
self.add = function (d) {
d.render(sidebar)
d.render(container)
}
self.container = sidebar