Remove offset dependency from css. Move curCSS and getStyles to their own module.