No permit for the use of any lot which is smaller in total area than the minimum size for the district within which it is located shall be issued unless said lot was legally and properly recorded prior to the passage of this chapter, provided that substandard lots in residential districts shall be used only for single-family residential purposes and construction on any such lot after the passage of this chapter shall be required to meet all other requirements of the district in which it is located, except that if the lot is less than 45 feet in width at the building line, the minimum total side yard shall be at least 20 percent of the lot width with a minimum of three feet for each side measured from the eave of the structure to the lot line.