If you're now month-to-month and the new owner via short sale intends to occupy the property you might only get a 30 day notice, and it will probably be issued before the escrow closes. If the new owner does not intend to occupy the property, then you might get a 60 day notice.
The owner might offer you a small amount of money instead of evicting you. You will have trouble renting for a long time if you get evicted. Your deposit should be handled in the same way as any termination of tenancy. If the property is foreclosed instead of a short sale then you might get a 90 day notice. It sounds like you have already read about that. A short sale would be in lieu of a foreclosure, that's why the rules could be different.
I am a real estate broker qualified to advise you on California real estate matters, not the law. If you desire legal advice, consult with an attorney.
Best of luck!