Description of liquid–gas phase transition in the frame of continuum mechanics