CSS class variable declaration moved ahead of if/else