#1111258 by Pisco, dereine: Fix generating of classes and bring back a special css function for views