[!!!][TASK] Refactor Scss, add Sass-lint and adjust styling

Add variables to allow easy modifications to color, font and also extending Style
This commit is contained in:
Xaver Maierhofer 2016-05-27 01:34:42 +02:00 committed by Milan Pässler
commit ed06ff6b09
50 changed files with 762 additions and 888 deletions

View file

@ -17,13 +17,11 @@ define(function () {
filters.forEach(function (d) {
var li = document.createElement("li");
var div = document.createElement("div");
container.appendChild(li);
li.appendChild(div);
d.render(div);
d.render(li);
var button = document.createElement("button");
button.textContent = "";
button.classList.add("ion-android-close");
button.onclick = function () {
distributor.removeFilter(d);
};

View file

@ -7,7 +7,7 @@ define(["helper"], function (helper) {
var label = document.createElement("label");
var strong = document.createElement("strong");
label.textContent = name + " ";
label.textContent = name + ": ";
label.appendChild(strong);
function run(d) {
@ -26,12 +26,12 @@ define(["helper"], function (helper) {
function draw(el) {
if (negate) {
el.parentNode.classList.add("not");
el.classList.add("not");
} else {
el.parentNode.classList.remove("not");
el.classList.remove("not");
}
strong.textContent = (negate ? "¬" : "" ) + value;
strong.textContent = value;
}
function render(el) {