Wetting in the nanoscale: a continuum mechanics approach