basis.ui.popup: fix anim warning in templates
basis.template: rewrite isolateCss function, fix parsing and at-rules support