add postcss rule to transform px to rem
Created by: 5h1rU
Overview
Currently, 94 .scss files on our codebase are using px
as the unit of measurement. The px
units do not scale according to the width of the browser window. Our focus is to convert all those px to their rem
equivalent.
This approach uses a postCSS plugin that replaces those px
to the equivalent rem
value on compile time.
Example Before
Example After
Progress
-
Approved by a frontend engineer -
Approved by a designer
Closes https://github.com/sourcegraph/sourcegraph/issues/16602