optimize css resolution, + simplify tipi's resource handling