Shorts are perfectly acceptable in the office, but only if they're coupled with a smoking vest and penny loafers al la Judge Smails from Caddyshack...
That is naturally the classy way to do it...