ACF Dimensions is an extension of Advanced Custom Fields plugin. It provides dimension field to enter CSS values like margin or padding. It also supports device switcher. Input fields could be linked or unlinked. When linked, one input is used for all four sides.
Github Link: Github