Refactor devices CSS