An apartment building clinging to the side of a San Francisco cliff is looking for a buyer, and its $8 million price tag comes with panoramic bay views, a famously quirky layout and a surprising artistic pedigree.