improve CSS, extract constants
fix issue with karma, cleanup